Uses of Interface
org.jboss.netty.channel.ChannelDownstreamHandler
-
Packages that use ChannelDownstreamHandler Package Description org.jboss.netty.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.org.jboss.netty.example.factorial org.jboss.netty.handler.codec.base64 Encoder and decoder which transform a Base64-encodedString
orChannelBuffer
into a decodedChannelBuffer
and vice versa.org.jboss.netty.handler.codec.compression Encoder and decoder which compresses and decompressesChannelBuffer
s in a compression format such as zlib and gzip.org.jboss.netty.handler.codec.embedder A helper that wraps an encoder or a decoder so that they can be used without doing actual I/O in unit tests or higher level codecs.org.jboss.netty.handler.codec.frame 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.org.jboss.netty.handler.codec.http Encoder, decoder and their related message types for HTTP.org.jboss.netty.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.org.jboss.netty.handler.codec.marshalling Decoder and Encoder which uses JBoss Marshalling.org.jboss.netty.handler.codec.oneone Simplistic abstract classes which help implement encoder and decoder that transform an object into another object and vice versa.org.jboss.netty.handler.codec.protobuf Encoder and decoder which transform a Google Protocol BuffersMessage
into aChannelBuffer
and vice versa.org.jboss.netty.handler.codec.rtsp An RTSP extension based on the HTTP codec.org.jboss.netty.handler.codec.serialization Encoder, decoder and their compatibility stream implementations which transform aSerializable
object into a byte buffer and vice versa.org.jboss.netty.handler.codec.socks Encoder, decoder and their related message types for Socks.org.jboss.netty.handler.codec.spdy Encoder, decoder, session handler and their related message types for the SPDY protocol.org.jboss.netty.handler.codec.string Encoder and decoder which transform aString
into aChannelBuffer
and vice versa.org.jboss.netty.handler.execution Executor
-based implementation of various thread models that separate business logic from I/O threadsorg.jboss.netty.handler.logging Logs aChannelEvent
for debugging purpose using anInternalLogger
.org.jboss.netty.handler.queue The special-purpose handlers that store an event into an internal queue instead of propagating the event immediately.org.jboss.netty.handler.ssl SSL · TLS implementation based onSSLEngine
org.jboss.netty.handler.stream Writes very large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError
.org.jboss.netty.handler.timeout Adds support for read and write timeout and idle connection notification using aTimer
.org.jboss.netty.handler.traffic Implementation of a Traffic Shaping Handler and Dynamic Statistics.
-
-
Uses of ChannelDownstreamHandler in org.jboss.netty.channel
Classes in org.jboss.netty.channel that implement ChannelDownstreamHandler Modifier and Type Class Description class
SimpleChannelDownstreamHandler
AChannelDownstreamHandler
which provides an individual handler method for each event type.class
SimpleChannelHandler
AChannelHandler
which provides an individual handler method for each event type. -
Uses of ChannelDownstreamHandler in org.jboss.netty.example.factorial
Classes in org.jboss.netty.example.factorial that implement ChannelDownstreamHandler Modifier and Type Class Description class
NumberEncoder
Encodes aNumber
into the binary representation prepended with a magic number ('F' or 0x46) and a 32-bit length prefix. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.base64
Classes in org.jboss.netty.handler.codec.base64 that implement ChannelDownstreamHandler Modifier and Type Class Description class
Base64Encoder
Encodes aChannelBuffer
into a Base64-encodedChannelBuffer
. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.compression
Classes in org.jboss.netty.handler.codec.compression that implement ChannelDownstreamHandler Modifier and Type Class Description class
JdkZlibEncoder
Compresses aChannelBuffer
using the deflate algorithm.class
ZlibEncoder
Compresses aChannelBuffer
using the deflate algorithm. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.embedder
Constructors in org.jboss.netty.handler.codec.embedder with parameters of type ChannelDownstreamHandler Constructor Description EncoderEmbedder(ChannelBufferFactory bufferFactory, ChannelDownstreamHandler... handlers)
Creates a new embedder whose pipeline is composed of the specified handlers.EncoderEmbedder(ChannelDownstreamHandler... handlers)
Creates a new embedder whose pipeline is composed of the specified handlers. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.frame
Classes in org.jboss.netty.handler.codec.frame that implement ChannelDownstreamHandler Modifier and Type Class Description class
LengthFieldPrepender
An encoder that prepends the length of the message. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.http
Classes in org.jboss.netty.handler.codec.http that implement ChannelDownstreamHandler Modifier and Type Class Description class
HttpClientCodec
A combination ofHttpRequestEncoder
andHttpResponseDecoder
which enables easier client side HTTP implementation.private class
HttpClientCodec.Encoder
class
HttpContentCompressor
Compresses anHttpMessage
and anHttpChunk
ingzip
ordeflate
encoding while respecting the"Accept-Encoding"
header.class
HttpContentEncoder
Encodes the content of the outboundHttpResponse
andHttpChunk
.class
HttpMessageEncoder
class
HttpRequestEncoder
class
HttpResponseEncoder
class
HttpServerCodec
A combination ofHttpRequestDecoder
andHttpResponseEncoder
which enables easier server side HTTP implementation. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.http.websocketx
Classes in org.jboss.netty.handler.codec.http.websocketx that implement ChannelDownstreamHandler Modifier and Type Class Description class
WebSocket00FrameEncoder
Encodes aWebSocketFrame
into aChannelBuffer
.class
WebSocket07FrameEncoder
Encodes a web socket frame into wire protocol version 7 format.class
WebSocket08FrameEncoder
Encodes a web socket frame into wire protocol version 8 format.class
WebSocket13FrameEncoder
Encodes a web socket frame into wire protocol version 13 format. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.marshalling
Classes in org.jboss.netty.handler.codec.marshalling that implement ChannelDownstreamHandler Modifier and Type Class Description class
CompatibleMarshallingEncoder
OneToOneEncoder
implementation which uses JBoss Marshalling to marshal an Object.class
MarshallingEncoder
OneToOneEncoder
implementation which uses JBoss Marshalling to marshal an Object. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.oneone
Classes in org.jboss.netty.handler.codec.oneone that implement ChannelDownstreamHandler Modifier and Type Class Description class
OneToOneEncoder
Transforms a write request into another write request.class
OneToOneStrictEncoder
SpecialOneToOneEncoder
which enforce strict ordering of encoding and writing. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.protobuf
Classes in org.jboss.netty.handler.codec.protobuf that implement ChannelDownstreamHandler Modifier and Type Class Description class
ProtobufEncoder
class
ProtobufVarint32LengthFieldPrepender
An encoder that prepends the the Google Protocol Buffers Base 128 Varints integer length field. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.rtsp
Classes in org.jboss.netty.handler.codec.rtsp that implement ChannelDownstreamHandler Modifier and Type Class Description class
RtspMessageEncoder
Encodes an RTSP message represented inHttpMessage
into aChannelBuffer
.class
RtspRequestEncoder
Encodes an RTSP request represented inHttpRequest
into aChannelBuffer
.class
RtspResponseEncoder
Encodes an RTSP response represented inHttpResponse
into aChannelBuffer
. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.serialization
Classes in org.jboss.netty.handler.codec.serialization that implement ChannelDownstreamHandler Modifier and Type Class Description class
CompatibleObjectEncoder
An encoder which serializes a Java object into aChannelBuffer
(interoperability version).class
ObjectEncoder
An encoder which serializes a Java object into aChannelBuffer
. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.socks
Classes in org.jboss.netty.handler.codec.socks that implement ChannelDownstreamHandler Modifier and Type Class Description class
SocksMessageEncoder
Encodes anSocksMessage
into aChannelBuffer
. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.spdy
Classes in org.jboss.netty.handler.codec.spdy that implement ChannelDownstreamHandler Modifier and Type Class Description class
SpdyFrameCodec
AChannelHandler
that encodes and decodes SPDY Frames.class
SpdyHttpCodec
A combination ofSpdyHttpDecoder
andSpdyHttpEncoder
class
SpdyHttpEncoder
EncodesHttpRequest
s,HttpResponse
s, andHttpChunk
s intoSpdySynStreamFrame
s andSpdySynReplyFrame
s.class
SpdyHttpResponseStreamIdHandler
SimpleChannelHandler
that takes care of adding the right streamId to theHttpResponse
if one is not present.class
SpdySessionHandler
Manages streams within a SPDY session. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.codec.string
Classes in org.jboss.netty.handler.codec.string that implement ChannelDownstreamHandler Modifier and Type Class Description class
StringEncoder
Encodes the requestedString
into aChannelBuffer
. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.execution
Classes in org.jboss.netty.handler.execution that implement ChannelDownstreamHandler Modifier and Type Class Description class
ExecutionHandler
Forwards an upstreamChannelEvent
to anExecutor
. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.logging
Classes in org.jboss.netty.handler.logging that implement ChannelDownstreamHandler Modifier and Type Class Description class
LoggingHandler
AChannelHandler
that logs all events viaInternalLogger
. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.queue
Classes in org.jboss.netty.handler.queue that implement ChannelDownstreamHandler Modifier and Type Class Description class
BufferedWriteHandler
Emulates buffered write operation. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.ssl
Classes in org.jboss.netty.handler.ssl that implement ChannelDownstreamHandler Modifier and Type Class Description class
SslHandler
-
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.stream
Classes in org.jboss.netty.handler.stream that implement ChannelDownstreamHandler 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 ChannelDownstreamHandler in org.jboss.netty.handler.timeout
Classes in org.jboss.netty.handler.timeout that implement ChannelDownstreamHandler Modifier and Type Class Description class
IdleStateAwareChannelHandler
An extendedSimpleChannelHandler
that adds the handler method for anIdleStateEvent
.class
WriteTimeoutHandler
Raises aWriteTimeoutException
when no data was written within a certain period of time. -
Uses of ChannelDownstreamHandler in org.jboss.netty.handler.traffic
Classes in org.jboss.netty.handler.traffic that implement ChannelDownstreamHandler 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.
-