openr66.protocol.localhandler.packet
Class LocalPacketFactory

java.lang.Object
  extended by openr66.protocol.localhandler.packet.LocalPacketFactory

public class LocalPacketFactory
extends Object

Factory to create Packet according to type from a buffer

Author:
Frederic Bregier

Field Summary
static byte AUTHENTPACKET
           
static byte BANDWIDTHPACKET
           
static byte BUSINESSREQUESTPACKET
           
static byte CANCELPACKET
           
static byte CONFEXPORTPACKET
           
static byte CONFIMPORTPACKET
           
static byte CONNECTERRORPACKET
           
static byte DATAPACKET
           
static byte ENDREQUESTPACKET
           
static byte ENDTRANSFERPACKET
           
static byte ERRORPACKET
           
static byte INFORMATIONPACKET
           
static byte KEEPALIVEPACKET
           
static byte LOGPACKET
           
static byte LOGPURGEPACKET
           
static byte NOOPPACKET
           
static byte REQUESTPACKET
           
static byte REQUESTUSERPACKET
           
static byte SHUTDOWNPACKET
           
static byte STARTUPPACKET
           
static byte STOPPACKET
           
static byte TESTPACKET
           
static byte VALIDPACKET
           
 
Constructor Summary
LocalPacketFactory()
           
 
Method Summary
static AbstractLocalPacket createPacketFromChannelBuffer(int headerLength, int middleLength, int endLength, org.jboss.netty.buffer.ChannelBuffer buf)
          This method create a Packet from the ChannelBuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTHENTPACKET

public static final byte AUTHENTPACKET
See Also:
Constant Field Values

STARTUPPACKET

public static final byte STARTUPPACKET
See Also:
Constant Field Values

DATAPACKET

public static final byte DATAPACKET
See Also:
Constant Field Values

VALIDPACKET

public static final byte VALIDPACKET
See Also:
Constant Field Values

ERRORPACKET

public static final byte ERRORPACKET
See Also:
Constant Field Values

CONNECTERRORPACKET

public static final byte CONNECTERRORPACKET
See Also:
Constant Field Values

REQUESTPACKET

public static final byte REQUESTPACKET
See Also:
Constant Field Values

SHUTDOWNPACKET

public static final byte SHUTDOWNPACKET
See Also:
Constant Field Values

STOPPACKET

public static final byte STOPPACKET
See Also:
Constant Field Values

CANCELPACKET

public static final byte CANCELPACKET
See Also:
Constant Field Values

CONFEXPORTPACKET

public static final byte CONFEXPORTPACKET
See Also:
Constant Field Values

CONFIMPORTPACKET

public static final byte CONFIMPORTPACKET
See Also:
Constant Field Values

TESTPACKET

public static final byte TESTPACKET
See Also:
Constant Field Values

ENDTRANSFERPACKET

public static final byte ENDTRANSFERPACKET
See Also:
Constant Field Values

REQUESTUSERPACKET

public static final byte REQUESTUSERPACKET
See Also:
Constant Field Values

LOGPACKET

public static final byte LOGPACKET
See Also:
Constant Field Values

LOGPURGEPACKET

public static final byte LOGPURGEPACKET
See Also:
Constant Field Values

INFORMATIONPACKET

public static final byte INFORMATIONPACKET
See Also:
Constant Field Values

BANDWIDTHPACKET

public static final byte BANDWIDTHPACKET
See Also:
Constant Field Values

ENDREQUESTPACKET

public static final byte ENDREQUESTPACKET
See Also:
Constant Field Values

KEEPALIVEPACKET

public static final byte KEEPALIVEPACKET
See Also:
Constant Field Values

BUSINESSREQUESTPACKET

public static final byte BUSINESSREQUESTPACKET
See Also:
Constant Field Values

NOOPPACKET

public static final byte NOOPPACKET
See Also:
Constant Field Values
Constructor Detail

LocalPacketFactory

public LocalPacketFactory()
Method Detail

createPacketFromChannelBuffer

public static AbstractLocalPacket createPacketFromChannelBuffer(int headerLength,
                                                                int middleLength,
                                                                int endLength,
                                                                org.jboss.netty.buffer.ChannelBuffer buf)
                                                         throws OpenR66ProtocolPacketException
This method create a Packet from the ChannelBuffer.

Parameters:
headerLength - length of the header from the current position of the buffer
middleLength -
endLength -
buf -
Returns:
the newly created Packet
Throws:
OpenR66ProtocolPacketException


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