Class AuthenticationResponse
- java.lang.Object
-
- org.dcache.xrootd.protocol.messages.AbstractXrootdResponse<AuthenticationRequest>
-
- org.dcache.xrootd.protocol.messages.AuthenticationResponse
-
- All Implemented Interfaces:
XrootdResponse<AuthenticationRequest>
public class AuthenticationResponse extends AbstractXrootdResponse<AuthenticationRequest>
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
request, stat
-
-
Constructor Summary
Constructors Constructor Description AuthenticationResponse(AuthenticationRequest request, int status, int length, java.util.function.Consumer<io.netty.buffer.ByteBuf> serializer)
-
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.-
Methods inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
getRequest, getStatus, writeTo
-
-
-
-
Constructor Detail
-
AuthenticationResponse
public AuthenticationResponse(AuthenticationRequest request, int status, int length, java.util.function.Consumer<io.netty.buffer.ByteBuf> serializer)
- Parameters:
request- the request this is a response tostatus- the status (usually kXR_authmore)length- of the data container to be serializedserializer- function responsible for writing to the buffer
-
-
Method Detail
-
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<AuthenticationRequest>- Specified by:
getDataLengthin classAbstractXrootdResponse<AuthenticationRequest>
-
getBytes
protected void getBytes(io.netty.buffer.ByteBuf buffer)
- Specified by:
getBytesin classAbstractXrootdResponse<AuthenticationRequest>
-
-