openr66.client
Class RecvThroughHandler

java.lang.Object
  extended by openr66.client.RecvThroughHandler
Direct Known Subclasses:
TestRecvThroughClient.TestRecvThroughHandler, TestSendThroughForward.TestRecvThroughForwardHandler

public abstract class RecvThroughHandler
extends Object

Class to be implemented for RecvThroughClient

Author:
Frederic Bregier

Constructor Summary
RecvThroughHandler()
           
 
Method Summary
protected  byte[] getByte(org.jboss.netty.buffer.ChannelBuffer buffer)
          Facility function to read from buffer and transfer to an array of bytes
abstract  void writeChannelBuffer(org.jboss.netty.buffer.ChannelBuffer buffer)
          This method will be called for each valid packet received to be written
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecvThroughHandler

public RecvThroughHandler()
Method Detail

writeChannelBuffer

public abstract void writeChannelBuffer(org.jboss.netty.buffer.ChannelBuffer buffer)
                                 throws OpenR66ProtocolBusinessException
This method will be called for each valid packet received to be written

Parameters:
buffer -
Throws:
OpenR66ProtocolBusinessException - This exception has to be throw if any error occurs during write in business process.

getByte

protected byte[] getByte(org.jboss.netty.buffer.ChannelBuffer buffer)
Facility function to read from buffer and transfer to an array of bytes

Parameters:
buffer -
Returns:
the array of bytes


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.