|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.mina.common.support.BaseIoService
org.apache.mina.common.support.BaseIoAcceptor
public abstract class BaseIoAcceptor
A base implementation of IoAcceptor.
| Constructor Summary | |
|---|---|
protected |
BaseIoAcceptor()
|
| Method Summary | |
|---|---|
void |
bind(java.net.SocketAddress address,
IoHandler handler)
Binds to the specified address and handles incoming
connections with the specified handler. |
IoSession |
newSession(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
(Optional) Returns an IoSession that is bound to the specified
localAddress and remoteAddress which reuses
the localAddress that is already bound by IoAcceptor
via IoAcceptor.bind(SocketAddress, IoHandler). |
| Methods inherited from class org.apache.mina.common.support.BaseIoService |
|---|
addListener, getFilterChain, getFilterChainBuilder, getListeners, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.mina.common.IoAcceptor |
|---|
bind, unbind, unbindAll |
| Methods inherited from interface org.apache.mina.common.IoService |
|---|
addListener, getDefaultConfig, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder |
| Constructor Detail |
|---|
protected BaseIoAcceptor()
| Method Detail |
|---|
public void bind(java.net.SocketAddress address,
IoHandler handler)
throws java.io.IOException
IoAcceptoraddress and handles incoming
connections with the specified handler.
bind in interface IoAcceptorjava.io.IOException - if failed to bind
public IoSession newSession(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
IoAcceptorIoSession that is bound to the specified
localAddress and remoteAddress which reuses
the localAddress that is already bound by IoAcceptor
via IoAcceptor.bind(SocketAddress, IoHandler).
This operation is optional. Please throw UnsupportedOperationException
if the transport type doesn't support this operation. This operation is
usually implemented for connectionless transport types.
newSession in interface IoAcceptor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||