Uses of Interface
io.netty5.channel.ChannelHandler
-
Packages that use ChannelHandler Package Description io.netty5.bootstrap The helper classes with fluent API which enable an easy implementation of typical client side and server side channel initialization.io.netty5.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty5.channel.embedded A virtualChannel
that helps wrapping a series of handlers to unit test the handlers or use them in non-I/O context.io.netty5.channel.internal Internal utilities for channel implementations.io.netty5.handler.address Package to dynamically replace local / remoteSocketAddress
.io.netty5.handler.codec Extensible decoder and its common implementations which deal with the packet fragmentation and reassembly issue found in a stream-based transport such as TCP/IP.io.netty5.handler.codec.base64 io.netty5.handler.codec.bytes Encoder and decoder which transform an array of bytes into aio.netty5.buffer.ByteBuf
and vice versa.io.netty5.handler.codec.compression io.netty5.handler.codec.dns DNS codec.io.netty5.handler.codec.http Encoder, decoder and their related message types for HTTP.io.netty5.handler.codec.http.cors This package contains Cross Origin Resource Sharing (CORS) related classes.io.netty5.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.io.netty5.handler.codec.http.websocketx.extensions Encoder, decoder, handshakers to handle WebSocket Extensions.io.netty5.handler.codec.http.websocketx.extensions.compression Encoder, decoder, handshakers to handle most common WebSocket Compression Extensions.io.netty5.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames.io.netty5.handler.codec.rtsp An RTSP extension based on the HTTP codec.io.netty5.handler.codec.string Encoder and decoder which transform aString
into aio.netty5.buffer.ByteBuf
and vice versa.io.netty5.handler.flow Package to control the flow of messages.io.netty5.handler.flush Package to control flush behavior.io.netty5.handler.ipfilter Package to filter IP addresses (allow/deny).io.netty5.handler.logging Logs the I/O events for debugging purpose.io.netty5.handler.ssl io.netty5.handler.ssl.ocsp OCSP stapling, formally known as the TLS Certificate Status Request extension, is an alternative approach to the Online Certificate Status Protocol (OCSP) for checking the revocation status of X.509 digital certificates.io.netty5.handler.stream Writes very large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError
.io.netty5.handler.timeout Adds support for read and write timeout and idle connection notification using aTimer
.io.netty5.handler.traffic Implementation of a Traffic Shaping Handler and Dynamic Statistics. -
-
Uses of ChannelHandler in io.netty5.bootstrap
Methods in io.netty5.bootstrap that return ChannelHandler Modifier and Type Method Description ChannelHandler
ServerBootstrapConfig. childHandler()
Returns the configuredChannelHandler
be used for the child channels ornull
if non is configured yet.ChannelHandler
AbstractBootstrapConfig. handler()
Returns the configuredChannelHandler
ornull
if non is configured yet.Methods in io.netty5.bootstrap with parameters of type ChannelHandler Modifier and Type Method Description ServerBootstrap
ServerBootstrap. childHandler(ChannelHandler childHandler)
Set theChannelHandler
which is used to serve the request for theChannel
's.B
AbstractBootstrap. handler(ChannelHandler handler)
theChannelHandler
to use for serving the requests. -
Uses of ChannelHandler in io.netty5.channel
Classes in io.netty5.channel with type parameters of type ChannelHandler Modifier and Type Class Description class
CombinedChannelDuplexHandler<I extends ChannelHandler,O extends ChannelHandler>
Combines the inbound handling of oneChannelHandler
with the outbound handling of anotherChannelHandler
.class
CombinedChannelDuplexHandler<I extends ChannelHandler,O extends ChannelHandler>
Combines the inbound handling of oneChannelHandler
with the outbound handling of anotherChannelHandler
.Classes in io.netty5.channel that implement ChannelHandler Modifier and Type Class Description class
ChannelHandlerAdapter
Skeleton implementation of aChannelHandler
.class
ChannelInitializer<C extends Channel>
A specialChannelHandler
which offers an easy way to initialize aChannel
once it was registered to itsEventLoop
.class
CombinedChannelDuplexHandler<I extends ChannelHandler,O extends ChannelHandler>
Combines the inbound handling of oneChannelHandler
with the outbound handling of anotherChannelHandler
.class
SimpleChannelInboundHandler<I>
ChannelHandler
which allows to explicit only handle a specific type of messages.class
SimpleUserEventChannelHandler<I>
ChannelHandler
which allows to conveniently only handle a specific type of user events.Methods in io.netty5.channel with type parameters of type ChannelHandler Modifier and Type Method Description <T extends ChannelHandler>
TChannelPipeline. get(Class<T> handlerType)
Returns theChannelHandler
of the specified type in this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline. get(Class<T> handlerType)
default <T extends ChannelHandler>
TChannelPipeline. remove(Class<T> handlerType)
Removes theChannelHandler
of the specified type from this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline. remove(Class<T> handlerType)
<T extends ChannelHandler>
TChannelPipeline. removeIfExists(ChannelHandler handler)
Removes the specifiedChannelHandler
from this pipeline if it exists<T extends ChannelHandler>
TChannelPipeline. removeIfExists(Class<T> handlerType)
Removes theChannelHandler
of the specified type from this pipeline if it exists.<T extends ChannelHandler>
TChannelPipeline. removeIfExists(String name)
Removes theChannelHandler
with the specified name from this pipeline if it exists.<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(ChannelHandler handler)
<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(Class<T> handlerType)
<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(String name)
<T extends ChannelHandler>
TChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)
Replaces theChannelHandler
of the specified type with a new handler in this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)
Methods in io.netty5.channel that return ChannelHandler Modifier and Type Method Description default ChannelHandler
ChannelPipeline. first()
Returns the firstChannelHandler
in this pipeline.ChannelHandler
DefaultChannelPipeline. first()
ChannelHandler
ChannelPipeline. get(String name)
Returns theChannelHandler
with the specified name in this pipeline.ChannelHandler
DefaultChannelPipeline. get(String name)
ChannelHandler
ChannelHandlerContext. handler()
TheChannelHandler
that is bound thisChannelHandlerContext
.default ChannelHandler
ChannelPipeline. last()
Returns the lastChannelHandler
in this pipeline.ChannelHandler
DefaultChannelPipeline. last()
default ChannelHandler
ChannelPipeline. remove(String name)
Removes theChannelHandler
with the specified name from this pipeline.ChannelHandler
DefaultChannelPipeline. remove(String name)
ChannelHandler
ChannelPipeline. removeFirst()
Removes the firstChannelHandler
in this pipeline.ChannelHandler
DefaultChannelPipeline. removeFirst()
ChannelHandler
ChannelPipeline. removeLast()
Removes the lastChannelHandler
in this pipeline.ChannelHandler
DefaultChannelPipeline. removeLast()
ChannelHandler
ChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)
Replaces theChannelHandler
of the specified name with a new handler in this pipeline.ChannelHandler
DefaultChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)
Methods in io.netty5.channel that return types with arguments of type ChannelHandler Modifier and Type Method Description Iterator<Map.Entry<String,ChannelHandler>>
DefaultChannelPipeline. iterator()
Map<String,ChannelHandler>
ChannelPipeline. toMap()
Converts this pipeline into an orderedMap
whose keys are handler names and whose values are handlers.Map<String,ChannelHandler>
DefaultChannelPipeline. toMap()
Methods in io.netty5.channel with parameters of type ChannelHandler Modifier and Type Method Description ChannelPipeline
ChannelPipeline. addAfter(String baseName, String name, ChannelHandler handler)
Inserts aChannelHandler
after an existing handler of this pipeline.ChannelPipeline
DefaultChannelPipeline. addAfter(String baseName, String name, ChannelHandler handler)
ChannelPipeline
ChannelPipeline. addBefore(String baseName, String name, ChannelHandler handler)
Inserts aChannelHandler
before an existing handler of this pipeline.ChannelPipeline
DefaultChannelPipeline. addBefore(String baseName, String name, ChannelHandler handler)
ChannelPipeline
ChannelPipeline. addFirst(ChannelHandler... handlers)
InsertsChannelHandler
s at the first position of this pipeline.ChannelPipeline
ChannelPipeline. addFirst(String name, ChannelHandler handler)
Inserts aChannelHandler
at the first position of this pipeline.ChannelPipeline
DefaultChannelPipeline. addFirst(ChannelHandler handler)
ChannelPipeline
DefaultChannelPipeline. addFirst(ChannelHandler... handlers)
ChannelPipeline
DefaultChannelPipeline. addFirst(String name, ChannelHandler handler)
ChannelPipeline
ChannelPipeline. addLast(ChannelHandler... handlers)
InsertsChannelHandler
s at the last position of this pipeline.ChannelPipeline
ChannelPipeline. addLast(String name, ChannelHandler handler)
Appends aChannelHandler
at the last position of this pipeline.ChannelPipeline
DefaultChannelPipeline. addLast(ChannelHandler handler)
ChannelPipeline
DefaultChannelPipeline. addLast(ChannelHandler... handlers)
ChannelPipeline
DefaultChannelPipeline. addLast(String name, ChannelHandler handler)
ChannelHandlerContext
ChannelPipeline. context(ChannelHandler handler)
Returns the context object of the specifiedChannelHandler
in this pipeline.ChannelHandlerContext
DefaultChannelPipeline. context(ChannelHandler handler)
default ChannelPipeline
ChannelPipeline. remove(ChannelHandler handler)
Removes the specifiedChannelHandler
from this pipeline.ChannelPipeline
DefaultChannelPipeline. remove(ChannelHandler handler)
<T extends ChannelHandler>
TChannelPipeline. removeIfExists(ChannelHandler handler)
Removes the specifiedChannelHandler
from this pipeline if it exists<T extends ChannelHandler>
TDefaultChannelPipeline. removeIfExists(ChannelHandler handler)
ChannelPipeline
ChannelPipeline. replace(ChannelHandler oldHandler, String newName, ChannelHandler newHandler)
Replaces the specifiedChannelHandler
with a new handler in this pipeline.<T extends ChannelHandler>
TChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)
Replaces theChannelHandler
of the specified type with a new handler in this pipeline.ChannelHandler
ChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)
Replaces theChannelHandler
of the specified name with a new handler in this pipeline.ChannelPipeline
DefaultChannelPipeline. replace(ChannelHandler oldHandler, String newName, ChannelHandler newHandler)
<T extends ChannelHandler>
TDefaultChannelPipeline. replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler)
ChannelHandler
DefaultChannelPipeline. replace(String oldName, String newName, ChannelHandler newHandler)
Method parameters in io.netty5.channel with type arguments of type ChannelHandler Modifier and Type Method Description ChannelHandlerContext
ChannelPipeline. context(Class<? extends ChannelHandler> handlerType)
Returns the context object of theChannelHandler
of the specified type in this pipeline.ChannelHandlerContext
DefaultChannelPipeline. context(Class<? extends ChannelHandler> handlerType)
-
Uses of ChannelHandler in io.netty5.channel.embedded
Constructors in io.netty5.channel.embedded with parameters of type ChannelHandler Constructor Description EmbeddedChannel(boolean register, boolean hasDisconnect, ChannelHandler... handlers)
Create a new instance with the pipeline initialized with the specified handlers.EmbeddedChannel(boolean hasDisconnect, ChannelHandler... handlers)
Create a new instance with the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelHandler... handlers)
Create a new instance with the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelId channelId, boolean register, boolean hasDisconnect, ChannelHandler... handlers)
Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelHandler... handlers)
Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.EmbeddedChannel(ChannelId channelId, ChannelHandler... handlers)
Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers.EmbeddedChannel(Channel parent, ChannelId channelId, boolean register, boolean hasDisconnect, ChannelHandler... handlers)
Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers. -
Uses of ChannelHandler in io.netty5.channel.internal
Methods in io.netty5.channel.internal that return ChannelHandler Modifier and Type Method Description ChannelHandler
DelegatingChannelHandlerContext. handler()
-
Uses of ChannelHandler in io.netty5.handler.address
Classes in io.netty5.handler.address that implement ChannelHandler Modifier and Type Class Description class
DynamicAddressConnectHandler
ChannelHandler
implementation which allows to dynamically replace the usedremoteAddress
and / orlocalAddress
when making a connection attempt.class
ResolveAddressHandler
ChannelHandler
which will resolve theSocketAddress
that is passed toResolveAddressHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress)
if it is not already resolved and theAddressResolver
supports the type ofSocketAddress
. -
Uses of ChannelHandler in io.netty5.handler.codec
Classes in io.netty5.handler.codec that implement ChannelHandler Modifier and Type Class Description class
ByteToMessageCodec<I>
A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.class
ByteToMessageDecoder
ChannelHandler
which decodes bytes in a stream-like fashion from oneBuffer
to an other Message type.class
DatagramPacketDecoder
A decoder that decodes the content of the receivedDatagramPacket
using the specifiedBuffer
decoder.class
DatagramPacketEncoder<M>
An encoder that encodes the content inAddressedEnvelope
toDatagramPacket
using the specified message encoder.class
DelimiterBasedFrameDecoder
A decoder that splits the receivedBuffer
s by one or more delimiters.class
FixedLengthFrameDecoder
A decoder that splits the receivedBuffer
s by the fixed number of bytes.class
LengthFieldBasedFrameDecoder
A decoder that splits the receivedBuffer
s dynamically by the value of the length field in the message.class
LengthFieldPrepender
An encoder that prepends the length of the message.class
LineBasedFrameDecoder
A decoder that splits the receivedBuffer
s on line endings.class
MessageAggregator<I,S,C extends AutoCloseable,A extends AutoCloseable>
An abstractChannelHandler
that aggregates a series of message objects into a single aggregated message.class
MessageToByteEncoder<I>
ChannelHandler
which encodes message in a stream-like fashion from one message to aBuffer
.class
MessageToMessageCodec<INBOUND_IN,OUTBOUND_IN>
A Codec for on-the-fly encoding/decoding of message.class
MessageToMessageDecoder<I>
ChannelHandler
which decodes from one message to another message.class
MessageToMessageEncoder<I>
ChannelHandler
which encodes from one message to another message For example here is an implementation which decodes anInteger
to anString
. -
Uses of ChannelHandler in io.netty5.handler.codec.base64
Classes in io.netty5.handler.codec.base64 that implement ChannelHandler Modifier and Type Class Description class
Base64Decoder
class
Base64Encoder
-
Uses of ChannelHandler in io.netty5.handler.codec.bytes
Classes in io.netty5.handler.codec.bytes that implement ChannelHandler Modifier and Type Class Description class
ByteArrayDecoder
Decodes a receivedBuffer
into an array of bytes.class
ByteArrayEncoder
Encodes the requested array of bytes into aBuffer
. -
Uses of ChannelHandler in io.netty5.handler.codec.compression
Classes in io.netty5.handler.codec.compression that implement ChannelHandler Modifier and Type Class Description class
CompressionHandler
class
DecompressionHandler
Methods in io.netty5.handler.codec.compression that return ChannelHandler Modifier and Type Method Description static ChannelHandler
ZlibCodecFactory. newZlibDecoder()
static ChannelHandler
ZlibCodecFactory. newZlibDecoder(byte[] dictionary)
static ChannelHandler
ZlibCodecFactory. newZlibDecoder(ZlibWrapper wrapper)
static ChannelHandler
ZlibCodecFactory. newZlibEncoder(byte[] dictionary)
static ChannelHandler
ZlibCodecFactory. newZlibEncoder(int compressionLevel)
static ChannelHandler
ZlibCodecFactory. newZlibEncoder(int compressionLevel, byte[] dictionary)
static ChannelHandler
ZlibCodecFactory. newZlibEncoder(int compressionLevel, int windowBits, int memLevel, byte[] dictionary)
static ChannelHandler
ZlibCodecFactory. newZlibEncoder(ZlibWrapper wrapper)
static ChannelHandler
ZlibCodecFactory. newZlibEncoder(ZlibWrapper wrapper, int compressionLevel)
static ChannelHandler
ZlibCodecFactory. newZlibEncoder(ZlibWrapper wrapper, int compressionLevel, int windowBits, int memLevel)
-
Uses of ChannelHandler in io.netty5.handler.codec.dns
Classes in io.netty5.handler.codec.dns that implement ChannelHandler Modifier and Type Class Description class
DatagramDnsQueryDecoder
Decodes aDatagramPacket
into aDatagramDnsQuery
.class
DatagramDnsQueryEncoder
class
DatagramDnsResponseDecoder
Decodes aDatagramPacket
into aDatagramDnsResponse
.class
DatagramDnsResponseEncoder
class
TcpDnsQueryDecoder
class
TcpDnsQueryEncoder
class
TcpDnsResponseDecoder
class
TcpDnsResponseEncoder
-
Uses of ChannelHandler in io.netty5.handler.codec.http
Classes in io.netty5.handler.codec.http that implement ChannelHandler Modifier and Type Class Description class
HttpClientCodec
A combination ofHttpRequestEncoder
andHttpResponseDecoder
which enables easier client side HTTP implementation.class
HttpClientUpgradeHandler<C extends HttpContent<C>>
Client-side handler for handling an HTTP upgrade handshake to another protocol.class
HttpContentCompressor
Compresses anHttpMessage
and anHttpContent
ingzip
ordeflate
encoding while respecting the"Accept-Encoding"
header.class
HttpContentDecoder
Decodes the content of the receivedHttpRequest
andHttpContent
.class
HttpContentDecompressor
class
HttpContentEncoder
Encodes the content of the outboundHttpResponse
andHttpContent
.class
HttpObjectAggregator<C extends HttpContent<C>>
AChannelHandler
that aggregates anHttpMessage
and its followingHttpContent
s into a singleFullHttpRequest
orFullHttpResponse
(depending on if it used to handle requests or responses) with no followingHttpContent
s.class
HttpObjectDecoder
class
HttpObjectEncoder<H extends HttpMessage>
class
HttpRequestDecoder
class
HttpRequestEncoder
class
HttpResponseDecoder
class
HttpResponseEncoder
class
HttpServerCodec
A combination ofHttpRequestDecoder
andHttpResponseEncoder
which enables easier server side HTTP implementation.class
HttpServerExpectContinueHandler
class
HttpServerKeepAliveHandler
HttpServerKeepAliveHandler helps close persistent connections when appropriate.class
HttpServerUpgradeHandler<C extends HttpContent<C>>
A server-side handler that receives HTTP requests and optionally performs a protocol switch if the requested protocol is supported. -
Uses of ChannelHandler in io.netty5.handler.codec.http.cors
Classes in io.netty5.handler.codec.http.cors that implement ChannelHandler Modifier and Type Class Description class
CorsHandler
Handles Cross Origin Resource Sharing (CORS) requests. -
Uses of ChannelHandler in io.netty5.handler.codec.http.websocketx
Subinterfaces of ChannelHandler in io.netty5.handler.codec.http.websocketx Modifier and Type Interface Description interface
WebSocketFrameDecoder
Marker interface which all WebSocketFrame decoders need to implement.interface
WebSocketFrameEncoder
Marker interface which all WebSocketFrame encoders need to implement.Classes in io.netty5.handler.codec.http.websocketx that implement ChannelHandler Modifier and Type Class Description class
Utf8FrameValidator
class
WebSocket13FrameDecoder
Decodes a web socket frame from wire protocol version 13 format.class
WebSocket13FrameEncoder
Encodes a web socket frame into wire protocol version 13 format.class
WebSocketClientProtocolHandler
This handler does all the heavy lifting for you to run a websocket client.class
WebSocketFrameAggregator
Handler that aggregate fragmented WebSocketFrame's.class
WebSocketServerProtocolHandler
This handler does all the heavy lifting for you to run a websocket server. -
Uses of ChannelHandler in io.netty5.handler.codec.http.websocketx.extensions
Classes in io.netty5.handler.codec.http.websocketx.extensions that implement ChannelHandler Modifier and Type Class Description class
WebSocketClientExtensionHandler
This handler negotiates and initializes the WebSocket Extensions.class
WebSocketExtensionDecoder
Convenient class for io.netty5.handler.codec.http.websocketx.extensions.WebSocketExtension decoder.class
WebSocketExtensionEncoder
Convenient class for io.netty5.handler.codec.http.websocketx.extensions.WebSocketExtension encoder.class
WebSocketServerExtensionHandler
This handler negotiates and initializes the WebSocket Extensions. -
Uses of ChannelHandler in io.netty5.handler.codec.http.websocketx.extensions.compression
Classes in io.netty5.handler.codec.http.websocketx.extensions.compression that implement ChannelHandler Modifier and Type Class Description class
WebSocketClientCompressionHandler
Extends io.netty5.handler.codec.http.websocketx.extensions.compression.WebSocketClientExtensionHandler to handle the most common WebSocket Compression Extensions.class
WebSocketServerCompressionHandler
Extends io.netty5.handler.codec.http.websocketx.extensions.compression.WebSocketServerExtensionHandler to handle the most common WebSocket Compression Extensions. -
Uses of ChannelHandler in io.netty5.handler.codec.http2
Classes in io.netty5.handler.codec.http2 that implement ChannelHandler Modifier and Type Class Description class
CleartextHttp2ServerUpgradeHandler
Performing clear-text upgrade, by h2c HTTP upgrade or Prior Knowledge.class
Http2ChannelDuplexHandler
AChannelHandler
providing additional functionality for HTTP/2.class
Http2ConnectionHandler
Provides the default implementation for processing inbound frame events and delegates to aHttp2FrameListener
class
Http2FrameCodec
This API is very immature. The Http2Connection-based API is currently preferred over this API.class
Http2MultiplexHandler
An HTTP/2 handler that creates child channels for each stream.class
Http2StreamFrameToHttpObjectCodec
This handler converts fromHttp2StreamFrame
toHttpObject
, and back.class
HttpToHttp2ConnectionHandler
Translates HTTP/1.x object writes into HTTP/2 frames.class
InboundHttpToHttp2Adapter
Translates HTTP/1.x object reads into HTTP/2 frames.Methods in io.netty5.handler.codec.http2 with parameters of type ChannelHandler Modifier and Type Method Description Http2StreamChannelBootstrap
Http2StreamChannelBootstrap. handler(ChannelHandler handler)
theChannelHandler
to use for serving the requests.Constructors in io.netty5.handler.codec.http2 with parameters of type ChannelHandler Constructor Description CleartextHttp2ServerUpgradeHandler(HttpServerCodec httpServerCodec, HttpServerUpgradeHandler<?> httpServerUpgradeHandler, ChannelHandler http2ServerHandler)
Creates the channel handler provide cleartext HTTP/2 upgrade from HTTP upgrade or prior knowledgeHttp2ClientUpgradeCodec(Http2FrameCodec frameCodec, ChannelHandler upgradeToHandler)
Http2ClientUpgradeCodec(String handlerName, Http2FrameCodec frameCodec, ChannelHandler upgradeToHandler)
Http2MultiplexHandler(ChannelHandler inboundStreamHandler)
Creates a new instanceHttp2MultiplexHandler(ChannelHandler inboundStreamHandler, ChannelHandler upgradeStreamHandler)
Creates a new instanceHttp2ServerUpgradeCodec(Http2FrameCodec http2Codec, ChannelHandler... handlers)
Creates the codec using a default name for the connection handler when adding to the pipeline. -
Uses of ChannelHandler in io.netty5.handler.codec.rtsp
Classes in io.netty5.handler.codec.rtsp that implement ChannelHandler Modifier and Type Class Description class
RtspDecoder
Decodesio.netty5.buffer.ByteBuf
s into RTSP messages represented inHttpMessage
s.class
RtspEncoder
-
Uses of ChannelHandler in io.netty5.handler.codec.string
Classes in io.netty5.handler.codec.string that implement ChannelHandler Modifier and Type Class Description class
LineEncoder
class
StringDecoder
class
StringEncoder
-
Uses of ChannelHandler in io.netty5.handler.flow
Classes in io.netty5.handler.flow that implement ChannelHandler Modifier and Type Class Description class
FlowControlHandler
TheFlowControlHandler
ensures that only one message perread()
is sent downstream. -
Uses of ChannelHandler in io.netty5.handler.flush
Classes in io.netty5.handler.flush that implement ChannelHandler Modifier and Type Class Description class
FlushConsolidationHandler
ChannelHandler
which consolidatesChannel.flush()
/ChannelHandlerContext.flush()
operations (which also includesChannel.writeAndFlush(Object)
andChannelOutboundInvoker.writeAndFlush(Object)
. -
Uses of ChannelHandler in io.netty5.handler.ipfilter
Classes in io.netty5.handler.ipfilter that implement ChannelHandler Modifier and Type Class Description class
AbstractRemoteAddressFilter<T extends SocketAddress>
This class provides the functionality to either accept or reject newChannel
s based on their IP address.class
IpSubnetFilter
This class allows one to filter newChannel
s based on theIpSubnetFilter
s passed to its constructor.class
RuleBasedIpFilter
This class allows one to filter newChannel
s based on theIpFilterRule
s passed to its constructor.class
UniqueIpFilter
This class allows one to ensure that at all times for every IP address there is at most oneChannel
connected to the server. -
Uses of ChannelHandler in io.netty5.handler.logging
Classes in io.netty5.handler.logging that implement ChannelHandler Modifier and Type Class Description class
LoggingHandler
AChannelHandler
that logs all events using a logging framework. -
Uses of ChannelHandler in io.netty5.handler.ssl
Classes in io.netty5.handler.ssl that implement ChannelHandler Modifier and Type Class Description class
AbstractSniHandler<T>
Enables SNI (Server Name Indication) extension for server side SSL.class
ApplicationProtocolNegotiationHandler
Configures aChannelPipeline
depending on the application-level protocol negotiation result ofSslHandler
.class
OptionalSslHandler
OptionalSslHandler
is a utility decoder to support both SSL and non-SSL handlers based on the first message received.class
SniHandler
Enables SNI (Server Name Indication) extension for server side SSL.class
SslClientHelloHandler<T>
ByteToMessageDecoder
which allows to be notified once a fullClientHello
was received.class
SslHandler
class
SslMasterKeyHandler
TheSslMasterKeyHandler
is a channel-handler you can include in your pipeline to consume the master key & session identifier for a TLS session.Methods in io.netty5.handler.ssl that return ChannelHandler Modifier and Type Method Description protected ChannelHandler
OptionalSslHandler. newNonSslHandler(ChannelHandlerContext context)
Override to configure the ChannelHandler. -
Uses of ChannelHandler in io.netty5.handler.ssl.ocsp
Classes in io.netty5.handler.ssl.ocsp that implement ChannelHandler Modifier and Type Class Description class
OcspClientHandler
A handler for SSL clients to handle and act upon stapled OCSP responses. -
Uses of ChannelHandler in io.netty5.handler.stream
Classes in io.netty5.handler.stream that implement ChannelHandler Modifier and Type Class Description class
ChunkedWriteHandler
AChannelHandler
that adds support for writing a large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError
. -
Uses of ChannelHandler in io.netty5.handler.timeout
Classes in io.netty5.handler.timeout that implement ChannelHandler Modifier and Type Class Description class
IdleStateHandler
Triggers anIdleStateEvent
when aChannel
has not performed read, write, or both operation for a while.class
ReadTimeoutHandler
Raises aReadTimeoutException
when no data was read within a certain period of time.class
WriteTimeoutHandler
Raises aWriteTimeoutException
when a write operation cannot finish in a certain period of time. -
Uses of ChannelHandler in io.netty5.handler.traffic
Classes in io.netty5.handler.traffic that implement ChannelHandler Modifier and Type Class Description class
AbstractTrafficShapingHandler
AbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler
) or per session bandwidth (seeChannelTrafficShapingHandler
), as traffic shaping.class
ChannelTrafficShapingHandler
This implementation of theAbstractTrafficShapingHandler
is for channel traffic shaping, that is to say a per channel limitation of the bandwidth.class
GlobalChannelTrafficShapingHandler
This implementation of theAbstractTrafficShapingHandler
is for global and per channel traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels and a per channel limitation of the bandwidth.
This version shall not be in the same pipeline than other TrafficShapingHandler.
The general use should be as follow:
Create your unique GlobalChannelTrafficShapingHandler like:
GlobalChannelTrafficShapingHandler myHandler = new GlobalChannelTrafficShapingHandler(executor);
The executor could be the underlying IO worker pool
pipeline.addLast(myHandler);
Note that this handler has a Pipeline Coverage of "all" which means only one such handler must be created and shared among all channels as the counter must be shared among all channels.
Other arguments can be passed like write or read limitation (in bytes/s where 0 means no limitation) or the check interval (in millisecond) that represents the delay between two computations of the bandwidth and so the call back of the doAccounting method (0 means no accounting at all).
Note that as this is a fusion of both Global and Channel Traffic Shaping, limits are in 2 sets, respectively Global and Channel.
A value of 0 means no accounting for checkInterval.class
GlobalTrafficShapingHandler
This implementation of theAbstractTrafficShapingHandler
is for global traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels.
-