Package org.mockserver.proxy.relay
Class RelayConnectHandler<T>
- java.lang.Object
- 
- io.netty.channel.ChannelHandlerAdapter
- 
- io.netty.channel.ChannelInboundHandlerAdapter
- 
- io.netty.channel.SimpleChannelInboundHandler<T>
- 
- org.mockserver.proxy.relay.RelayConnectHandler<T>
 
 
 
 
- 
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelInboundHandler
 - Direct Known Subclasses:
- HttpConnectHandler,- SocksConnectHandler
 
 @Sharable public abstract class RelayConnectHandler<T> extends io.netty.channel.SimpleChannelInboundHandler<T>
- 
- 
Field SummaryFields Modifier and Type Field Description static io.netty.util.AttributeKey<List<Future<io.netty.channel.Channel>>>HTTP_CONNECT_SOCKET
 - 
Constructor SummaryConstructors Constructor Description RelayConnectHandler(LifeCycle server, MockServerLogger mockServerLogger, String host, int port)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidchannelRead0(io.netty.channel.ChannelHandlerContext serverCtx, T request)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)protected abstract ObjectfailureResponse(Object request)protected abstract voidremoveCodecSupport(io.netty.channel.ChannelHandlerContext ctx)protected voidremoveHandler(io.netty.channel.ChannelPipeline pipeline, io.netty.channel.ChannelHandler channelHandler)protected voidremoveHandler(io.netty.channel.ChannelPipeline pipeline, Class<? extends io.netty.channel.ChannelHandler> handlerType)protected abstract ObjectsuccessResponse(Object request)- 
Methods inherited from class io.netty.channel.SimpleChannelInboundHandleracceptInboundMessage, channelRead
 - 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapterchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
 - 
Methods inherited from class io.netty.channel.ChannelHandlerAdapterensureNotSharable, handlerAdded, handlerRemoved, isSharable
 
- 
 
- 
- 
- 
Constructor Detail- 
RelayConnectHandlerpublic RelayConnectHandler(LifeCycle server, MockServerLogger mockServerLogger, String host, int port) 
 
- 
 - 
Method Detail- 
channelRead0public void channelRead0(io.netty.channel.ChannelHandlerContext serverCtx, T request)- Specified by:
- channelRead0in class- io.netty.channel.SimpleChannelInboundHandler<T>
 
 - 
exceptionCaughtpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)- Specified by:
- exceptionCaughtin interface- io.netty.channel.ChannelHandler
- Specified by:
- exceptionCaughtin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- exceptionCaughtin class- io.netty.channel.ChannelInboundHandlerAdapter
 
 - 
removeCodecSupportprotected abstract void removeCodecSupport(io.netty.channel.ChannelHandlerContext ctx) 
 - 
removeHandlerprotected void removeHandler(io.netty.channel.ChannelPipeline pipeline, Class<? extends io.netty.channel.ChannelHandler> handlerType)
 - 
removeHandlerprotected void removeHandler(io.netty.channel.ChannelPipeline pipeline, io.netty.channel.ChannelHandler channelHandler)
 
- 
 
-