org.apache.mina.protocol.vmpipe
Class VmPipeAcceptor

java.lang.Object
  extended by org.apache.mina.common.BaseSessionManager
      extended by org.apache.mina.protocol.vmpipe.VmPipeAcceptor
All Implemented Interfaces:
SessionManager, ProtocolAcceptor, ProtocolSessionManager

public class VmPipeAcceptor
extends BaseSessionManager
implements ProtocolAcceptor

Binds the specified ProtocolProvider to the specified VmPipeAddress.

Version:
$Rev: 332218 $, $Date: 2005-11-10 12:52:42 +0900 $
Author:
The Apache Directory Project (dev@directory.apache.org)

Field Summary
 
Fields inherited from class org.apache.mina.common.BaseSessionManager
exceptionMonitor
 
Constructor Summary
VmPipeAcceptor()
          Creates a new instance.
 
Method Summary
 void bind(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(SocketAddress remoteAddress, 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(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

VmPipeAcceptor

public VmPipeAcceptor()
Creates a new instance.

Method Detail

bind

public void bind(SocketAddress address,
                 ProtocolProvider protocolProvider)
          throws IOException
Description copied from interface: ProtocolAcceptor
Binds to the specified address and handles incoming connections with the specified protocolProvider.

Specified by:
bind in interface ProtocolAcceptor
Throws:
IOException - if failed to bind

unbind

public void unbind(SocketAddress address)
Description copied from interface: ProtocolAcceptor
Unbinds from the specified address.

Specified by:
unbind in interface ProtocolAcceptor

getFilterChain

public ProtocolFilterChain getFilterChain()
Description copied from interface: ProtocolSessionManager
Returns the filter chain that filters all events which is related with sessions this manager manages.

Specified by:
getFilterChain in interface ProtocolSessionManager

newSession

public ProtocolSession newSession(SocketAddress remoteAddress,
                                  SocketAddress localAddress)
Description copied from interface: ProtocolAcceptor
(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).

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.

Specified by:
newSession in interface ProtocolAcceptor


Copyright © 2004-2005 . All Rights Reserved.