@ChannelHandler.Sharable
public abstract class PortUnificationHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>
| Modifier and Type | Field and Description |
|---|---|
protected MockServerLogger |
mockServerLogger |
| Constructor and Description |
|---|
PortUnificationHandler(LifeCycle server,
MockServerLogger mockServerLogger) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg) |
protected abstract void |
configurePipeline(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPipeline pipeline) |
static void |
disableSslDownstream(io.netty.channel.Channel channel) |
static void |
enabledSslDownstream(io.netty.channel.Channel channel) |
static void |
enabledSslUpstreamAndDownstream(io.netty.channel.Channel channel) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
static boolean |
isSslEnabledDownstream(io.netty.channel.Channel channel) |
static boolean |
isSslEnabledUpstream(io.netty.channel.Channel channel) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected final MockServerLogger mockServerLogger
public PortUnificationHandler(LifeCycle server, MockServerLogger mockServerLogger)
public static void enabledSslUpstreamAndDownstream(io.netty.channel.Channel channel)
public static boolean isSslEnabledUpstream(io.netty.channel.Channel channel)
public static void enabledSslDownstream(io.netty.channel.Channel channel)
public static void disableSslDownstream(io.netty.channel.Channel channel)
public static boolean isSslEnabledDownstream(io.netty.channel.Channel channel)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg)
throws Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>Exceptionprotected abstract void configurePipeline(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPipeline pipeline)
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.ChannelInboundHandlerAdapterCopyright © 2018. All rights reserved.