程序包 | 说明 |
---|---|
io.netty.bootstrap |
The helper classes with fluent API which enable an easy implementation of
typical client side and server side channel initialization.
|
io.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
io.netty.channel.embedded |
A virtual
Channel that helps wrapping a series of handlers to
unit test the handlers or use them in non-I/O context. |
io.netty.example.discard | |
io.netty.example.echo | |
io.netty.example.factorial | |
io.netty.example.file | |
io.netty.example.haproxy | |
io.netty.example.http.cors | |
io.netty.example.http.file | |
io.netty.example.http.helloworld | |
io.netty.example.http.snoop | |
io.netty.example.http.upload | |
io.netty.example.http.websocketx.benchmarkserver |
This package contains a benchmark application for websockets.
|
io.netty.example.http.websocketx.client | |
io.netty.example.http.websocketx.server |
This package contains an example web socket web server.
|
io.netty.example.http2.file | |
io.netty.example.http2.helloworld.client | |
io.netty.example.http2.helloworld.frame.client | |
io.netty.example.http2.helloworld.server | |
io.netty.example.http2.tiles | |
io.netty.example.localecho | |
io.netty.example.memcache.binary | |
io.netty.example.mqtt.heartBeat | |
io.netty.example.objectecho | |
io.netty.example.portunification | |
io.netty.example.proxy | |
io.netty.example.qotm | |
io.netty.example.redis | |
io.netty.example.rxtx | |
io.netty.example.sctp | |
io.netty.example.securechat | |
io.netty.example.socksproxy | |
io.netty.example.spdy.client |
This package contains an example SPDY HTTP client.
|
io.netty.example.spdy.server |
This package contains an example SPDY HTTP web server.
|
io.netty.example.stomp | |
io.netty.example.stomp.websocket | |
io.netty.example.telnet | |
io.netty.example.udt.echo.bytes |
Examples show how to use UDT Byte Streams.
|
io.netty.example.udt.echo.message |
Examples show how to use UDT Message Flows.
|
io.netty.example.udt.echo.rendezvous |
Examples show how to use UDT Message Rendezvous.
|
io.netty.example.udt.echo.rendezvousBytes |
Examples show how to use UDT Byte Streams Rendezvous.
|
io.netty.example.uptime | |
io.netty.example.worldclock | |
io.netty.handler.address |
Package to dynamically replace local / remote
SocketAddress . |
io.netty.handler.codec |
Benchmarks for
io.netty.handler.codec . |
io.netty.handler.codec.base64 | |
io.netty.handler.codec.bytes |
Encoder and decoder which transform an array of bytes into a
ByteBuf and vice versa. |
io.netty.handler.codec.compression | |
io.netty.handler.codec.dns |
DNS codec.
|
io.netty.handler.codec.haproxy |
Decodes an HAProxy proxy protocol header
|
io.netty.handler.codec.http |
Benchmarks for
io.netty.handler.codec.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 |
Benchmarks for
io.netty.handler.codec.http2 . |
io.netty.handler.codec.json |
JSON specific codecs.
|
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 |
Benchmarks for
io.netty.handler.codec.mqtt . |
io.netty.handler.codec.protobuf |
Encoder and decoder which transform a
Google Protocol Buffers
com.google.protobuf.Message and com.google.protobuf.nano.MessageNano into a
ByteBuf and 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 a
Serializable object 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 |
Encoder, decoder and their related message types for SOCKS protocol.
|
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 codec
|
io.netty.handler.codec.string |
Encoder and decoder which transform a
String into a
ByteBuf and vice versa. |
io.netty.handler.codec.xml |
XML codec provides asynchronous and non-blocking XML parser based on the
Aalto XML parser.
|
io.netty.handler.flow |
Package to control the flow of messages.
|
io.netty.handler.flush |
Package to control flush behavior.
|
io.netty.handler.ipfilter |
Package to filter IP addresses (allow/deny).
|
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 tunneling
|
io.netty.handler.ssl |
SSL ·
TLS implementation based on
SSLEngine |
io.netty.handler.ssl.ocsp |
Certificate validation using OCSP
|
io.netty.handler.stream |
Writes very large data stream asynchronously neither spending a lot of
memory nor getting
OutOfMemoryError . |
io.netty.handler.timeout |
Adds support for read and write timeout and idle connection notification
using a
Timer . |
io.netty.handler.traffic |
Implementation of a Traffic Shaping Handler and Dynamic Statistics.
|
io.netty.testsuite.autobahn |
This package is intended for use with testing against the Python
AutoBahn test suite.
|
io.netty.testsuite.svm |
A hello world server that should be compiled to native.
|
限定符和类型 | 方法和说明 |
---|---|
ChannelHandler |
ServerBootstrapConfig.childHandler()
Returns the configured
ChannelHandler be used for the child channels or null
if non is configured yet. |
ChannelHandler |
AbstractBootstrapConfig.handler()
Returns the configured
ChannelHandler or null if non is configured yet. |
限定符和类型 | 方法和说明 |
---|---|
ServerBootstrap |
ServerBootstrap.childHandler(ChannelHandler childHandler)
Set the
ChannelHandler which is used to serve the request for the Channel 's. |
B |
AbstractBootstrap.handler(ChannelHandler handler)
the
ChannelHandler to use for serving the requests. |
限定符和类型 | 接口和说明 |
---|---|
interface |
ChannelInboundHandler
ChannelHandler which adds callbacks for state changes. |
interface |
ChannelOutboundHandler
ChannelHandler which will get notified for IO-outbound-operations. |
限定符和类型 | 类和说明 |
---|---|
class |
ChannelDuplexHandler
ChannelHandler implementation which represents a combination out of a ChannelInboundHandler and
the ChannelOutboundHandler . |
class |
ChannelHandlerAdapter
Skeleton implementation of a
ChannelHandler . |
class |
ChannelInboundHandlerAdapter
Abstract base class for
ChannelInboundHandler implementations which provide
implementations of all of their methods. |
class |
ChannelInitializer<C extends Channel>
A special
ChannelInboundHandler which offers an easy way to initialize a Channel once it was
registered to its EventLoop . |
class |
ChannelOutboundHandlerAdapter
Skeleton implementation of a
ChannelOutboundHandler . |
class |
CombinedChannelDuplexHandler<I extends ChannelInboundHandler,O extends ChannelOutboundHandler>
|
class |
SimpleChannelInboundHandler<I>
ChannelInboundHandlerAdapter which allows to explicit only handle a specific type of messages. |
class |
SimpleUserEventChannelHandler<I>
ChannelInboundHandlerAdapter which allows to conveniently only handle a specific type of user events. |
限定符和类型 | 方法和说明 |
---|---|
<T extends ChannelHandler> |
DefaultChannelPipeline.get(java.lang.Class<T> handlerType) |
<T extends ChannelHandler> |
ChannelPipeline.get(java.lang.Class<T> handlerType)
Returns the
ChannelHandler of the specified type in this
pipeline. |
<T extends ChannelHandler> |
DefaultChannelPipeline.remove(java.lang.Class<T> handlerType) |
<T extends ChannelHandler> |
ChannelPipeline.remove(java.lang.Class<T> handlerType)
Removes the
ChannelHandler of the specified type from this pipeline. |
<T extends ChannelHandler> |
DefaultChannelPipeline.removeIfExists(ChannelHandler handler) |
<T extends ChannelHandler> |
DefaultChannelPipeline.removeIfExists(java.lang.Class<T> handlerType) |
<T extends ChannelHandler> |
DefaultChannelPipeline.removeIfExists(java.lang.String name) |
<T extends ChannelHandler> |
DefaultChannelPipeline.replace(java.lang.Class<T> oldHandlerType,
java.lang.String newName,
ChannelHandler newHandler) |
<T extends ChannelHandler> |
ChannelPipeline.replace(java.lang.Class<T> oldHandlerType,
java.lang.String newName,
ChannelHandler newHandler)
Replaces the
ChannelHandler of the specified type with a new handler in this pipeline. |
限定符和类型 | 方法和说明 |
---|---|
ChannelHandler |
DefaultChannelPipeline.first() |
ChannelHandler |
ChannelPipeline.first()
Returns the first
ChannelHandler in this pipeline. |
ChannelHandler |
DefaultChannelPipeline.get(java.lang.String name) |
ChannelHandler |
ChannelPipeline.get(java.lang.String name)
Returns the
ChannelHandler with the specified name in this
pipeline. |
ChannelHandler |
ChannelHandlerContext.handler()
The
ChannelHandler that is bound this ChannelHandlerContext . |
ChannelHandler |
DefaultChannelPipeline.last() |
ChannelHandler |
ChannelPipeline.last()
Returns the last
ChannelHandler in this pipeline. |
ChannelHandler |
DefaultChannelPipeline.remove(java.lang.String name) |
ChannelHandler |
ChannelPipeline.remove(java.lang.String name)
Removes the
ChannelHandler with the specified name from this pipeline. |
ChannelHandler |
DefaultChannelPipeline.removeFirst() |
ChannelHandler |
ChannelPipeline.removeFirst()
Removes the first
ChannelHandler in this pipeline. |
ChannelHandler |
DefaultChannelPipeline.removeLast() |
ChannelHandler |
ChannelPipeline.removeLast()
Removes the last
ChannelHandler in this pipeline. |
ChannelHandler |
DefaultChannelPipeline.replace(java.lang.String oldName,
java.lang.String newName,
ChannelHandler newHandler) |
ChannelHandler |
ChannelPipeline.replace(java.lang.String oldName,
java.lang.String newName,
ChannelHandler newHandler)
Replaces the
ChannelHandler of the specified name with a new handler in this pipeline. |
限定符和类型 | 方法和说明 |
---|---|
java.util.Iterator<java.util.Map.Entry<java.lang.String,ChannelHandler>> |
DefaultChannelPipeline.iterator() |
java.util.Map<java.lang.String,ChannelHandler> |
DefaultChannelPipeline.toMap() |
java.util.Map<java.lang.String,ChannelHandler> |
ChannelPipeline.toMap()
Converts this pipeline into an ordered
Map whose keys are
handler names and whose values are handlers. |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
DefaultChannelPipeline.addAfter(EventExecutorGroup group,
java.lang.String baseName,
java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addAfter(EventExecutorGroup group,
java.lang.String baseName,
java.lang.String name,
ChannelHandler handler)
Inserts a
ChannelHandler after an existing handler of this
pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addAfter(java.lang.String baseName,
java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addAfter(java.lang.String baseName,
java.lang.String name,
ChannelHandler handler)
Inserts a
ChannelHandler after an existing handler of this
pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addBefore(EventExecutorGroup group,
java.lang.String baseName,
java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addBefore(EventExecutorGroup group,
java.lang.String baseName,
java.lang.String name,
ChannelHandler handler)
Inserts a
ChannelHandler before an existing handler of this
pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addBefore(java.lang.String baseName,
java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addBefore(java.lang.String baseName,
java.lang.String name,
ChannelHandler handler)
Inserts a
ChannelHandler before an existing handler of this
pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addFirst(ChannelHandler... handlers) |
ChannelPipeline |
ChannelPipeline.addFirst(ChannelHandler... handlers)
Inserts
ChannelHandler s at the first position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addFirst(ChannelHandler handler) |
ChannelPipeline |
DefaultChannelPipeline.addFirst(EventExecutorGroup executor,
ChannelHandler... handlers) |
ChannelPipeline |
ChannelPipeline.addFirst(EventExecutorGroup group,
ChannelHandler... handlers)
Inserts
ChannelHandler s at the first position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addFirst(EventExecutorGroup group,
java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addFirst(EventExecutorGroup group,
java.lang.String name,
ChannelHandler handler)
Inserts a
ChannelHandler at the first position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addFirst(java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addFirst(java.lang.String name,
ChannelHandler handler)
Inserts a
ChannelHandler at the first position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addLast(ChannelHandler... handlers) |
ChannelPipeline |
ChannelPipeline.addLast(ChannelHandler... handlers)
Inserts
ChannelHandler s at the last position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addLast(ChannelHandler handler) |
ChannelPipeline |
DefaultChannelPipeline.addLast(EventExecutorGroup executor,
ChannelHandler... handlers) |
ChannelPipeline |
ChannelPipeline.addLast(EventExecutorGroup group,
ChannelHandler... handlers)
Inserts
ChannelHandler s at the last position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addLast(EventExecutorGroup group,
java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addLast(EventExecutorGroup group,
java.lang.String name,
ChannelHandler handler)
Appends a
ChannelHandler at the last position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addLast(java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addLast(java.lang.String name,
ChannelHandler handler)
Appends a
ChannelHandler at the last position of this pipeline. |
ChannelHandlerContext |
DefaultChannelPipeline.context(ChannelHandler handler) |
ChannelHandlerContext |
ChannelPipeline.context(ChannelHandler handler)
Returns the context object of the specified
ChannelHandler in
this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.remove(ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.remove(ChannelHandler handler)
Removes the specified
ChannelHandler from this pipeline. |
<T extends ChannelHandler> |
DefaultChannelPipeline.removeIfExists(ChannelHandler handler) |
ChannelPipeline |
DefaultChannelPipeline.replace(ChannelHandler oldHandler,
java.lang.String newName,
ChannelHandler newHandler) |
ChannelPipeline |
ChannelPipeline.replace(ChannelHandler oldHandler,
java.lang.String newName,
ChannelHandler newHandler)
Replaces the specified
ChannelHandler with a new handler in this pipeline. |
<T extends ChannelHandler> |
DefaultChannelPipeline.replace(java.lang.Class<T> oldHandlerType,
java.lang.String newName,
ChannelHandler newHandler) |
<T extends ChannelHandler> |
ChannelPipeline.replace(java.lang.Class<T> oldHandlerType,
java.lang.String newName,
ChannelHandler newHandler)
Replaces the
ChannelHandler of the specified type with a new handler in this pipeline. |
ChannelHandler |
DefaultChannelPipeline.replace(java.lang.String oldName,
java.lang.String newName,
ChannelHandler newHandler) |
ChannelHandler |
ChannelPipeline.replace(java.lang.String oldName,
java.lang.String newName,
ChannelHandler newHandler)
Replaces the
ChannelHandler of the specified name with a new handler in this pipeline. |
限定符和类型 | 方法和说明 |
---|---|
ChannelHandlerContext |
DefaultChannelPipeline.context(java.lang.Class<? extends ChannelHandler> handlerType) |
ChannelHandlerContext |
ChannelPipeline.context(java.lang.Class<? extends ChannelHandler> handlerType)
Returns the context object of the
ChannelHandler of the
specified type in this pipeline. |
构造器和说明 |
---|
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(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.
|
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,
ChannelConfig config,
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.
|
限定符和类型 | 类和说明 |
---|---|
class |
DiscardClientHandler
Handles a client-side channel.
|
class |
DiscardServerHandler
Handles a server-side channel.
|
限定符和类型 | 类和说明 |
---|---|
class |
EchoClientHandler
Handler implementation for the echo client.
|
class |
EchoServerHandler
Handler implementation for the echo server.
|
限定符和类型 | 类和说明 |
---|---|
class |
BigIntegerDecoder
Decodes the binary representation of a
BigInteger prepended
with a magic number ('F' or 0x46) and a 32-bit integer length prefix into a
BigInteger instance. |
class |
FactorialClientHandler
Handler for a client-side channel.
|
class |
FactorialClientInitializer
Creates a newly configured
ChannelPipeline for a client-side channel. |
class |
FactorialServerHandler
Handler for a server-side channel.
|
class |
FactorialServerInitializer
Creates a newly configured
ChannelPipeline for a server-side channel. |
class |
NumberEncoder
Encodes a
Number into the binary representation prepended with
a magic number ('F' or 0x46) and a 32-bit length prefix. |
限定符和类型 | 类和说明 |
---|---|
class |
FileServerHandler |
限定符和类型 | 类和说明 |
---|---|
class |
HAProxyHandler |
限定符和类型 | 类和说明 |
---|---|
class |
HttpCorsServerInitializer
Please refer to the
CorsConfig javadocs for information about all the
configuration options available. |
class |
OkResponseHandler
A simple handler which will simple return a successful Http
response for any request.
|
限定符和类型 | 类和说明 |
---|---|
class |
HttpStaticFileServerHandler
A simple handler that serves incoming HTTP requests to send their respective
HTTP responses.
|
class |
HttpStaticFileServerInitializer |
限定符和类型 | 类和说明 |
---|---|
class |
HttpHelloWorldServerHandler |
class |
HttpHelloWorldServerInitializer |
限定符和类型 | 类和说明 |
---|---|
class |
HttpSnoopClientHandler |
class |
HttpSnoopClientInitializer |
class |
HttpSnoopServerHandler |
class |
HttpSnoopServerInitializer |
限定符和类型 | 类和说明 |
---|---|
class |
HttpUploadClientHandler
Handler that just dumps the contents of the response from the server
|
class |
HttpUploadClientInitializer |
class |
HttpUploadServerHandler |
class |
HttpUploadServerInitializer |
限定符和类型 | 类和说明 |
---|---|
class |
WebSocketServerHandler
Handles handshakes and messages
|
限定符和类型 | 类和说明 |
---|---|
class |
WebSocketClientHandler |
限定符和类型 | 类和说明 |
---|---|
class |
WebSocketFrameHandler
Echoes uppercase content of text frames.
|
class |
WebSocketIndexPageHandler
Outputs index page content.
|
class |
WebSocketServerInitializer |
限定符和类型 | 类和说明 |
---|---|
class |
Http2StaticFileServerHandler
A simple handler that serves incoming HTTP requests to send their respective
HTTP responses.
|
class |
Http2StaticFileServerInitializer |
限定符和类型 | 类和说明 |
---|---|
class |
Http2ClientInitializer
Configures the client pipeline to support HTTP/2 frames.
|
class |
Http2SettingsHandler
Reads the first
Http2Settings object and notifies a ChannelPromise |
class |
HttpResponseHandler
Process
FullHttpResponse translated from HTTP/2 frames |
限定符和类型 | 类和说明 |
---|---|
class |
Http2ClientFrameInitializer
Configures client pipeline to support HTTP/2 frames via
Http2FrameCodec and Http2MultiplexHandler . |
class |
Http2ClientStreamFrameResponseHandler
Handles HTTP/2 stream frame responses.
|
限定符和类型 | 类和说明 |
---|---|
class |
HelloWorldHttp1Handler
HTTP handler that responds with a "Hello World"
|
class |
HelloWorldHttp2Handler
A simple handler that responds with the message "Hello World!".
|
class |
Http2ServerInitializer
Sets up the Netty pipeline for the example server.
|
限定符和类型 | 类和说明 |
---|---|
class |
FallbackRequestHandler
Handles the exceptional case where HTTP 1.x was negotiated under TLS.
|
class |
Http1RequestHandler
Handles the requests for the tiled image using HTTP 1.x as a protocol.
|
class |
Http2OrHttpHandler
Used during protocol negotiation, the main function of this handler is to
return the HTTP/1.1 or HTTP/2 handler once the protocol has been negotiated.
|
class |
Http2RequestHandler
Handles all the requests for data.
|
限定符和类型 | 类和说明 |
---|---|
class |
LocalEchoClientHandler |
class |
LocalEchoServerHandler |
限定符和类型 | 类和说明 |
---|---|
class |
MemcacheClientHandler |
限定符和类型 | 类和说明 |
---|---|
class |
MqttHeartBeatBrokerHandler |
class |
MqttHeartBeatClientHandler |
限定符和类型 | 类和说明 |
---|---|
class |
ObjectEchoClientHandler
Handler implementation for the object echo client.
|
class |
ObjectEchoServerHandler
Handles both client-side and server-side handler depending on which
constructor was called.
|
限定符和类型 | 类和说明 |
---|---|
class |
PortUnificationServerHandler
Manipulates the current pipeline dynamically to switch protocols or enable
SSL or GZIP.
|
限定符和类型 | 类和说明 |
---|---|
class |
HexDumpProxyBackendHandler |
class |
HexDumpProxyFrontendHandler |
class |
HexDumpProxyInitializer |
限定符和类型 | 类和说明 |
---|---|
class |
QuoteOfTheMomentClientHandler |
class |
QuoteOfTheMomentServerHandler |
限定符和类型 | 类和说明 |
---|---|
class |
RedisClientHandler
An example Redis client handler.
|
限定符和类型 | 类和说明 |
---|---|
class |
RxtxClientHandler |
限定符和类型 | 类和说明 |
---|---|
class |
SctpEchoClientHandler
Handler implementation for the SCTP echo client.
|
class |
SctpEchoServerHandler
Handler implementation for the SCTP echo server.
|
限定符和类型 | 类和说明 |
---|---|
class |
SecureChatClientHandler
Handles a client-side channel.
|
class |
SecureChatClientInitializer
Creates a newly configured
ChannelPipeline for a new channel. |
class |
SecureChatServerHandler
Handles a server-side channel.
|
class |
SecureChatServerInitializer
Creates a newly configured
ChannelPipeline for a new channel. |
限定符和类型 | 类和说明 |
---|---|
class |
DirectClientHandler |
class |
RelayHandler |
class |
SocksServerConnectHandler |
class |
SocksServerHandler |
class |
SocksServerInitializer |
限定符和类型 | 类和说明 |
---|---|
class |
HttpResponseClientHandler
This is a modified version of
HttpSnoopClientHandler that uses a BlockingQueue to wait until an
HTTPResponse is received. |
class |
SpdyClientInitializer |
class |
SpdyClientStreamIdHandler
Adds a unique client stream ID to the SPDY header.
|
class |
SpdyFrameLogger
Logs SPDY frames for debugging purposes.
|
限定符和类型 | 类和说明 |
---|---|
class |
SpdyOrHttpHandler
Negotiates with the browser if SPDY or HTTP is going to be used.
|
class |
SpdyServerHandler
HTTP handler that responds with a "Hello World"
|
class |
SpdyServerInitializer
Sets up the Netty pipeline
|
限定符和类型 | 类和说明 |
---|---|
class |
StompClientHandler
STOMP client inbound handler implementation, which just passes received messages to listener
|
限定符和类型 | 类和说明 |
---|---|
class |
StompChatHandler |
class |
StompWebSocketChatServerInitializer |
class |
StompWebSocketClientPageHandler |
class |
StompWebSocketFrameEncoder |
class |
StompWebSocketProtocolCodec |
限定符和类型 | 类和说明 |
---|---|
class |
TelnetClientHandler
Handles a client-side channel.
|
class |
TelnetClientInitializer
Creates a newly configured
ChannelPipeline for a new channel. |
class |
TelnetServerHandler
Handles a server-side channel.
|
class |
TelnetServerInitializer
Creates a newly configured
ChannelPipeline for a new channel. |
限定符和类型 | 类和说明 |
---|---|
class |
ByteEchoClientHandler
Handler implementation for the echo client.
|
class |
ByteEchoServerHandler
Handler implementation for the echo server.
|
限定符和类型 | 类和说明 |
---|---|
class |
MsgEchoClientHandler
Handler implementation for the echo client.
|
class |
MsgEchoServerHandler
Handler implementation for the echo server.
|
限定符和类型 | 类和说明 |
---|---|
class |
MsgEchoPeerHandler
Handler implementation for the echo peer.
|
限定符和类型 | 类和说明 |
---|---|
class |
ByteEchoPeerHandler
Handler implementation for the echo client.
|
限定符和类型 | 类和说明 |
---|---|
class |
UptimeClientHandler
Keep reconnecting to the server while printing out the current uptime and
connection attempt getStatus.
|
class |
UptimeServerHandler |
限定符和类型 | 类和说明 |
---|---|
class |
WorldClockClientHandler |
class |
WorldClockClientInitializer |
class |
WorldClockServerHandler |
class |
WorldClockServerInitializer |
限定符和类型 | 类和说明 |
---|---|
class |
DynamicAddressConnectHandler
ChannelOutboundHandler implementation which allows to dynamically replace the used
remoteAddress and / or localAddress when making a connection attempt. |
class |
ResolveAddressHandler
ChannelOutboundHandlerAdapter which will resolve the SocketAddress that is passed to
ResolveAddressHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise) if it is not already resolved
and the AddressResolver supports the type of SocketAddress . |
限定符和类型 | 类和说明 |
---|---|
class |
ByteToMessageCodec<I>
A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.
|
class |
ByteToMessageDecoder
ChannelInboundHandlerAdapter which decodes bytes in a stream-like fashion from one ByteBuf to an
other Message type. |
class |
DatagramPacketDecoder
A decoder that decodes the content of the received
DatagramPacket using
the specified ByteBuf decoder. |
class |
DatagramPacketEncoder<M>
An encoder that encodes the content in
AddressedEnvelope to DatagramPacket using
the specified message encoder. |
class |
DelimiterBasedFrameDecoder
A decoder that splits the received
ByteBuf s by one or more
delimiters. |
class |
FixedLengthFrameDecoder
A decoder that splits the received
ByteBuf s by the fixed number
of bytes. |
class |
LengthFieldBasedFrameDecoder
A decoder that splits the received
ByteBuf 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 received
ByteBuf s on line endings. |
class |
MessageAggregator<I,S,C extends ByteBufHolder,O extends ByteBufHolder>
An abstract
ChannelHandler that aggregates a series of message objects into a single aggregated message. |
class |
MessageToByteEncoder<I>
ChannelOutboundHandlerAdapter which encodes message in a stream-like fashion from one message to an
ByteBuf . |
class |
MessageToMessageCodec<INBOUND_IN,OUTBOUND_IN>
A Codec for on-the-fly encoding/decoding of message.
|
class |
MessageToMessageDecoder<I>
ChannelInboundHandlerAdapter which decodes from one message to an other message. |
class |
MessageToMessageEncoder<I>
ChannelOutboundHandlerAdapter which encodes from one message to an other message
For example here is an implementation which decodes an Integer to an String . |
class |
ReplayingDecoder<S>
A specialized variation of
ByteToMessageDecoder which enables implementation
of a non-blocking decoder in the blocking I/O paradigm. |
限定符和类型 | 类和说明 |
---|---|
class |
Base64Decoder
|
class |
Base64Encoder
|
限定符和类型 | 类和说明 |
---|---|
class |
ByteArrayDecoder
Decodes a received
ByteBuf into an array of bytes. |
class |
ByteArrayEncoder
Encodes the requested array of bytes into a
ByteBuf . |
限定符和类型 | 类和说明 |
---|---|
class |
BrotliDecoder
Decompresses a
ByteBuf encoded with the brotli format. |
class |
BrotliEncoder
Compress a
ByteBuf with the Brotli compression. |
class |
Bzip2Decoder
Uncompresses a
ByteBuf encoded with the Bzip2 format. |
class |
Bzip2Encoder
Compresses a
ByteBuf using the Bzip2 algorithm. |
class |
FastLzFrameDecoder
Uncompresses a
ByteBuf encoded by FastLzFrameEncoder using the FastLZ algorithm. |
class |
FastLzFrameEncoder
Compresses a
ByteBuf using the FastLZ algorithm. |
class |
JdkZlibDecoder
Decompress a
ByteBuf using the inflate algorithm. |
class |
JdkZlibEncoder
Compresses a
ByteBuf using the deflate algorithm. |
class |
JZlibDecoder |
class |
JZlibEncoder
Compresses a
ByteBuf using the deflate algorithm. |
class |
Lz4FrameDecoder
Uncompresses a
ByteBuf encoded with the LZ4 format. |
class |
Lz4FrameEncoder
Compresses a
ByteBuf using the LZ4 format. |
class |
LzfDecoder
Uncompresses a
ByteBuf encoded with the LZF format. |
class |
LzfEncoder
Compresses a
ByteBuf using the LZF format. |
class |
LzmaFrameEncoder
Compresses a
ByteBuf using the LZMA algorithm. |
class |
SnappyFramedDecoder
已过时。
Use
SnappyFrameDecoder instead. |
class |
SnappyFrameDecoder
Uncompresses a
ByteBuf encoded with the Snappy framing format. |
class |
SnappyFramedEncoder
已过时。
Use
SnappyFrameEncoder instead. |
class |
SnappyFrameEncoder
Compresses a
ByteBuf using the Snappy framing format. |
class |
ZlibDecoder
Decompresses a
ByteBuf using the deflate algorithm. |
class |
ZlibEncoder
Compresses a
ByteBuf using the deflate algorithm. |
class |
ZstdDecoder
Decompresses a compressed block
ByteBuf using the Zstandard algorithm. |
class |
ZstdEncoder
Compresses a
ByteBuf using the Zstandard algorithm. |
限定符和类型 | 类和说明 |
---|---|
class |
DatagramDnsQueryDecoder
Decodes a
DatagramPacket into a DatagramDnsQuery . |
class |
DatagramDnsQueryEncoder
|
class |
DatagramDnsResponseDecoder
Decodes a
DatagramPacket into a DatagramDnsResponse . |
class |
DatagramDnsResponseEncoder
|
class |
TcpDnsQueryDecoder |
class |
TcpDnsQueryEncoder |
class |
TcpDnsResponseDecoder |
class |
TcpDnsResponseEncoder |
限定符和类型 | 类和说明 |
---|---|
class |
HAProxyMessageDecoder
Decodes an HAProxy proxy protocol header
|
class |
HAProxyMessageEncoder
Encodes an HAProxy proxy protocol message
|
限定符和类型 | 类和说明 |
---|---|
class |
HttpClientCodec
A combination of
HttpRequestEncoder and HttpResponseDecoder
which enables easier client side HTTP implementation. |
class |
HttpClientUpgradeHandler
Client-side handler for handling an HTTP upgrade handshake to another protocol.
|
class |
HttpContentCompressor
Compresses an
HttpMessage and an HttpContent in gzip or
deflate encoding while respecting the "Accept-Encoding" header. |
class |
HttpContentDecoder
Decodes the content of the received
HttpRequest and HttpContent . |
class |
HttpContentDecompressor
|
class |
HttpContentEncoder
Encodes the content of the outbound
HttpResponse and HttpContent . |
class |
HttpObjectAggregator
A
ChannelHandler that aggregates an HttpMessage
and its following HttpContent s into a single FullHttpRequest
or FullHttpResponse (depending on if it used to handle requests or responses)
with no following HttpContent s. |
class |
HttpObjectDecoder
|
class |
HttpObjectEncoder<H extends HttpMessage>
|
class |
HttpRequestDecoder
|
class |
HttpRequestEncoder
|
class |
HttpResponseDecoder
|
class |
HttpResponseEncoder
|
class |
HttpServerCodec
A combination of
HttpRequestDecoder and HttpResponseEncoder
which enables easier server side HTTP implementation. |
class |
HttpServerExpectContinueHandler
|
class |
HttpServerKeepAliveHandler
HttpServerKeepAliveHandler helps close persistent connections when appropriate.
|
class |
HttpServerUpgradeHandler
A server-side handler that receives HTTP requests and optionally performs a protocol switch if
the requested protocol is supported.
|
限定符和类型 | 类和说明 |
---|---|
class |
CorsHandler
Handles Cross Origin Resource Sharing (CORS) requests.
|
限定符和类型 | 接口和说明 |
---|---|
interface |
WebSocketFrameDecoder
Marker interface which all WebSocketFrame decoders need to implement.
|
interface |
WebSocketFrameEncoder
Marker interface which all WebSocketFrame encoders need to implement.
|
限定符和类型 | 类和说明 |
---|---|
class |
Utf8FrameValidator |
class |
WebSocket00FrameDecoder
Decodes
ByteBuf s into WebSocketFrame s. |
class |
WebSocket00FrameEncoder
Encodes a
WebSocketFrame into a ByteBuf . |
class |
WebSocket07FrameDecoder
Decodes a web socket frame from wire protocol version 7 format.
|
class |
WebSocket07FrameEncoder
Encodes a web socket frame into wire protocol version 7 format.
|
class |
WebSocket08FrameDecoder
Decodes a web socket frame from wire protocol version 8 format.
|
class |
WebSocket08FrameEncoder
Encodes a web socket frame into wire protocol version 8 format.
|
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.
|
限定符和类型 | 类和说明 |
---|---|
class |
WebSocketClientExtensionHandler
This handler negotiates and initializes the WebSocket Extensions.
|
class |
WebSocketExtensionDecoder
Convenient class for io.netty.handler.codec.http.websocketx.extensions.WebSocketExtension decoder.
|
class |
WebSocketExtensionEncoder
Convenient class for io.netty.handler.codec.http.websocketx.extensions.WebSocketExtension encoder.
|
class |
WebSocketServerExtensionHandler
This handler negotiates and initializes the WebSocket Extensions.
|
限定符和类型 | 类和说明 |
---|---|
class |
WebSocketClientCompressionHandler
Extends io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketClientExtensionHandler
to handle the most common WebSocket Compression Extensions.
|
class |
WebSocketServerCompressionHandler
Extends io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketServerExtensionHandler
to handle the most common WebSocket Compression Extensions.
|
限定符和类型 | 类和说明 |
---|---|
class |
CleartextHttp2ServerUpgradeHandler
Performing cleartext upgrade, by h2c HTTP upgrade or Prior Knowledge.
|
class |
Http2ChannelDuplexHandler
A
ChannelDuplexHandler providing additional functionality for HTTP/2. |
class |
Http2ConnectionHandler
Provides the default implementation for processing inbound frame events and delegates to a
Http2FrameListener
This class will read HTTP/2 frames and delegate the events to a Http2FrameListener
This interface enforces inbound flow control functionality through
Http2LocalFlowController |
class |
Http2FrameCodec
This API is very immature.
|
class |
Http2FrameLogger
Logs HTTP2 frames for debugging purposes.
|
class |
Http2MultiplexCodec
已过时。
use
Http2FrameCodecBuilder together with Http2MultiplexHandler . |
class |
Http2MultiplexHandler
An HTTP/2 handler that creates child channels for each stream.
|
class |
Http2StreamFrameToHttpObjectCodec
This handler converts from
Http2StreamFrame to HttpObject ,
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.
|
限定符和类型 | 方法和说明 |
---|---|
static Http2MultiplexCodecBuilder |
Http2MultiplexCodecBuilder.forClient(ChannelHandler childHandler)
已过时。
Creates a builder for an HTTP/2 client.
|
static Http2MultiplexCodecBuilder |
Http2MultiplexCodecBuilder.forServer(ChannelHandler childHandler)
已过时。
Creates a builder for an HTTP/2 server.
|
Http2StreamChannelBootstrap |
Http2StreamChannelBootstrap.handler(ChannelHandler handler)
the
ChannelHandler to use for serving the requests. |
Http2MultiplexCodecBuilder |
Http2MultiplexCodecBuilder.withUpgradeStreamHandler(ChannelHandler upgradeStreamHandler)
已过时。
|
构造器和说明 |
---|
CleartextHttp2ServerUpgradeHandler(HttpServerCodec httpServerCodec,
HttpServerUpgradeHandler httpServerUpgradeHandler,
ChannelHandler http2ServerHandler)
Creates the channel handler provide cleartext HTTP/2 upgrade from HTTP
upgrade or prior knowledge
|
Http2ClientUpgradeCodec(Http2FrameCodec frameCodec,
ChannelHandler upgradeToHandler) |
Http2ClientUpgradeCodec(java.lang.String handlerName,
Http2FrameCodec frameCodec,
ChannelHandler upgradeToHandler) |
Http2MultiplexHandler(ChannelHandler inboundStreamHandler)
Creates a new instance
|
Http2MultiplexHandler(ChannelHandler inboundStreamHandler,
ChannelHandler upgradeStreamHandler)
Creates a new instance
|
Http2ServerUpgradeCodec(Http2FrameCodec http2Codec,
ChannelHandler... handlers)
Creates the codec using a default name for the connection handler when adding to the
pipeline.
|
限定符和类型 | 类和说明 |
---|---|
class |
JsonObjectDecoder
Splits a byte stream of JSON objects and arrays into individual objects/arrays and passes them up the
ChannelPipeline . |
限定符和类型 | 类和说明 |
---|---|
class |
CompatibleMarshallingDecoder
|
class |
CompatibleMarshallingEncoder
MessageToByteEncoder implementation which uses JBoss Marshalling to marshal
an Object. |
class |
MarshallingDecoder
Decoder which MUST be used with
MarshallingEncoder . |
class |
MarshallingEncoder
MessageToByteEncoder implementation which uses JBoss Marshalling to marshal
an Object. |
限定符和类型 | 类和说明 |
---|---|
class |
AbstractMemcacheObjectAggregator<H extends MemcacheMessage>
A
ChannelHandler that aggregates an MemcacheMessage
and its following MemcacheContent s into a single MemcacheMessage with
no following MemcacheContent s. |
class |
AbstractMemcacheObjectDecoder
Abstract super class for both ascii and binary decoders.
|
class |
AbstractMemcacheObjectEncoder<M extends MemcacheMessage>
A general purpose
AbstractMemcacheObjectEncoder that encodes MemcacheMessage s. |
限定符和类型 | 类和说明 |
---|---|
class |
AbstractBinaryMemcacheDecoder<M extends BinaryMemcacheMessage>
Decoder for both
BinaryMemcacheRequest and BinaryMemcacheResponse . |
class |
AbstractBinaryMemcacheEncoder<M extends BinaryMemcacheMessage>
A
MessageToByteEncoder that encodes binary memcache messages into bytes. |
class |
BinaryMemcacheClientCodec
The client codec that combines the proper encoder and decoder.
|
class |
BinaryMemcacheObjectAggregator
An object aggregator for the memcache binary protocol.
|
class |
BinaryMemcacheRequestDecoder
The decoder part which takes care of decoding the request-specific headers.
|
class |
BinaryMemcacheRequestEncoder
The encoder part which takes care of encoding the request headers.
|
class |
BinaryMemcacheResponseDecoder
The decoder which takes care of decoding the response headers.
|
class |
BinaryMemcacheResponseEncoder
The encoder which takes care of encoding the response headers.
|
class |
BinaryMemcacheServerCodec
The full server codec that combines the correct encoder and decoder.
|
限定符和类型 | 类和说明 |
---|---|
class |
MqttDecoder
|
class |
MqttEncoder
|
限定符和类型 | 类和说明 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
class |
ProtobufDecoder
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class |
ProtobufDecoderNano
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class |
ProtobufEncoder
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class |
ProtobufEncoderNano
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class |
ProtobufVarint32FrameDecoder
A decoder that splits the received
ByteBuf s dynamically by the
value of the Google Protocol Buffers
Base
128 Varints integer length field in the message. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class |
ProtobufVarint32LengthFieldPrepender
An encoder that prepends the Google Protocol Buffers
io.netty.handler.codec.redis中ChannelHandler的使用
io.netty.handler.codec.rtsp中ChannelHandler的使用
io.netty.handler.codec.sctp中ChannelHandler的使用
io.netty.handler.codec.serialization中ChannelHandler的使用
io.netty.handler.codec.smtp中ChannelHandler的使用
io.netty.handler.codec.socks中ChannelHandler的使用
io.netty.handler.codec.socksx中ChannelHandler的使用
io.netty.handler.codec.socksx.v4中ChannelHandler的使用
io.netty.handler.codec.socksx.v5中ChannelHandler的使用
io.netty.handler.codec.spdy中ChannelHandler的使用
io.netty.handler.codec.stomp中ChannelHandler的使用
io.netty.handler.codec.string中ChannelHandler的使用
io.netty.handler.codec.xml中ChannelHandler的使用
io.netty.handler.flow中ChannelHandler的使用
io.netty.handler.flush中ChannelHandler的使用
io.netty.handler.ipfilter中ChannelHandler的使用
io.netty.handler.logging中ChannelHandler的使用
io.netty.handler.pcap中ChannelHandler的使用
io.netty.handler.proxy中ChannelHandler的使用
io.netty.handler.ssl中ChannelHandler的使用
io.netty.handler.ssl.ocsp中ChannelHandler的使用
io.netty.handler.stream中ChannelHandler的使用
io.netty.handler.timeout中ChannelHandler的使用
io.netty.handler.traffic中ChannelHandler的使用
io.netty.testsuite.autobahn中ChannelHandler的使用
io.netty.testsuite.svm中ChannelHandler的使用
|