Package org.dcache.xrootd.tpc
Class TpcClientConnectHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.dcache.xrootd.tpc.AbstractClientRequestHandler
-
- org.dcache.xrootd.tpc.TpcClientConnectHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class TpcClientConnectHandler extends AbstractClientRequestHandler
This handler implements protocol and login. If the login response is OK, it hands it off to the next handler in the chain.
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.tpc.AbstractClientRequestHandler
client, LOGGER
-
-
Constructor Summary
Constructors Constructor Description TpcClientConnectHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoOnAsynResponse(io.netty.channel.ChannelHandlerContext ctx, InboundAttnResponse response)protected voiddoOnHandshakeResponse(io.netty.channel.ChannelHandlerContext ctx, InboundHandshakeResponse response)protected voiddoOnLoginResponse(io.netty.channel.ChannelHandlerContext ctx, InboundLoginResponse response)protected voiddoOnProtocolResponse(io.netty.channel.ChannelHandlerContext ctx, InboundProtocolResponse response)protected voiddoOnWaitResponse(io.netty.channel.ChannelHandlerContext ctx, AbstractXrootdInboundResponse response)protected voidsendLoginRequest(io.netty.channel.ChannelHandlerContext ctx)protected voidsendProtocolRequest(io.netty.channel.ChannelHandlerContext ctx)-
Methods inherited from class org.dcache.xrootd.tpc.AbstractClientRequestHandler
asynWaitTimeout, channelRead, doOnAttnResponse, doOnAuthenticationResponse, doOnChecksumResponse, doOnCloseResponse, doOnErrorResponse, doOnOpenResponse, doOnReadResponse, doOnRedirectResponse, doOnWaitRespResponse, exceptionCaught, getWaitInSeconds, responseReceived, sendAuthenticationRequest, sendChecksumRequest, sendCloseRequest, sendOpenRequest, sendReadRequest, setClient, unsupported
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
doOnAsynResponse
protected void doOnAsynResponse(io.netty.channel.ChannelHandlerContext ctx, InboundAttnResponse response) throws XrootdException- Overrides:
doOnAsynResponsein classAbstractClientRequestHandler- Throws:
XrootdException
-
doOnHandshakeResponse
protected void doOnHandshakeResponse(io.netty.channel.ChannelHandlerContext ctx, InboundHandshakeResponse response)- Overrides:
doOnHandshakeResponsein classAbstractClientRequestHandler
-
doOnProtocolResponse
protected void doOnProtocolResponse(io.netty.channel.ChannelHandlerContext ctx, InboundProtocolResponse response) throws XrootdException- Overrides:
doOnProtocolResponsein classAbstractClientRequestHandler- Throws:
XrootdException
-
doOnLoginResponse
protected void doOnLoginResponse(io.netty.channel.ChannelHandlerContext ctx, InboundLoginResponse response) throws XrootdException- Overrides:
doOnLoginResponsein classAbstractClientRequestHandler- Throws:
XrootdException
-
doOnWaitResponse
protected void doOnWaitResponse(io.netty.channel.ChannelHandlerContext ctx, AbstractXrootdInboundResponse response) throws XrootdException- Overrides:
doOnWaitResponsein classAbstractClientRequestHandler- Throws:
XrootdException
-
sendLoginRequest
protected void sendLoginRequest(io.netty.channel.ChannelHandlerContext ctx)
- Overrides:
sendLoginRequestin classAbstractClientRequestHandler
-
sendProtocolRequest
protected void sendProtocolRequest(io.netty.channel.ChannelHandlerContext ctx)
-
-