Package | Description |
---|---|
org.apache.mina.api |
Base API for the MINA library.
|
org.apache.mina.coap.resource | |
org.apache.mina.filter.codec | |
org.apache.mina.filter.logging | |
org.apache.mina.filter.query | |
org.apache.mina.service | |
org.apache.mina.service.executor |
Classes in charge of decoupling IoHandler event of the low level read/write/accept I/O threads (
SelectorLoop ). |
org.apache.mina.session | |
org.apache.mina.transport | |
org.apache.mina.transport.bio |
Transport implementation base on blocking I/O
Socket |
org.apache.mina.transport.nio |
Transport implementations base on NIO (New I/O),
Channel |
org.apache.mina.transport.udp |
Shared plumber UDP transport implementations.
|
Modifier and Type | Method and Description |
---|---|
IoFuture<IoSession> |
IoClient.connect(SocketAddress remoteAddress)
Connects to the specified remote address.
|
Map<Long,IoSession> |
IoService.getManagedSessions()
Returns the map of all sessions which are currently managed by this service.
|
Modifier and Type | Method and Description |
---|---|
void |
IoHandler.exceptionCaught(IoSession session,
Exception cause)
Invoked when any runtime exception is thrown during session processing (filters, unexpected error, etc..).
|
void |
AbstractIoHandler.exceptionCaught(IoSession session,
Exception cause)
Invoked when any runtime exception is thrown during session processing (filters, unexpected error, etc..).
|
void |
IoHandler.messageReceived(IoSession session,
Object message)
Invoked when a message is received.
|
void |
AbstractIoHandler.messageReceived(IoSession session,
Object message)
Invoked when a message is received.
|
void |
IoFilter.messageReceived(IoSession session,
Object message,
ReadFilterChainController controller)
Invoked when a message is received.
|
void |
AbstractIoFilter.messageReceived(IoSession session,
Object message,
ReadFilterChainController controller)
Invoked when a message is received.
|
void |
IoHandler.messageSent(IoSession session,
Object message)
Invoked when a high level message was written to the low level O/S buffer.
|
void |
IoFilter.messageSent(IoSession session,
Object message)
Invoked when a high level message was written to the low level O/S buffer.
|
void |
AbstractIoHandler.messageSent(IoSession session,
Object message)
Invoked when a high level message was written to the low level O/S buffer.
|
void |
AbstractIoFilter.messageSent(IoSession session,
Object message)
Invoked when a high level message was written to the low level O/S buffer.
|
void |
IoFilter.messageWriting(IoSession session,
WriteRequest message,
WriteFilterChainController controller)
Invoked when a message is under writing.
|
void |
AbstractIoFilter.messageWriting(IoSession session,
WriteRequest message,
WriteFilterChainController controller)
Invoked when a message is under writing.
|
void |
IoHandler.sessionClosed(IoSession session)
Invoked when a connection is closed.
|
void |
IoFilter.sessionClosed(IoSession session)
Invoked when a connection is closed.
|
void |
AbstractIoHandler.sessionClosed(IoSession session)
Invoked when a connection is closed.
|
void |
AbstractIoFilter.sessionClosed(IoSession session)
Invoked when a connection is closed.
|
void |
IoHandler.sessionIdle(IoSession session,
IdleStatus status)
Invoked with the related
IdleStatus when a connection becomes idle. |
void |
IoFilter.sessionIdle(IoSession session,
IdleStatus status)
Invoked with the related
IdleStatus when a connection becomes idle. |
void |
AbstractIoHandler.sessionIdle(IoSession session,
IdleStatus status)
Invoked with the related
IdleStatus when a connection becomes idle. |
void |
AbstractIoFilter.sessionIdle(IoSession session,
IdleStatus status)
Invoked with the related
IdleStatus when a connection becomes idle. |
void |
IoHandler.sessionOpened(IoSession session)
Invoked when a connection has been opened.
|
void |
IoFilter.sessionOpened(IoSession session)
Invoked when a connection has been opened.
|
void |
AbstractIoHandler.sessionOpened(IoSession session)
Invoked when a connection has been opened.
|
void |
AbstractIoFilter.sessionOpened(IoSession session)
Invoked when a connection has been opened.
|
Modifier and Type | Method and Description |
---|---|
CoapResponse |
ResourceHandler.handle(CoapMessage request,
IoSession session)
Generate the response for this request.
|
CoapMessage |
ResourceRegistry.respond(CoapMessage request,
IoSession session)
Response to a request : delegate it to the correct handler for the requested path.
|
Modifier and Type | Method and Description |
---|---|
void |
ProtocolCodecFilter.messageReceived(IoSession session,
Object in,
ReadFilterChainController controller)
Process the incoming message, calling the session decoder.
|
void |
ProtocolCodecFilter.messageWriting(IoSession session,
WriteRequest message,
WriteFilterChainController controller)
Invoked when a message is under writing.
|
void |
ProtocolCodecFilter.sessionClosed(IoSession session)
Invoked when a connection is closed.
|
void |
ProtocolCodecFilter.sessionOpened(IoSession session)
Invoked when a connection has been opened.
|
Modifier and Type | Method and Description |
---|---|
void |
LoggingFilter.messageReceived(IoSession session,
Object message,
ReadFilterChainController controller)
Invoked when a message is received.
|
void |
LoggingFilter.messageSent(IoSession session,
Object message)
Invoked when a high level message was written to the low level O/S buffer.
|
void |
LoggingFilter.messageWriting(IoSession session,
WriteRequest message,
WriteFilterChainController controller)
Invoked when a message is under writing.
|
void |
LoggingFilter.sessionClosed(IoSession session)
Invoked when a connection is closed.
|
void |
LoggingFilter.sessionIdle(IoSession session,
IdleStatus status)
Invoked with the related
IdleStatus when a connection becomes idle. |
void |
LoggingFilter.sessionOpened(IoSession session)
Invoked when a connection has been opened.
|
Modifier and Type | Method and Description |
---|---|
void |
RequestFilter.messageReceived(IoSession session,
Object message,
ReadFilterChainController controller) |
IoFuture<RESPONSE> |
RequestFilter.request(IoSession session,
REQUEST request,
long timeoutInMs)
Send a request message and provide a
IoFuture for handling the response. |
void |
RequestFilter.sessionClosed(IoSession session)
Invoked when a connection is closed.
|
void |
RequestFilter.sessionOpened(IoSession session) |
Modifier and Type | Method and Description |
---|---|
Map<Long,IoSession> |
AbstractIoService.getManagedSessions()
Returns the map of all sessions which are currently managed by this service.
|
Modifier and Type | Method and Description |
---|---|
IoSession |
SentEvent.getSession()
The session of this event.
|
IoSession |
ReceiveEvent.getSession()
The session of this event.
|
IoSession |
OpenEvent.getSession()
The session of this event.
|
IoSession |
IdleEvent.getSession()
The session of this event.
|
IoSession |
Event.getSession()
The session of this event.
|
IoSession |
CloseEvent.getSession()
The session of this event.
|
Constructor and Description |
---|
CloseEvent(IoSession session) |
IdleEvent(IoSession session,
IdleStatus status) |
OpenEvent(IoSession session) |
ReceiveEvent(IoSession session,
Object message) |
SentEvent(IoSession session,
Object message) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractIoSession
Base implementation of
IoSession shared with all the different transports. |
Modifier and Type | Method and Description |
---|---|
void |
ConnectFuture.complete(IoSession session)
session connected
|
Modifier and Type | Class and Description |
---|---|
class |
BioUdpSession
A
IoSession for BioUdpServer |
Modifier and Type | Method and Description |
---|---|
IoFuture<IoSession> |
BioUdpServer.connect(SocketAddress remoteAddress) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractNioSession
Common ancestor for NIO based
IoSession implmentation. |
class |
NioTcpSession
A NIO based TCP session, should be used by
NioTcpServer and NioTcpClient . |
class |
NioUdpSession
A UDP session based on NIO
|
Modifier and Type | Method and Description |
---|---|
IoFuture<IoSession> |
NioUdpServer.connect(SocketAddress remoteAddress) |
IoFuture<IoSession> |
NioUdpClient.connect(SocketAddress remoteAddress)
Connects to the specified remote address.
|
IoFuture<IoSession> |
NioTcpClient.connect(SocketAddress remoteAddress)
Connects to the specified remote address.
|
IoFuture<IoSession> |
NioUdpClient.connect(SocketAddress remoteAddress,
SocketAddress localAddress)
Connects to the specified remote address binding to the specified local address.
|
Constructor and Description |
---|
SslHelper(IoSession session,
SSLContext sslContext)
Create a new SSL Handler.
|
Modifier and Type | Method and Description |
---|---|
abstract IoFuture<IoSession> |
AbstractUdpClient.connect(SocketAddress remoteAddress,
SocketAddress localAddress)
Connects to the specified remote address binding to the specified local address.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractUdpServer.initSecured(IoSession session) |
Copyright © 2009–2013 Apache MINA Project. All rights reserved.