public class PortUnificationHandler extends io.netty.handler.codec.ReplayingDecoder<Void>
Modifier and Type | Field and Description |
---|---|
protected MockServerLogger |
mockServerLogger |
Constructor and Description |
---|
PortUnificationHandler(LifeCycle server,
HttpStateHandler httpStateHandler,
ActionHandler actionHandler,
NettySslContextFactory nettySslContextFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg,
List<Object> out) |
static void |
disableSslDownstream(io.netty.channel.Channel channel) |
static void |
enableSslDownstream(io.netty.channel.Channel channel) |
static void |
enableSslUpstreamAndDownstream(io.netty.channel.Channel channel) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable throwable) |
static boolean |
isSslEnabledDownstream(io.netty.channel.Channel channel) |
static boolean |
isSslEnabledUpstream(io.netty.channel.Channel channel) |
static NettySslContextFactory |
nettySslContextFactory(io.netty.channel.Channel channel) |
callDecode, checkpoint, checkpoint, state, state
actualReadableBytes, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged
ensureNotSharable, handlerAdded, isSharable
protected final MockServerLogger mockServerLogger
public PortUnificationHandler(LifeCycle server, HttpStateHandler httpStateHandler, ActionHandler actionHandler, NettySslContextFactory nettySslContextFactory)
public static NettySslContextFactory nettySslContextFactory(io.netty.channel.Channel channel)
public static void enableSslUpstreamAndDownstream(io.netty.channel.Channel channel)
public static boolean isSslEnabledUpstream(io.netty.channel.Channel channel)
public static void enableSslDownstream(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 decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf msg, List<Object> out)
decode
in class io.netty.handler.codec.ByteToMessageDecoder
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable throwable)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Copyright © 2020. All rights reserved.