openr66.protocol.localhandler.packet
Class EndTransferPacket

java.lang.Object
  extended by openr66.protocol.localhandler.packet.AbstractLocalPacket
      extended by openr66.protocol.localhandler.packet.EndTransferPacket

public class EndTransferPacket
extends AbstractLocalPacket

End of Transfer class header = "request" middle = way end = empty

Author:
frederic bregier

Field Summary
 
Fields inherited from class openr66.protocol.localhandler.packet.AbstractLocalPacket
end, header, middle
 
Constructor Summary
EndTransferPacket(byte request)
           
 
Method Summary
 void createEnd()
          Prepare the End buffer
static EndTransferPacket createFromBuffer(int headerLength, int middleLength, int endLength, org.jboss.netty.buffer.ChannelBuffer buf)
           
 void createHeader()
          Prepare the Header buffer
 void createMiddle()
          Prepare the Middle buffer
 byte getRequest()
           
 byte getType()
           
 boolean isToValidate()
           
 String toString()
           
 void validate()
          Validate the connection
 
Methods inherited from class openr66.protocol.localhandler.packet.AbstractLocalPacket
getLocalPacket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EndTransferPacket

public EndTransferPacket(byte request)
Parameters:
request -
Method Detail

createFromBuffer

public static EndTransferPacket createFromBuffer(int headerLength,
                                                 int middleLength,
                                                 int endLength,
                                                 org.jboss.netty.buffer.ChannelBuffer buf)
                                          throws OpenR66ProtocolPacketException
Parameters:
headerLength -
middleLength -
endLength -
buf -
Returns:
the new EndTransferPacket from buffer
Throws:
OpenR66ProtocolPacketException

createEnd

public void createEnd()
Description copied from class: AbstractLocalPacket
Prepare the End buffer

Specified by:
createEnd in class AbstractLocalPacket

createHeader

public void createHeader()
Description copied from class: AbstractLocalPacket
Prepare the Header buffer

Specified by:
createHeader in class AbstractLocalPacket

createMiddle

public void createMiddle()
Description copied from class: AbstractLocalPacket
Prepare the Middle buffer

Specified by:
createMiddle in class AbstractLocalPacket

getType

public byte getType()
Specified by:
getType in class AbstractLocalPacket
Returns:
the type of Packet

toString

public String toString()
Specified by:
toString in class AbstractLocalPacket

getRequest

public byte getRequest()
Returns:
the requestId

isToValidate

public boolean isToValidate()
Returns:
True if this packet is to be validated

validate

public void validate()
Validate the connection



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