@ChannelHandler.Sharable
public abstract class RelayConnectHandler<T>
extends io.netty.channel.SimpleChannelInboundHandler<T>
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
host  | 
protected int | 
port  | 
static String | 
PROXIED  | 
static String | 
PROXIED_RESPONSE  | 
static String | 
PROXIED_SECURE  | 
| Constructor and Description | 
|---|
RelayConnectHandler(LifeCycle server,
                   MockServerLogger mockServerLogger,
                   String host,
                   int port)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
channelRead0(io.netty.channel.ChannelHandlerContext proxyClientCtx,
            T request)  | 
void | 
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
               Throwable cause)  | 
protected abstract Object | 
failureResponse(Object request)  | 
protected abstract void | 
removeCodecSupport(io.netty.channel.ChannelHandlerContext ctx)  | 
protected void | 
removeHandler(io.netty.channel.ChannelPipeline pipeline,
             io.netty.channel.ChannelHandler channelHandler)  | 
protected void | 
removeHandler(io.netty.channel.ChannelPipeline pipeline,
             Class<? extends io.netty.channel.ChannelHandler> handlerType)  | 
protected abstract Object | 
successResponse(Object request)  | 
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final String PROXIED
public static final String PROXIED_SECURE
public static final String PROXIED_RESPONSE
protected final String host
protected final int port
public RelayConnectHandler(LifeCycle server, MockServerLogger mockServerLogger, String host, int port)
public void channelRead0(io.netty.channel.ChannelHandlerContext proxyClientCtx,
                         T request)
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<T>public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
                            Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterprotected abstract void removeCodecSupport(io.netty.channel.ChannelHandlerContext ctx)
protected void removeHandler(io.netty.channel.ChannelPipeline pipeline,
                             Class<? extends io.netty.channel.ChannelHandler> handlerType)
protected void removeHandler(io.netty.channel.ChannelPipeline pipeline,
                             io.netty.channel.ChannelHandler channelHandler)
Copyright © 2020. All rights reserved.