|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mina.protocol.io.IoProtocolConnector
public class IoProtocolConnector
A ProtocolConnector
which wraps IoConnector
to provide
low-level I/O.
Please note that the user-defined attributes of ProtocolSession
and its wrapping IoSession
are shared.
Constructor Summary | |
---|---|
IoProtocolConnector(IoConnector connector)
Creates a new instance with the specified IoConnector . |
Method Summary | |
---|---|
ProtocolSession |
connect(SocketAddress address,
int timeout,
ProtocolProvider provider)
Connects to the specified address with timeout. |
ProtocolSession |
connect(SocketAddress address,
ProtocolProvider provider)
Connects to the specified address . |
ProtocolSession |
connect(SocketAddress address,
SocketAddress localAddress,
int timeout,
ProtocolProvider provider)
Connects to the specified address with timeout. |
ProtocolSession |
connect(SocketAddress address,
SocketAddress localAddress,
ProtocolProvider provider)
Connects to the specified address . |
ExceptionMonitor |
getExceptionMonitor()
Returns the current exception monitor. |
ProtocolFilterChain |
getFilterChain()
Returns the filter chain that filters all events which is related with sessions this manager manages. |
IoConnector |
getIoConnector()
Returns the underlying IoConnector instance this acceptor is
wrapping. |
void |
setExceptionMonitor(ExceptionMonitor monitor)
Sets the uncaught exception monitor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IoProtocolConnector(IoConnector connector)
IoConnector
.
Method Detail |
---|
public IoConnector getIoConnector()
IoConnector
instance this acceptor is
wrapping.
public ProtocolSession connect(SocketAddress address, ProtocolProvider provider) throws IOException
ProtocolConnector
address
. If communication starts
successfully, events are fired to the specified
protocolProvider
. This method blocks.
connect
in interface ProtocolConnector
IOException
- if failed to connectpublic ProtocolSession connect(SocketAddress address, SocketAddress localAddress, ProtocolProvider provider) throws IOException
ProtocolConnector
address
. If communication starts
successfully, events are fired to the specified
protocolProvider
. This method blocks.
connect
in interface ProtocolConnector
localAddress
- the local address the channel is bound to
IOException
- if failed to connectpublic ProtocolSession connect(SocketAddress address, int timeout, ProtocolProvider provider) throws IOException
ProtocolConnector
address
with timeout. If
communication starts successfully, events are fired to the specified
protocolProvider
. This method blocks.
connect
in interface ProtocolConnector
IOException
- if failed to connectpublic ProtocolSession connect(SocketAddress address, SocketAddress localAddress, int timeout, ProtocolProvider provider) throws IOException
ProtocolConnector
address
with timeout. If
communication starts successfully, events are fired to the specified
protocolProvider
. This method blocks.
connect
in interface ProtocolConnector
localAddress
- the local address the channel is bound to
IOException
- if failed to connectpublic ProtocolFilterChain getFilterChain()
ProtocolSessionManager
getFilterChain
in interface ProtocolSessionManager
public ExceptionMonitor getExceptionMonitor()
SessionManager
getExceptionMonitor
in interface SessionManager
public void setExceptionMonitor(ExceptionMonitor monitor)
SessionManager
null
is specified,
a new instance of DefaultExceptionMonitor
will be set.
setExceptionMonitor
in interface SessionManager
monitor
- A new instance of DefaultExceptionMonitor
is set
if null is specified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |