org.lastbamboo.common.tcp.frame
Class TcpFrameIoHandler

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

public class TcpFrameIoHandler
extends org.littleshoot.util.mina.SocketIoHandler

IoHandler that reads framed TCP messages and makes the bytes from those messages available.


Constructor Summary
TcpFrameIoHandler()
          Creates a new TcpFrameIoHandler.
 
Method Summary
 void messageReceived(org.littleshoot.mina.common.IoSession session, Object message)
           
 void messageSent(org.littleshoot.mina.common.IoSession session, Object message)
           
 String toString()
           
 
Methods inherited from class org.littleshoot.util.mina.SocketIoHandler
exceptionCaught, getReadTimeout, getWriteTimeout, sessionClosed, sessionIdle, sessionOpened, setReadTimeout, setWriteTimeout
 
Methods inherited from class org.littleshoot.mina.common.IoHandlerAdapter
sessionCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcpFrameIoHandler

public TcpFrameIoHandler()
Creates a new TcpFrameIoHandler.

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.util.mina.SocketIoHandler

messageSent

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 LittleShoot. All Rights Reserved.