Class StringResponse<T extends XrootdRequest>
- java.lang.Object
-
- org.dcache.xrootd.protocol.messages.AbstractXrootdResponse<T>
-
- org.dcache.xrootd.protocol.messages.StringResponse<T>
-
- All Implemented Interfaces:
XrootdResponse<T>
- Direct Known Subclasses:
QueryResponse,SetResponse
public class StringResponse<T extends XrootdRequest> extends AbstractXrootdResponse<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringresponse-
Fields inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
request, stat
-
-
Constructor Summary
Constructors Constructor Description StringResponse(T request, int stat, java.lang.String response)
-
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.StringgetResponse()java.lang.StringtoString()-
Methods inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
getRequest, getStatus, writeTo
-
-
-
-
Constructor Detail
-
StringResponse
public StringResponse(T request, int stat, java.lang.String response)
-
-
Method Detail
-
getResponse
public java.lang.String getResponse()
-
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
-
-