@ChannelHandler.Sharable
public abstract class RelayConnectHandler<T>
extends io.netty.channel.SimpleChannelInboundHandler<T>
Modifier and Type | Field and Description |
---|---|
static io.netty.util.AttributeKey<List<Future<io.netty.channel.Channel>>> |
HTTP_CONNECT_SOCKET |
Constructor and Description |
---|
RelayConnectHandler(LifeCycle server,
MockServerLogger mockServerLogger,
String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
channelRead0(io.netty.channel.ChannelHandlerContext serverCtx,
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, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public RelayConnectHandler(LifeCycle server, MockServerLogger mockServerLogger, String host, int port)
public void channelRead0(io.netty.channel.ChannelHandlerContext serverCtx, T request) throws Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
protected 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 © 2018. All rights reserved.