Class AbstractXrootdRequest
- java.lang.Object
-
- org.dcache.xrootd.protocol.messages.AbstractXrootdRequest
-
- All Implemented Interfaces:
XrootdRequest
- Direct Known Subclasses:
AuthenticationRequest,CloseRequest,EndSessionRequest,GenericReadRequestMessage,LoginRequest,MvRequest,PathRequest,PrepareRequest,ProtocolRequest,QueryRequest,SetRequest,SigverRequest,StatxRequest,SyncRequest,UnknownRequest,WriteRequest
public class AbstractXrootdRequest extends java.lang.Object implements XrootdRequest
-
-
Field Summary
Fields Modifier and Type Field Description protected intrequestIdprotected XrootdSessionsessionprotected intstreamId
-
Constructor Summary
Constructors Constructor Description AbstractXrootdRequest(io.netty.buffer.ByteBuf buffer)AbstractXrootdRequest(io.netty.buffer.ByteBuf buffer, int requestId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetRequestId()Returns the request id.XrootdSessiongetSession()Returns the xrootd session associated with the request.intgetStreamId()Returns the stream id.javax.security.auth.SubjectgetSubject()Returns the subject as identified by the associated session.voidsetSession(XrootdSession session)Associates the request with an xrootd session.
-
-
-
Field Detail
-
streamId
protected final int streamId
-
requestId
protected final int requestId
-
session
protected XrootdSession session
-
-
Method Detail
-
getStreamId
public int getStreamId()
Description copied from interface:XrootdRequestReturns the stream id. The stream id is used by the client to match responses to requests.- Specified by:
getStreamIdin interfaceXrootdRequest
-
getRequestId
public int getRequestId()
Description copied from interface:XrootdRequestReturns the request id. The request id identifies the type of the request.- Specified by:
getRequestIdin interfaceXrootdRequest
-
setSession
public void setSession(XrootdSession session)
Description copied from interface:XrootdRequestAssociates the request with an xrootd session.- Specified by:
setSessionin interfaceXrootdRequest
-
getSession
public XrootdSession getSession()
Description copied from interface:XrootdRequestReturns the xrootd session associated with the request. A session is established during authentication. May be null.- Specified by:
getSessionin interfaceXrootdRequest
-
getSubject
public javax.security.auth.Subject getSubject()
Description copied from interface:XrootdRequestReturns the subject as identified by the associated session. May be null.- Specified by:
getSubjectin interfaceXrootdRequest
-
-