Class DirListResponse
- java.lang.Object
-
- org.dcache.xrootd.protocol.messages.AbstractXrootdResponse<DirListRequest>
-
- org.dcache.xrootd.protocol.messages.DirListResponse
-
- All Implemented Interfaces:
XrootdResponse<DirListRequest>
- Direct Known Subclasses:
DirListStatResponse
public class DirListResponse extends AbstractXrootdResponse<DirListRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDirListResponse.Builder
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Iterable<java.lang.String>names-
Fields inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
request, stat
-
-
Constructor Summary
Constructors Constructor Description DirListResponse(DirListRequest request, int statusCode, java.lang.Iterable<java.lang.String> names)DirListResponse(DirListRequest request, java.lang.Iterable<java.lang.String> names)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirListResponse.Builderbuilder(DirListRequest request)protected voidgetBytes(io.netty.buffer.ByteBuf buffer)intgetDataLength()Returns the length of the response body.java.lang.Iterable<java.lang.String>getNames()-
Methods inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
getRequest, getStatus, writeTo
-
-
-
-
Constructor Detail
-
DirListResponse
public DirListResponse(DirListRequest request, int statusCode, java.lang.Iterable<java.lang.String> names)
-
DirListResponse
public DirListResponse(DirListRequest request, java.lang.Iterable<java.lang.String> names)
-
-
Method Detail
-
getNames
public java.lang.Iterable<java.lang.String> getNames()
-
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<DirListRequest>- Specified by:
getDataLengthin classAbstractXrootdResponse<DirListRequest>
-
getBytes
protected void getBytes(io.netty.buffer.ByteBuf buffer)
- Specified by:
getBytesin classAbstractXrootdResponse<DirListRequest>
-
builder
public static DirListResponse.Builder builder(DirListRequest request)
-
-