程序包 | 说明 |
---|---|
org.apache.mina.common |
Common types required for users to use MINA.
|
org.apache.mina.common.support |
Internal classes used by org.apache.mina.common package.
|
org.apache.mina.example.chat |
Chat server which demonstates using the text line codec and Spring integration.
|
org.apache.mina.example.chat.client |
Swing based chat client.
|
org.apache.mina.example.echoserver |
Echo server which demonstates low-level I/O layer and SSL support.
|
org.apache.mina.example.haiku | |
org.apache.mina.example.httpserver.codec |
A HTTP server implemented with protocol codec (needs more work).
|
org.apache.mina.example.httpserver.stream |
A simplistic HTTP server which demonstates stream-based I/O support.
|
org.apache.mina.example.netcat |
NetCat client (Network + Unix
cat command) which demonstates low-level I/O layer. |
org.apache.mina.example.proxy |
A TCP/IP tunneling proxy example.
|
org.apache.mina.example.reverser |
Reverser server which reverses all text lines demonstating high-level protocol layer.
|
org.apache.mina.example.sumup |
SumUp Server and Client which sums up all ADD requests.
|
org.apache.mina.example.tennis |
Two tennis players play a game which demonstates in-VM pipes.
|
org.apache.mina.handler |
Useful IoHandler implementations.
|
org.apache.mina.handler.chain |
A handler implementation that helps you implement sequentially layered protocols
using Chains of Responsibility pattern.
|
org.apache.mina.handler.demux |
A handler implementation that helps you implement complex protocols
by splitting messageReceived handlers into multiple sub-handlers.
|
org.apache.mina.handler.multiton |
Enables creating a handler per session instead of having one handler for many
sessions, using
Multiton pattern.
|
org.apache.mina.integration.spring |
SpringFramework-specific classes
for integration
|
org.apache.mina.transport.socket.nio |
Socket (TCP/IP) and Datagram (UDP/IP) support based on Java
NIO (New I/O) API.
|
org.apache.mina.transport.socket.nio.support |
Internal classes used by org.apache.mina.transport.socket.nio package.
|
org.apache.mina.transport.vmpipe |
In-VM pipe support which removes the overhead of local loopback communication.
|
org.apache.mina.transport.vmpipe.support |
Internal classes used by org.apache.mina.transport.vmpipe package.
|
限定符和类型 | 类和说明 |
---|---|
class |
IoHandlerAdapter
An abstract adapter class for
IoHandler . |
限定符和类型 | 方法和说明 |
---|---|
IoHandler |
IoSession.getHandler()
Returns the
IoHandler which handles this session. |
限定符和类型 | 方法和说明 |
---|---|
void |
IoAcceptor.bind(java.net.SocketAddress address,
IoHandler handler)
Binds to the specified
address and handles incoming
connections with the specified handler . |
void |
IoAcceptor.bind(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config)
Binds to the specified
address and handles incoming
connections with the specified handler . |
ConnectFuture |
IoConnector.connect(java.net.SocketAddress address,
IoHandler handler)
Connects to the specified
address . |
ConnectFuture |
IoConnector.connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config)
Connects to the specified
address . |
ConnectFuture |
IoConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler)
Connects to the specified
address . |
ConnectFuture |
IoConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config)
Connects to the specified
address . |
void |
IoServiceListener.serviceActivated(IoService service,
java.net.SocketAddress serviceAddress,
IoHandler handler,
IoServiceConfig config)
Invoked when a new service is activated by an
IoService . |
void |
IoServiceListener.serviceDeactivated(IoService service,
java.net.SocketAddress serviceAddress,
IoHandler handler,
IoServiceConfig config)
Invoked when a service is deactivated by an
IoService . |
限定符和类型 | 方法和说明 |
---|---|
void |
DelegatedIoAcceptor.bind(java.net.SocketAddress address,
IoHandler handler) |
void |
BaseIoAcceptor.bind(java.net.SocketAddress address,
IoHandler handler) |
void |
DelegatedIoAcceptor.bind(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
DelegatedIoConnector.connect(java.net.SocketAddress address,
IoHandler handler) |
ConnectFuture |
BaseIoConnector.connect(java.net.SocketAddress address,
IoHandler handler) |
ConnectFuture |
DelegatedIoConnector.connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
DelegatedIoConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler) |
ConnectFuture |
BaseIoConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler) |
ConnectFuture |
DelegatedIoConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config) |
void |
IoServiceListenerSupport.fireServiceActivated(IoService service,
java.net.SocketAddress serviceAddress,
IoHandler handler,
IoServiceConfig config)
Calls
IoServiceListener.serviceActivated(IoService, SocketAddress, IoHandler, IoServiceConfig)
for all registered listeners. |
void |
IoServiceListenerSupport.fireServiceDeactivated(IoService service,
java.net.SocketAddress serviceAddress,
IoHandler handler,
IoServiceConfig config)
Calls
IoServiceListener.serviceDeactivated(IoService, SocketAddress, IoHandler, IoServiceConfig)
for all registered listeners. |
限定符和类型 | 类和说明 |
---|---|
class |
ChatProtocolHandler
IoHandler implementation of a simple chat server protocol. |
限定符和类型 | 类和说明 |
---|---|
class |
SwingChatClientHandler
IoHandler implementation of the client side of the simple chat protocol. |
构造器和说明 |
---|
ChatClientSupport(java.lang.String name,
IoHandler handler) |
限定符和类型 | 类和说明 |
---|---|
class |
EchoProtocolHandler
IoHandler implementation for echo server. |
限定符和类型 | 类和说明 |
---|---|
class |
HaikuValidatorIoHandler |
限定符和类型 | 类和说明 |
---|---|
class |
ServerHandler
An
IoHandler for HTTP. |
限定符和类型 | 类和说明 |
---|---|
class |
HttpProtocolHandler
A simplistic HTTP protocol handler that replies back the URL and headers
which a client requested.
|
限定符和类型 | 类和说明 |
---|---|
class |
NetCatProtocolHandler
IoHandler implementation for NetCat client. |
限定符和类型 | 类和说明 |
---|---|
class |
AbstractProxyIoHandler
Base class of
IoHandler classes which handle
proxied connections. |
class |
ClientToProxyIoHandler
Handles the client to proxy part of the proxied connection.
|
class |
ServerToProxyIoHandler
Handles the server to proxy part of the proxied connection.
|
限定符和类型 | 类和说明 |
---|---|
class |
ReverseProtocolHandler
IoHandler implementation of reverser server protocol. |
限定符和类型 | 类和说明 |
---|---|
class |
ClientSessionHandler
IoHandler for SumUp client. |
class |
ServerSessionHandler
IoHandler for SumUp server. |
限定符和类型 | 类和说明 |
---|---|
class |
TennisPlayer
A
IoHandler implementation which plays a tennis game. |
限定符和类型 | 类和说明 |
---|---|
class |
StreamIoHandler
A
IoHandler that adapts asynchronous MINA events to stream I/O. |
限定符和类型 | 类和说明 |
---|---|
class |
ChainedIoHandler
An
IoHandler which executes an IoHandlerChain
on a messageReceived event. |
限定符和类型 | 类和说明 |
---|---|
class |
DemuxingIoHandler
|
限定符和类型 | 类和说明 |
---|---|
class |
SingleSessionIoHandlerDelegate
An
IoHandler implementation which delegates all requests to
SingleSessionIoHandler s. |
限定符和类型 | 方法和说明 |
---|---|
IoHandler |
Binding.getHandler()
Returns the handler of this binding object.
|
限定符和类型 | 方法和说明 |
---|---|
void |
Binding.setHandler(IoHandler handler)
Sets the handler of this binding object.
|
构造器和说明 |
---|
Binding(java.net.SocketAddress address,
IoHandler handler)
Creates a new instance using the specified values.
|
Binding(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig serviceConfig)
Creates a new instance using the specified values.
|
限定符和类型 | 方法和说明 |
---|---|
void |
SocketAcceptor.bind(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config)
Binds to the specified
address and handles incoming connections with the specified
handler . |
ConnectFuture |
SocketConnector.connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
SocketConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config) |
限定符和类型 | 方法和说明 |
---|---|
void |
DatagramAcceptorDelegate.bind(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
DatagramConnectorDelegate.connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
DatagramConnectorDelegate.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config) |
限定符和类型 | 方法和说明 |
---|---|
void |
VmPipeAcceptor.bind(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
VmPipeConnector.connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
VmPipeConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config) |
限定符和类型 | 方法和说明 |
---|---|
IoHandler |
VmPipeSessionImpl.getHandler() |
IoHandler |
VmPipe.getHandler() |
构造器和说明 |
---|
VmPipe(VmPipeAcceptor acceptor,
VmPipeAddress address,
IoHandler handler,
IoServiceConfig config,
IoServiceListenerSupport listeners) |
VmPipeSessionImpl(IoService service,
IoServiceConfig serviceConfig,
IoServiceListenerSupport serviceListeners,
java.net.SocketAddress localAddress,
IoHandler handler,
VmPipe remoteEntry) |