org.lastbamboo.common.tcp.frame
Class TcpFrameLocalIoHandler

java.lang.Object
  extended by org.littleshoot.mina.common.IoHandlerAdapter
      extended by org.lastbamboo.common.tcp.frame.TcpFrameLocalIoHandler
All Implemented Interfaces:
org.littleshoot.mina.common.IoHandler

public class TcpFrameLocalIoHandler
extends org.littleshoot.mina.common.IoHandlerAdapter

IoHandler for local sockets to the HTTP server. There is one socket/session for each remote host we're exchanging data with. This effectively mimics the remote host connecting directly to the local HTTP server, with the data already extracted from the TURN messages and forwarded along these sockets.

This class is also responsible for wraping data from the HTTP server in TURN Send Indication messages.


Constructor Summary
TcpFrameLocalIoHandler(org.littleshoot.mina.common.IoSession ioSession)
          Creates a new TCP frame local IO handler.
 
Method Summary
 void exceptionCaught(org.littleshoot.mina.common.IoSession session, Throwable cause)
           
 void messageReceived(org.littleshoot.mina.common.IoSession session, Object message)
           
 void messageSent(org.littleshoot.mina.common.IoSession session, Object message)
           
 void sessionClosed(org.littleshoot.mina.common.IoSession session)
           
 void sessionCreated(org.littleshoot.mina.common.IoSession session)
           
 void sessionIdle(org.littleshoot.mina.common.IoSession session, org.littleshoot.mina.common.IdleStatus status)
           
 
Methods inherited from class org.littleshoot.mina.common.IoHandlerAdapter
sessionOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpFrameLocalIoHandler

public TcpFrameLocalIoHandler(org.littleshoot.mina.common.IoSession ioSession)
Creates a new TCP frame local IO handler.

Parameters:
ioSession - The connection to the remote host.
Method Detail

messageReceived

public void messageReceived(org.littleshoot.mina.common.IoSession session,
                            Object message)
Specified by:
messageReceived in interface org.littleshoot.mina.common.IoHandler
Overrides:
messageReceived in class org.littleshoot.mina.common.IoHandlerAdapter

messageSent

public void messageSent(org.littleshoot.mina.common.IoSession session,
                        Object message)
Specified by:
messageSent in interface org.littleshoot.mina.common.IoHandler
Overrides:
messageSent in class org.littleshoot.mina.common.IoHandlerAdapter

sessionClosed

public void sessionClosed(org.littleshoot.mina.common.IoSession session)
Specified by:
sessionClosed in interface org.littleshoot.mina.common.IoHandler
Overrides:
sessionClosed in class org.littleshoot.mina.common.IoHandlerAdapter

sessionCreated

public void sessionCreated(org.littleshoot.mina.common.IoSession session)
Specified by:
sessionCreated in interface org.littleshoot.mina.common.IoHandler
Overrides:
sessionCreated in class org.littleshoot.mina.common.IoHandlerAdapter

sessionIdle

public void sessionIdle(org.littleshoot.mina.common.IoSession session,
                        org.littleshoot.mina.common.IdleStatus status)
                 throws Exception
Specified by:
sessionIdle in interface org.littleshoot.mina.common.IoHandler
Overrides:
sessionIdle in class org.littleshoot.mina.common.IoHandlerAdapter
Throws:
Exception

exceptionCaught

public void exceptionCaught(org.littleshoot.mina.common.IoSession session,
                            Throwable cause)
Specified by:
exceptionCaught in interface org.littleshoot.mina.common.IoHandler
Overrides:
exceptionCaught in class org.littleshoot.mina.common.IoHandlerAdapter


Copyright © 2013 LittleShoot. All Rights Reserved.