openr66.protocol.localhandler.packet
Class EndRequestPacket
java.lang.Object
openr66.protocol.localhandler.packet.AbstractLocalPacket
openr66.protocol.localhandler.packet.EndRequestPacket
public class EndRequestPacket
- extends AbstractLocalPacket
End of Request class
header = Error.code middle = way end = might be empty
- Author:
- frederic bregier
EndRequestPacket
public EndRequestPacket(int code)
- Parameters:
code
-
createFromBuffer
public static EndRequestPacket 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
getCode
public int getCode()
- Returns:
- the code
isToValidate
public boolean isToValidate()
- Returns:
- True if this packet is to be validated
validate
public void validate()
- Validate the connection
getOptional
public String getOptional()
- Returns:
- the optional
setOptional
public void setOptional(String optional)
- Parameters:
optional
- the optional to set
Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.