@ChannelHandler.Sharable
public abstract class PortUnificationHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger |
static io.netty.util.AttributeKey<Boolean> |
SSL_ENABLED_DOWNSTREAM |
static io.netty.util.AttributeKey<Boolean> |
SSL_ENABLED_UPSTREAM |
Constructor and Description |
---|
PortUnificationHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addLastIfNotPresent(io.netty.channel.ChannelPipeline pipeline,
io.netty.channel.ChannelHandler channelHandler) |
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
public static final io.netty.util.AttributeKey<Boolean> SSL_ENABLED_UPSTREAM
public static final io.netty.util.AttributeKey<Boolean> SSL_ENABLED_DOWNSTREAM
public static org.slf4j.Logger logger
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 void addLastIfNotPresent(io.netty.channel.ChannelPipeline pipeline, io.netty.channel.ChannelHandler channelHandler)
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.