|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mina.protocol.io.IoProtocolAcceptor
public class IoProtocolAcceptor
A ProtocolAcceptor
which wraps IoAcceptor
to provide
low-level I/O.
Please note that the user-defined attributes of ProtocolSession
and its wrapping IoSession
are shared.
Constructor Summary | |
---|---|
IoProtocolAcceptor(IoAcceptor acceptor)
Creates a new instance with the specified IoAcceptor . |
Method Summary | |
---|---|
void |
bind(SocketAddress address,
ProtocolProvider provider)
Binds to the specified address and handles incoming
connections with the specified protocolProvider . |
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. |
IoAcceptor |
getIoAcceptor()
Returns the underlying IoAcceptor instance this acceptor is
wrapping. |
void |
setExceptionMonitor(ExceptionMonitor monitor)
Sets the uncaught exception monitor. |
void |
unbind(SocketAddress address)
Unbinds from the specified address . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IoProtocolAcceptor(IoAcceptor acceptor)
IoAcceptor
.
Method Detail |
---|
public IoAcceptor getIoAcceptor()
IoAcceptor
instance this acceptor is
wrapping.
public void bind(SocketAddress address, ProtocolProvider provider) throws IOException
ProtocolAcceptor
address
and handles incoming
connections with the specified protocolProvider
.
bind
in interface ProtocolAcceptor
IOException
- if failed to bindpublic void unbind(SocketAddress address)
ProtocolAcceptor
address
.
unbind
in interface ProtocolAcceptor
public 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 |