@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, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
protected 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>
Exception
protected 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.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Copyright © 2018. All rights reserved.