|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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(java.net.SocketAddress address,
int timeout,
ProtocolProvider provider)
Connects to the specified address with timeout. |
ProtocolSession |
connect(java.net.SocketAddress address,
ProtocolProvider provider)
Connects to the specified address. |
ProtocolSession |
connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
int timeout,
ProtocolProvider provider)
Connects to the specified address with timeout. |
ProtocolSession |
connect(java.net.SocketAddress address,
java.net.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(java.net.SocketAddress address,
ProtocolProvider provider)
throws java.io.IOException
ProtocolConnectoraddress. If communication starts
successfully, events are fired to the specified
protocolProvider. This method blocks.
connect in interface ProtocolConnectorjava.io.IOException - if failed to connect
public ProtocolSession connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
ProtocolProvider provider)
throws java.io.IOException
ProtocolConnectoraddress. If communication starts
successfully, events are fired to the specified
protocolProvider. This method blocks.
connect in interface ProtocolConnectorlocalAddress - the local address the channel is bound to
java.io.IOException - if failed to connect
public ProtocolSession connect(java.net.SocketAddress address,
int timeout,
ProtocolProvider provider)
throws java.io.IOException
ProtocolConnectoraddress with timeout. If
communication starts successfully, events are fired to the specified
protocolProvider. This method blocks.
connect in interface ProtocolConnectorjava.io.IOException - if failed to connect
public ProtocolSession connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
int timeout,
ProtocolProvider provider)
throws java.io.IOException
ProtocolConnectoraddress with timeout. If
communication starts successfully, events are fired to the specified
protocolProvider. This method blocks.
connect in interface ProtocolConnectorlocalAddress - the local address the channel is bound to
java.io.IOException - if failed to connectpublic ProtocolFilterChain getFilterChain()
ProtocolSessionManager
getFilterChain in interface ProtocolSessionManagerpublic ExceptionMonitor getExceptionMonitor()
SessionManager
getExceptionMonitor in interface SessionManagerpublic void setExceptionMonitor(ExceptionMonitor monitor)
SessionManagernull is specified,
a new instance of DefaultExceptionMonitor will be set.
setExceptionMonitor in interface SessionManagermonitor - 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 | ||||||||