com.sun.sgs.impl.io
Class SocketConnectionListener

java.lang.Object
  extended by org.apache.mina.common.IoHandlerAdapter
      extended by com.sun.sgs.impl.io.SocketConnectionListener
All Implemented Interfaces:
org.apache.mina.common.IoHandler
Direct Known Subclasses:
SocketAcceptor.AcceptHandler, SocketConnector.ConnectorConnListner

 class SocketConnectionListener
extends org.apache.mina.common.IoHandlerAdapter

An adapter between an Apache MINA IoHandler and the SGS IO framework ConnectionListener. SocketHandlers exist one per Connection on the client Connector side, and exist one per Acceptor on the server side.


Constructor Summary
SocketConnectionListener()
           
 
Method Summary
 void exceptionCaught(org.apache.mina.common.IoSession session, Throwable exception)
          
 void messageReceived(org.apache.mina.common.IoSession session, Object message)
          
 void sessionClosed(org.apache.mina.common.IoSession session)
          
 void sessionOpened(org.apache.mina.common.IoSession session)
          
 
Methods inherited from class org.apache.mina.common.IoHandlerAdapter
messageSent, sessionCreated, sessionIdle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketConnectionListener

SocketConnectionListener()
Method Detail

sessionOpened

public void sessionOpened(org.apache.mina.common.IoSession session)
                   throws Exception

Forwards to ConnectionListener.connected(com.sun.sgs.io.Connection).

Specified by:
sessionOpened in interface org.apache.mina.common.IoHandler
Overrides:
sessionOpened in class org.apache.mina.common.IoHandlerAdapter
Throws:
Exception

sessionClosed

public void sessionClosed(org.apache.mina.common.IoSession session)
                   throws Exception

Forwards to ConnectionListener.disconnected(com.sun.sgs.io.Connection).

Specified by:
sessionClosed in interface org.apache.mina.common.IoHandler
Overrides:
sessionClosed in class org.apache.mina.common.IoHandlerAdapter
Throws:
Exception

exceptionCaught

public void exceptionCaught(org.apache.mina.common.IoSession session,
                            Throwable exception)
                     throws Exception

Forwards to ConnectionListener.exceptionThrown(com.sun.sgs.io.Connection, java.lang.Throwable).

Specified by:
exceptionCaught in interface org.apache.mina.common.IoHandler
Overrides:
exceptionCaught in class org.apache.mina.common.IoHandlerAdapter
Throws:
Exception

messageReceived

public void messageReceived(org.apache.mina.common.IoSession session,
                            Object message)
                     throws Exception

Obtains the CompleteMessageFilter for the associated Connection, and forwards incoming data to the filter's filterReceive method.

Specified by:
messageReceived in interface org.apache.mina.common.IoHandler
Overrides:
messageReceived in class org.apache.mina.common.IoHandlerAdapter
Throws:
Exception

Project Darkstar, Version 0.9.9.6
2013-07-29 20:55:54

Copyright © 2007-2013 Sun Microsystems, Inc. All rights reserved