net.sourceforge.fixagora.basis.server.control
Class FBasisClientAcceptor

java.lang.Object
  extended by org.apache.mina.common.IoHandlerAdapter
      extended by net.sourceforge.fixagora.basis.server.control.FBasisClientAcceptor
All Implemented Interfaces:
org.apache.mina.common.IoHandler

public class FBasisClientAcceptor
extends org.apache.mina.common.IoHandlerAdapter

The Class FBasisClientAcceptor.


Constructor Summary
FBasisClientAcceptor(java.util.List<AbstractRequests> abstractRequestList, java.lang.String host, int port)
          Instantiates a new f basis client acceptor.
 
Method Summary
 void channelClosed(org.jboss.netty.channel.Channel channel)
          Channel closed.
 void channelConnected(org.jboss.netty.channel.Channel channel)
          Channel connected.
 void messageReceived(org.jboss.netty.channel.Channel channel, java.lang.Object object)
          Message received.
 void send(AbstractResponse abstractResponse)
          Send.
 void send(AbstractResponse abstractResponse, org.jboss.netty.channel.Channel channel)
          Send.
 void setBasisPersistenceHandler(BasisPersistenceHandler basisPersistenceHandler)
          Sets the basis persistence handler.
 
Methods inherited from class org.apache.mina.common.IoHandlerAdapter
exceptionCaught, messageReceived, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FBasisClientAcceptor

public FBasisClientAcceptor(java.util.List<AbstractRequests> abstractRequestList,
                            java.lang.String host,
                            int port)
                     throws java.lang.Exception
Instantiates a new f basis client acceptor.

Parameters:
abstractRequestList - the abstract request list
host - the host
port - the port
Throws:
java.lang.Exception - the exception
Method Detail

messageReceived

public void messageReceived(org.jboss.netty.channel.Channel channel,
                            java.lang.Object object)
                     throws java.lang.Exception
Message received.

Parameters:
channel - the channel
object - the object
Throws:
java.lang.Exception - the exception

channelConnected

public void channelConnected(org.jboss.netty.channel.Channel channel)
                      throws java.lang.Exception
Channel connected.

Parameters:
channel - the channel
Throws:
java.lang.Exception - the exception

channelClosed

public void channelClosed(org.jboss.netty.channel.Channel channel)
                   throws java.lang.Exception
Channel closed.

Parameters:
channel - the channel
Throws:
java.lang.Exception - the exception

send

public void send(AbstractResponse abstractResponse,
                 org.jboss.netty.channel.Channel channel)
Send.

Parameters:
abstractResponse - the abstract response
channel - the channel

send

public void send(AbstractResponse abstractResponse)
Send.

Parameters:
abstractResponse - the abstract response

setBasisPersistenceHandler

public void setBasisPersistenceHandler(BasisPersistenceHandler basisPersistenceHandler)
Sets the basis persistence handler.

Parameters:
basisPersistenceHandler - the new basis persistence handler