net.sf.beep4j.transport.mina
Class MinaListener

java.lang.Object
  extended by net.sf.beep4j.transport.mina.AbstractMinaPeer
      extended by net.sf.beep4j.transport.mina.MinaListener
All Implemented Interfaces:
Listener, Peer

public class MinaListener
extends AbstractMinaPeer
implements Listener


Nested Class Summary
static class MinaListener.BEEPIoHandler
           
 
Field Summary
 
Fields inherited from class net.sf.beep4j.transport.mina.AbstractMinaPeer
filterChainBuilder
 
Constructor Summary
MinaListener(org.apache.mina.common.IoAcceptor acceptor)
           
 
Method Summary
 void bind(java.net.SocketAddress address, SessionHandlerFactory factory)
          Binds the given SocketAddress.
 void unbind(java.net.SocketAddress address)
           
 
Methods inherited from class net.sf.beep4j.transport.mina.AbstractMinaPeer
setChannelFilterChainBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.beep4j.Peer
setChannelFilterChainBuilder
 

Constructor Detail

MinaListener

public MinaListener(org.apache.mina.common.IoAcceptor acceptor)
Method Detail

bind

public void bind(java.net.SocketAddress address,
                 SessionHandlerFactory factory)
          throws java.io.IOException
Description copied from interface: Listener
Binds the given SocketAddress. Whenever a new SessionHandler is created with the SessionHandlerFactory whenever a new session is created.

Specified by:
bind in interface Listener
Parameters:
address - the address
factory - the factory used to create SessionHandlers
Throws:
java.io.IOException - if binding the address fails

unbind

public void unbind(java.net.SocketAddress address)


Copyright © 2007 null. All Rights Reserved.