@ChannelHandler.Sharable
public abstract class RelayConnectHandler<T>
extends io.netty.channel.SimpleChannelInboundHandler<T>
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)
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<T>
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 © 2020. All rights reserved.