|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.mina.common.BaseSessionManager
org.apache.mina.protocol.vmpipe.VmPipeAcceptor
public class VmPipeAcceptor
Binds the specified ProtocolProvider to the specified
VmPipeAddress.
| Field Summary |
|---|
| Fields inherited from class org.apache.mina.common.BaseSessionManager |
|---|
exceptionMonitor |
| Constructor Summary | |
|---|---|
VmPipeAcceptor()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
bind(java.net.SocketAddress address,
ProtocolProvider protocolProvider)
Binds to the specified address and handles incoming
connections with the specified protocolProvider. |
ProtocolFilterChain |
getFilterChain()
Returns the filter chain that filters all events which is related with sessions this manager manages. |
ProtocolSession |
newSession(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
(Optional) Returns a ProtocolSession that is bound to the specified
localAddress and remoteAddress which reuses
the localAddress that is already bound by ProtocolAcceptor
via ProtocolAcceptor.bind(SocketAddress, ProtocolProvider). |
void |
unbind(java.net.SocketAddress address)
Unbinds from the specified address. |
| Methods inherited from class org.apache.mina.common.BaseSessionManager |
|---|
getExceptionMonitor, setExceptionMonitor |
| 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.SessionManager |
|---|
getExceptionMonitor, setExceptionMonitor |
| Constructor Detail |
|---|
public VmPipeAcceptor()
| Method Detail |
|---|
public void bind(java.net.SocketAddress address,
ProtocolProvider protocolProvider)
throws java.io.IOException
ProtocolAcceptoraddress and handles incoming
connections with the specified protocolProvider.
bind in interface ProtocolAcceptorjava.io.IOException - if failed to bindpublic void unbind(java.net.SocketAddress address)
ProtocolAcceptoraddress.
unbind in interface ProtocolAcceptorpublic ProtocolFilterChain getFilterChain()
ProtocolSessionManager
getFilterChain in interface ProtocolSessionManager
public ProtocolSession newSession(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
ProtocolAcceptorProtocolSession that is bound to the specified
localAddress and remoteAddress which reuses
the localAddress that is already bound by ProtocolAcceptor
via ProtocolAcceptor.bind(SocketAddress, ProtocolProvider).
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 ProtocolAcceptor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||