Class ErrorResponse<T extends XrootdRequest>
- java.lang.Object
-
- org.dcache.xrootd.protocol.messages.AbstractXrootdResponse<T>
-
- org.dcache.xrootd.protocol.messages.ErrorResponse<T>
-
- All Implemented Interfaces:
XrootdResponse<T>
public class ErrorResponse<T extends XrootdRequest> extends AbstractXrootdResponse<T>
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
request, stat
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse(io.netty.channel.ChannelHandlerContext ctx, T request, int errnum, java.lang.String errmsg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgetBytes(io.netty.buffer.ByteBuf buffer)intgetDataLength()Returns the length of the response body.java.lang.StringgetErrorMessage()intgetErrorNumber()java.lang.StringtoString()-
Methods inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
getRequest, getStatus, writeTo
-
-
-
-
Constructor Detail
-
ErrorResponse
public ErrorResponse(io.netty.channel.ChannelHandlerContext ctx, T request, int errnum, java.lang.String errmsg)
-
-
Method Detail
-
getErrorNumber
public int getErrorNumber()
-
getErrorMessage
public java.lang.String getErrorMessage()
-
getDataLength
public int getDataLength()
Description copied from interface:XrootdResponseReturns the length of the response body. This is the value of the dlen field in the Xrootd Server Response Format. This does not include the length of the 8 byte header.- Specified by:
getDataLengthin interfaceXrootdResponse<T extends XrootdRequest>- Specified by:
getDataLengthin classAbstractXrootdResponse<T extends XrootdRequest>
-
getBytes
protected void getBytes(io.netty.buffer.ByteBuf buffer)
- Specified by:
getBytesin classAbstractXrootdResponse<T extends XrootdRequest>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-