程序包 | 说明 |
---|---|
org.jboss.netty.bootstrap |
IoC/DI friendly helper classes which enable an easy implementation of
typical client side and server side channel initialization.
|
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.channel.local |
A virtual transport that enables the communication between the two
parties in the same virtual machine.
|
org.jboss.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
org.jboss.netty.channel.socket.http |
An HTTP-based client-side
SocketChannel
and its corresponding server-side Servlet implementation that make your
existing server application work in a firewalled network. |
org.jboss.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
org.jboss.netty.channel.socket.oio |
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
|
org.jboss.netty.example.factorial | |
org.jboss.netty.example.http.file | |
org.jboss.netty.example.http.helloworld | |
org.jboss.netty.example.http.snoop | |
org.jboss.netty.example.http.upload | |
org.jboss.netty.example.http.websocketx.autobahn |
This package is intended for use with testing against the Python
AutoBahn test suite.
|
org.jboss.netty.example.http.websocketx.server |
This package contains an example web socket web server.
|
org.jboss.netty.example.localtime | |
org.jboss.netty.example.proxy | |
org.jboss.netty.example.securechat | |
org.jboss.netty.example.telnet | |
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.
|
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
Bootstrap.getPipeline()
Returns the default
ChannelPipeline which is cloned when a new
Channel is created. |
限定符和类型 | 方法和说明 |
---|---|
void |
Bootstrap.setPipeline(ChannelPipeline pipeline)
Sets the default
ChannelPipeline which is cloned when a new
Channel is created. |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultChannelPipeline
The default
ChannelPipeline implementation. |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
ChannelPipelineFactory.getPipeline()
Returns a newly created
ChannelPipeline . |
ChannelPipeline |
ChannelHandlerContext.getPipeline()
Returns the
ChannelPipeline that the ChannelHandler
belongs to. |
ChannelPipeline |
Channel.getPipeline()
Returns the
ChannelPipeline which handles ChannelEvent s
associated with this channel. |
ChannelPipeline |
AbstractChannel.getPipeline() |
static ChannelPipeline |
Channels.pipeline()
Creates a new
ChannelPipeline . |
static ChannelPipeline |
Channels.pipeline(ChannelHandler... handlers)
Creates a new
ChannelPipeline which contains the specified
ChannelHandler s. |
static ChannelPipeline |
Channels.pipeline(ChannelPipeline pipeline)
Creates a new
ChannelPipeline which contains the same entries
with the specified pipeline . |
限定符和类型 | 方法和说明 |
---|---|
void |
ChannelSink.eventSunk(ChannelPipeline pipeline,
ChannelEvent e)
Invoked by
ChannelPipeline when a downstream ChannelEvent
has reached its terminal (the head of the pipeline). |
void |
ChannelSink.exceptionCaught(ChannelPipeline pipeline,
ChannelEvent e,
ChannelPipelineException cause)
Invoked by
ChannelPipeline when an exception was raised while
one of its ChannelHandler s process a ChannelEvent . |
void |
AbstractChannelSink.exceptionCaught(ChannelPipeline pipeline,
ChannelEvent event,
ChannelPipelineException cause)
Sends an
ExceptionEvent upstream with the specified
cause . |
ChannelFuture |
ChannelSink.execute(ChannelPipeline pipeline,
java.lang.Runnable task)
Execute the given
Runnable later in the io-thread. |
ChannelFuture |
AbstractChannelSink.execute(ChannelPipeline pipeline,
java.lang.Runnable task)
This implementation just directly call
Runnable.run() . |
ServerChannel |
ServerChannelFactory.newChannel(ChannelPipeline pipeline) |
Channel |
ChannelFactory.newChannel(ChannelPipeline pipeline)
|
static ChannelPipeline |
Channels.pipeline(ChannelPipeline pipeline)
Creates a new
ChannelPipeline which contains the same entries
with the specified pipeline . |
static ChannelPipelineFactory |
Channels.pipelineFactory(ChannelPipeline pipeline)
Creates a new
ChannelPipelineFactory which creates a new
ChannelPipeline which contains the same entries with the
specified pipeline . |
构造器和说明 |
---|
AbstractChannel(Channel parent,
ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink)
Creates a new instance.
|
AbstractChannel(java.lang.Integer id,
Channel parent,
ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink)
(Internal use only) Creates a new temporary instance with the specified
ID.
|
AbstractServerChannel(ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
LocalServerChannel |
LocalServerChannelFactory.newChannel(ChannelPipeline pipeline) |
LocalChannel |
LocalClientChannelFactory.newChannel(ChannelPipeline pipeline) |
LocalServerChannel |
DefaultLocalServerChannelFactory.newChannel(ChannelPipeline pipeline) |
LocalChannel |
DefaultLocalClientChannelFactory.newChannel(ChannelPipeline pipeline) |
限定符和类型 | 方法和说明 |
---|---|
ServerSocketChannel |
ServerSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
DatagramChannel |
DatagramChannelFactory.newChannel(ChannelPipeline pipeline) |
SocketChannel |
ClientSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
限定符和类型 | 方法和说明 |
---|---|
SocketChannel |
HttpTunnelingClientSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
限定符和类型 | 方法和说明 |
---|---|
ChannelFuture |
AbstractNioChannelSink.execute(ChannelPipeline pipeline,
java.lang.Runnable task) |
ServerSocketChannel |
NioServerSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
DatagramChannel |
NioDatagramChannelFactory.newChannel(ChannelPipeline pipeline) |
SocketChannel |
NioClientSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
构造器和说明 |
---|
NioSocketChannel(Channel parent,
ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink,
java.nio.channels.SocketChannel socket,
NioWorker worker) |
限定符和类型 | 方法和说明 |
---|---|
ChannelFuture |
AbstractOioChannelSink.execute(ChannelPipeline pipeline,
java.lang.Runnable task) |
ServerSocketChannel |
OioServerSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
DatagramChannel |
OioDatagramChannelFactory.newChannel(ChannelPipeline pipeline) |
SocketChannel |
OioClientSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
FactorialServerPipelineFactory.getPipeline() |
ChannelPipeline |
FactorialClientPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
HttpStaticFileServerPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
HttpHelloWorldServerPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
HttpSnoopServerPipelineFactory.getPipeline() |
ChannelPipeline |
HttpSnoopClientPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
HttpUploadServerPipelineFactory.getPipeline() |
ChannelPipeline |
HttpUploadClientPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
AutobahnServerPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
WebSocketServerPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
LocalTimeServerPipelineFactory.getPipeline() |
ChannelPipeline |
LocalTimeClientPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
HexDumpProxyPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
SecureChatServerPipelineFactory.getPipeline() |
ChannelPipeline |
SecureChatClientPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
TelnetServerPipelineFactory.getPipeline() |
ChannelPipeline |
TelnetClientPipelineFactory.getPipeline() |
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
CodecEmbedder.getPipeline()
Returns the
ChannelPipeline that handles the input. |