Uses of Interface
io.netty.channel.ChannelOutboundHandler
-
Packages that use ChannelOutboundHandler Package Description io.netty.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty.handler.address Package to dynamically replace local / remoteSocketAddress.io.netty.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.netty.handler.codec.base64 io.netty.handler.codec.bytes Encoder and decoder which transform an array of bytes into aByteBufand vice versa.io.netty.handler.codec.compression io.netty.handler.codec.dns DNS codec.io.netty.handler.codec.haproxy Decodes an HAProxy proxy protocol headerio.netty.handler.codec.http Encoder, decoder and their related message types for HTTP.io.netty.handler.codec.http.cors This package contains Cross Origin Resource Sharing (CORS) related classes.io.netty.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.io.netty.handler.codec.http.websocketx.extensions Encoder, decoder, handshakers to handle WebSocket Extensions.io.netty.handler.codec.http.websocketx.extensions.compression Encoder, decoder, handshakers to handle most common WebSocket Compression Extensions.io.netty.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames.io.netty.handler.codec.http3 HTTP/3 implementation.io.netty.handler.codec.marshalling Decoder and Encoder which uses JBoss Marshalling.io.netty.handler.codec.memcache Common superset of ascii and binary classes.io.netty.handler.codec.memcache.binary Implementations and Interfaces for the Memcache Binary protocol.io.netty.handler.codec.mqtt Encoder, decoder and different Message Types for MQTT.io.netty.handler.codec.protobuf Encoder and decoder which transform a Google Protocol BuffersMessageandMessageNanointo aByteBufand vice versa.io.netty.handler.codec.redis Encoder, decoder for Redis.io.netty.handler.codec.rtsp An RTSP extension based on the HTTP codec.io.netty.handler.codec.sctp Decoder and encoders to manage message completion and multi-streaming codec in SCTP/IP.io.netty.handler.codec.serialization Encoder, decoder and their compatibility stream implementations which transform aSerializableobject into a byte buffer and vice versa.io.netty.handler.codec.smtp SMTP codec.io.netty.handler.codec.socks Encoder, decoder and their related message types for Socks.io.netty.handler.codec.socksx.v4 Encoder, decoder and their related message types for SOCKSv4 protocol.io.netty.handler.codec.socksx.v5 Encoder, decoder and their related message types for SOCKSv5 protocol.io.netty.handler.codec.spdy Encoder, decoder, session handler and their related message types for the SPDY protocol.io.netty.handler.codec.stomp STOMP codecio.netty.handler.codec.string Encoder and decoder which transform aStringinto aByteBufand vice versa.io.netty.handler.flow Package to control the flow of messages.io.netty.handler.flush Package to control flush behavior.io.netty.handler.logging Logs the I/O events for debugging purpose.io.netty.handler.pcap Capture data and write into Pcap format which helps in troubleshooting.io.netty.handler.proxy Adds support for client connections via proxy protocols such as SOCKS and HTTP CONNECT tunnelingio.netty.handler.ssl SSL · TLS implementation based onSSLEngineio.netty.handler.stream Writes very large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError.io.netty.handler.timeout Adds support for read and write timeout and idle connection notification using aTimer.io.netty.handler.traffic Implementation of a Traffic Shaping Handler and Dynamic Statistics. -
-
Uses of ChannelOutboundHandler in io.netty.channel
Classes in io.netty.channel with type parameters of type ChannelOutboundHandler Modifier and Type Class Description classCombinedChannelDuplexHandler<I extends ChannelInboundHandler,O extends ChannelOutboundHandler>Classes in io.netty.channel that implement ChannelOutboundHandler Modifier and Type Class Description classChannelDuplexHandlerChannelHandlerimplementation which represents a combination out of aChannelInboundHandlerand theChannelOutboundHandler.classChannelOutboundHandlerAdapterSkeleton implementation of aChannelOutboundHandler.classCombinedChannelDuplexHandler<I extends ChannelInboundHandler,O extends ChannelOutboundHandler> -
Uses of ChannelOutboundHandler in io.netty.handler.address
Classes in io.netty.handler.address that implement ChannelOutboundHandler Modifier and Type Class Description classDynamicAddressConnectHandlerChannelOutboundHandlerimplementation which allows to dynamically replace the usedremoteAddressand / orlocalAddresswhen making a connection attempt.classResolveAddressHandlerChannelOutboundHandlerAdapterwhich will resolve theSocketAddressthat is passed toResolveAddressHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)if it is not already resolved and theAddressResolversupports the type ofSocketAddress. -
Uses of ChannelOutboundHandler in io.netty.handler.codec
Classes in io.netty.handler.codec that implement ChannelOutboundHandler Modifier and Type Class Description classByteToMessageCodec<I>A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.classDatagramPacketEncoder<M>An encoder that encodes the content inAddressedEnvelopetoDatagramPacketusing the specified message encoder.classLengthFieldPrependerAn encoder that prepends the length of the message.classMessageToByteEncoder<I>ChannelOutboundHandlerAdapterwhich encodes message in a stream-like fashion from one message to anByteBuf.classMessageToMessageCodec<INBOUND_IN,OUTBOUND_IN>A Codec for on-the-fly encoding/decoding of message.classMessageToMessageEncoder<I>ChannelOutboundHandlerAdapterwhich encodes from one message to an other message For example here is an implementation which decodes anIntegerto anString. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.base64
Classes in io.netty.handler.codec.base64 that implement ChannelOutboundHandler Modifier and Type Class Description classBase64Encoder -
Uses of ChannelOutboundHandler in io.netty.handler.codec.bytes
Classes in io.netty.handler.codec.bytes that implement ChannelOutboundHandler Modifier and Type Class Description classByteArrayEncoderEncodes the requested array of bytes into aByteBuf. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.compression
Classes in io.netty.handler.codec.compression that implement ChannelOutboundHandler Modifier and Type Class Description classBrotliEncoderCompress aByteBufwith the Brotli compression.classBzip2EncoderCompresses aByteBufusing the Bzip2 algorithm.classFastLzFrameEncoderCompresses aByteBufusing the FastLZ algorithm.classJdkZlibEncoderCompresses aByteBufusing the deflate algorithm.classJZlibEncoderCompresses aByteBufusing the deflate algorithm.classLz4FrameEncoderCompresses aByteBufusing the LZ4 format.classLzfEncoderCompresses aByteBufusing the LZF format.classLzmaFrameEncoderCompresses aByteBufusing the LZMA algorithm.classSnappyFramedEncoderDeprecated.UseSnappyFrameEncoderinstead.classSnappyFrameEncoderCompresses aByteBufusing the Snappy framing format.classZlibEncoderCompresses aByteBufusing the deflate algorithm.classZstdEncoderCompresses aByteBufusing the Zstandard algorithm. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.dns
Classes in io.netty.handler.codec.dns that implement ChannelOutboundHandler Modifier and Type Class Description classDatagramDnsQueryEncoderclassDatagramDnsResponseEncoderclassTcpDnsQueryEncoderclassTcpDnsResponseEncoder -
Uses of ChannelOutboundHandler in io.netty.handler.codec.haproxy
Classes in io.netty.handler.codec.haproxy that implement ChannelOutboundHandler Modifier and Type Class Description classHAProxyMessageEncoderEncodes an HAProxy proxy protocol message -
Uses of ChannelOutboundHandler in io.netty.handler.codec.http
Classes in io.netty.handler.codec.http that implement ChannelOutboundHandler Modifier and Type Class Description classHttpClientCodecA combination ofHttpRequestEncoderandHttpResponseDecoderwhich enables easier client side HTTP implementation.classHttpClientUpgradeHandlerClient-side handler for handling an HTTP upgrade handshake to another protocol.classHttpContentCompressorCompresses anHttpMessageand anHttpContentingzipordeflateencoding while respecting the"Accept-Encoding"header.classHttpContentEncoderEncodes the content of the outboundHttpResponseandHttpContent.classHttpObjectEncoder<H extends HttpMessage>classHttpRequestEncoderclassHttpResponseEncoderclassHttpServerCodecA combination ofHttpRequestDecoderandHttpResponseEncoderwhich enables easier server side HTTP implementation.classHttpServerKeepAliveHandlerHttpServerKeepAliveHandler helps close persistent connections when appropriate. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.http.cors
Classes in io.netty.handler.codec.http.cors that implement ChannelOutboundHandler Modifier and Type Class Description classCorsHandlerHandles Cross Origin Resource Sharing (CORS) requests. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.http.websocketx
Subinterfaces of ChannelOutboundHandler in io.netty.handler.codec.http.websocketx Modifier and Type Interface Description interfaceWebSocketFrameEncoderMarker interface which all WebSocketFrame encoders need to implement.Classes in io.netty.handler.codec.http.websocketx that implement ChannelOutboundHandler Modifier and Type Class Description classWebSocket00FrameEncoderEncodes aWebSocketFrameinto aByteBuf.classWebSocket07FrameEncoderEncodes a web socket frame into wire protocol version 7 format.classWebSocket08FrameEncoderEncodes a web socket frame into wire protocol version 8 format.classWebSocket13FrameEncoderEncodes a web socket frame into wire protocol version 13 format.classWebSocketClientProtocolHandlerThis handler does all the heavy lifting for you to run a websocket client.classWebSocketServerProtocolHandlerThis handler does all the heavy lifting for you to run a websocket server. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.http.websocketx.extensions
Classes in io.netty.handler.codec.http.websocketx.extensions that implement ChannelOutboundHandler Modifier and Type Class Description classWebSocketClientExtensionHandlerThis handler negotiates and initializes the WebSocket Extensions.classWebSocketExtensionEncoderConvenient class for io.netty.handler.codec.http.websocketx.extensions.WebSocketExtension encoder.classWebSocketServerExtensionHandlerThis handler negotiates and initializes the WebSocket Extensions. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.http.websocketx.extensions.compression
Classes in io.netty.handler.codec.http.websocketx.extensions.compression that implement ChannelOutboundHandler Modifier and Type Class Description classWebSocketClientCompressionHandlerExtends io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketClientExtensionHandler to handle the most common WebSocket Compression Extensions.classWebSocketServerCompressionHandlerExtends io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketServerExtensionHandler to handle the most common WebSocket Compression Extensions. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.http2
Classes in io.netty.handler.codec.http2 that implement ChannelOutboundHandler Modifier and Type Class Description classHttp2ChannelDuplexHandlerAChannelDuplexHandlerproviding additional functionality for HTTP/2.classHttp2ConnectionHandlerProvides the default implementation for processing inbound frame events and delegates to aHttp2FrameListenerclassHttp2FrameCodecAn HTTP/2 handler that maps HTTP/2 frames toHttp2Frameobjects and vice versa.classHttp2MultiplexCodecDeprecated.useHttp2FrameCodecBuildertogether withHttp2MultiplexHandler.classHttp2MultiplexHandlerAn HTTP/2 handler that creates child channels for each stream.classHttp2StreamFrameToHttpObjectCodecThis handler converts fromHttp2StreamFrametoHttpObject, and back.classHttpToHttp2ConnectionHandlerTranslates HTTP/1.x object writes into HTTP/2 frames. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.http3
Classes in io.netty.handler.codec.http3 that implement ChannelOutboundHandler Modifier and Type Class Description classHttp3FrameToHttpObjectCodecThis handler converts fromHttp3RequestStreamFrametoHttpObject, and back. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.marshalling
Classes in io.netty.handler.codec.marshalling that implement ChannelOutboundHandler Modifier and Type Class Description classCompatibleMarshallingEncoderMessageToByteEncoderimplementation which uses JBoss Marshalling to marshal an Object.classMarshallingEncoderMessageToByteEncoderimplementation which uses JBoss Marshalling to marshal an Object. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.memcache
Classes in io.netty.handler.codec.memcache that implement ChannelOutboundHandler Modifier and Type Class Description classAbstractMemcacheObjectEncoder<M extends MemcacheMessage>A general purposeAbstractMemcacheObjectEncoderthat encodesMemcacheMessages. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.memcache.binary
Classes in io.netty.handler.codec.memcache.binary that implement ChannelOutboundHandler Modifier and Type Class Description classAbstractBinaryMemcacheEncoder<M extends BinaryMemcacheMessage>AMessageToByteEncoderthat encodes binary memcache messages into bytes.classBinaryMemcacheClientCodecThe client codec that combines the proper encoder and decoder.classBinaryMemcacheRequestEncoderThe encoder part which takes care of encoding the request headers.classBinaryMemcacheResponseEncoderThe encoder which takes care of encoding the response headers.classBinaryMemcacheServerCodecThe full server codec that combines the correct encoder and decoder. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.mqtt
Classes in io.netty.handler.codec.mqtt that implement ChannelOutboundHandler Modifier and Type Class Description classMqttEncoder -
Uses of ChannelOutboundHandler in io.netty.handler.codec.protobuf
Classes in io.netty.handler.codec.protobuf that implement ChannelOutboundHandler Modifier and Type Class Description classProtobufEncoderclassProtobufEncoderNanoclassProtobufVarint32LengthFieldPrependerAn encoder that prepends the Google Protocol Buffers Base 128 Varints integer length field. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.redis
Classes in io.netty.handler.codec.redis that implement ChannelOutboundHandler Modifier and Type Class Description classRedisEncoderEncodesRedisMessageinto bytes following RESP (REdis Serialization Protocol). -
Uses of ChannelOutboundHandler in io.netty.handler.codec.rtsp
Classes in io.netty.handler.codec.rtsp that implement ChannelOutboundHandler Modifier and Type Class Description classRtspEncoderclassRtspObjectEncoder<H extends HttpMessage>Deprecated.UseRtspEncoderinstead.classRtspRequestEncoderDeprecated.UseRtspEncoderdirectly insteadclassRtspResponseEncoderDeprecated.UseRtspEncoderdirectly instead -
Uses of ChannelOutboundHandler in io.netty.handler.codec.sctp
Classes in io.netty.handler.codec.sctp that implement ChannelOutboundHandler Modifier and Type Class Description classSctpOutboundByteStreamHandlerA ChannelHandler which transformByteBuftoSctpMessageand send it through a specific stream with given protocol identifier. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.serialization
Classes in io.netty.handler.codec.serialization that implement ChannelOutboundHandler Modifier and Type Class Description classCompatibleObjectEncoderDeprecated.This class has been deprecated with no replacement, because serialization can be a security liabilityclassObjectEncoderDeprecated.This class has been deprecated with no replacement, because serialization can be a security liability -
Uses of ChannelOutboundHandler in io.netty.handler.codec.smtp
Classes in io.netty.handler.codec.smtp that implement ChannelOutboundHandler Modifier and Type Class Description classSmtpRequestEncoderEncoder for SMTP requests. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.socks
Classes in io.netty.handler.codec.socks that implement ChannelOutboundHandler Modifier and Type Class Description classSocksMessageEncoderEncodes anSocksMessageinto aByteBuf. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.socksx.v4
Classes in io.netty.handler.codec.socksx.v4 that implement ChannelOutboundHandler Modifier and Type Class Description classSocks4ClientEncoderEncodes aSocks4CommandRequestinto aByteBuf.classSocks4ServerEncoderEncodes aSocks4CommandResponseinto aByteBuf. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.socksx.v5
Classes in io.netty.handler.codec.socksx.v5 that implement ChannelOutboundHandler Modifier and Type Class Description classSocks5ClientEncoderEncodes a client-sideSocks5Messageinto aByteBuf.classSocks5ServerEncoderEncodes a server-sideSocks5Messageinto aByteBuf. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.spdy
Classes in io.netty.handler.codec.spdy that implement ChannelOutboundHandler Modifier and Type Class Description classSpdyFrameCodecAChannelHandlerthat encodes and decodes SPDY Frames.classSpdyHttpCodecA combination ofSpdyHttpDecoderandSpdyHttpEncoderclassSpdyHttpEncoderEncodesHttpRequests,HttpResponses, andHttpContents intoSpdySynStreamFrames andSpdySynReplyFrames.classSpdyHttpResponseStreamIdHandlerMessageToMessageCodecthat takes care of adding the rightSpdyHttpHeaders.Names.STREAM_IDto theHttpMessageif one is not present.classSpdySessionHandlerManages streams within a SPDY session. -
Uses of ChannelOutboundHandler in io.netty.handler.codec.stomp
Classes in io.netty.handler.codec.stomp that implement ChannelOutboundHandler Modifier and Type Class Description classStompSubframeEncoder -
Uses of ChannelOutboundHandler in io.netty.handler.codec.string
Classes in io.netty.handler.codec.string that implement ChannelOutboundHandler Modifier and Type Class Description classLineEncoderApply a line separator to the requestedStringand encode it into aByteBuf.classStringEncoderEncodes the requestedStringinto aByteBuf. -
Uses of ChannelOutboundHandler in io.netty.handler.flow
Classes in io.netty.handler.flow that implement ChannelOutboundHandler Modifier and Type Class Description classFlowControlHandlerTheFlowControlHandlerensures that only one message perread()is sent downstream. -
Uses of ChannelOutboundHandler in io.netty.handler.flush
Classes in io.netty.handler.flush that implement ChannelOutboundHandler Modifier and Type Class Description classFlushConsolidationHandlerChannelDuplexHandlerwhich consolidatesChannel.flush()/ChannelHandlerContext.flush()operations (which also includesChannel.writeAndFlush(Object)/Channel.writeAndFlush(Object, ChannelPromise)andChannelOutboundInvoker.writeAndFlush(Object)/ChannelOutboundInvoker.writeAndFlush(Object, ChannelPromise)). -
Uses of ChannelOutboundHandler in io.netty.handler.logging
Classes in io.netty.handler.logging that implement ChannelOutboundHandler Modifier and Type Class Description classLoggingHandlerAChannelHandlerthat logs all events using a logging framework. -
Uses of ChannelOutboundHandler in io.netty.handler.pcap
Classes in io.netty.handler.pcap that implement ChannelOutboundHandler Modifier and Type Class Description classPcapWriteHandlerPcapWriteHandlercapturesByteBuffromSocketChannel/ServerChannelorDatagramPacketand writes it into PcapOutputStream. -
Uses of ChannelOutboundHandler in io.netty.handler.proxy
Classes in io.netty.handler.proxy that implement ChannelOutboundHandler Modifier and Type Class Description classHttpProxyHandlerHandler that establishes a blind forwarding proxy tunnel using HTTP/1.1 CONNECT request.classProxyHandlerA common abstraction for protocols that establish blind forwarding proxy tunnels.classSocks4ProxyHandlerHandler that establishes a blind forwarding proxy tunnel using SOCKS4 protocol.classSocks5ProxyHandlerHandler that establishes a blind forwarding proxy tunnel using SOCKS Protocol Version 5. -
Uses of ChannelOutboundHandler in io.netty.handler.ssl
Classes in io.netty.handler.ssl that implement ChannelOutboundHandler Modifier and Type Class Description classAbstractSniHandler<T>Enables SNI (Server Name Indication) extension for server side SSL.classSniHandlerEnables SNI (Server Name Indication) extension for server side SSL.classSslClientHelloHandler<T>ByteToMessageDecoderwhich allows to be notified once a fullClientHellowas received.classSslHandler -
Uses of ChannelOutboundHandler in io.netty.handler.stream
Classes in io.netty.handler.stream that implement ChannelOutboundHandler Modifier and Type Class Description classChunkedWriteHandlerAChannelHandlerthat adds support for writing a large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError. -
Uses of ChannelOutboundHandler in io.netty.handler.timeout
Classes in io.netty.handler.timeout that implement ChannelOutboundHandler Modifier and Type Class Description classIdleStateHandlerTriggers anIdleStateEventwhen aChannelhas not performed read, write, or both operation for a while.classReadTimeoutHandlerRaises aReadTimeoutExceptionwhen no data was read within a certain period of time.classWriteTimeoutHandlerRaises aWriteTimeoutExceptionwhen a write operation cannot finish in a certain period of time. -
Uses of ChannelOutboundHandler in io.netty.handler.traffic
Classes in io.netty.handler.traffic that implement ChannelOutboundHandler Modifier and Type Class Description classAbstractTrafficShapingHandlerAbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler) or per session bandwidth (seeChannelTrafficShapingHandler), as traffic shaping.classChannelTrafficShapingHandlerThis implementation of theAbstractTrafficShapingHandleris for channel traffic shaping, that is to say a per channel limitation of the bandwidth.classGlobalChannelTrafficShapingHandlerThis implementation of theAbstractTrafficShapingHandleris 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.classGlobalTrafficShapingHandlerThis implementation of theAbstractTrafficShapingHandleris for global traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels.
-