Class RelayConnectHandler<T>
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<T>
software.xdev.mockserver.netty.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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRelayConnectHandler(ServerConfiguration configuration, LifeCycle server, String host, int port) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelRead0(io.netty.channel.ChannelHandlerContext proxyClientCtx, 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.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
PROXIED
- See Also:
-
PROXIED_SECURE
- See Also:
-
PROXIED_RESPONSE
- See Also:
-
host
-
port
protected final int port
-
-
Constructor Details
-
RelayConnectHandler
protected RelayConnectHandler(ServerConfiguration configuration, LifeCycle server, String host, int port)
-
-
Method Details
-
channelRead0
- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<T>
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
removeCodecSupport
protected abstract void removeCodecSupport(io.netty.channel.ChannelHandlerContext ctx) -
successResponse
-
failureResponse
-
removeHandler
protected void removeHandler(io.netty.channel.ChannelPipeline pipeline, Class<? extends io.netty.channel.ChannelHandler> handlerType) -
removeHandler
protected void removeHandler(io.netty.channel.ChannelPipeline pipeline, io.netty.channel.ChannelHandler channelHandler)
-