openr66.protocol.localhandler.packet
Class ValidPacket
java.lang.Object
openr66.protocol.localhandler.packet.AbstractLocalPacket
openr66.protocol.localhandler.packet.ValidPacket
public class ValidPacket
- extends AbstractLocalPacket
Validation Message class for packet
2 strings and one byte: sheader,smiddle,send
- Author:
- frederic bregier
ValidPacket
public ValidPacket(String header,
String middle,
byte end)
- Parameters:
header
- middle
- end
-
createFromBuffer
public static ValidPacket createFromBuffer(int headerLength,
int middleLength,
int endLength,
org.jboss.netty.buffer.ChannelBuffer buf)
- Parameters:
headerLength
- middleLength
- endLength
- buf
-
- Returns:
- the new ValidPacket from buffer
createEnd
public void createEnd()
throws OpenR66ProtocolPacketException
- Description copied from class:
AbstractLocalPacket
- Prepare the End buffer
- Specified by:
createEnd
in class AbstractLocalPacket
- Throws:
OpenR66ProtocolPacketException
createHeader
public void createHeader()
throws OpenR66ProtocolPacketException
- Description copied from class:
AbstractLocalPacket
- Prepare the Header buffer
- Specified by:
createHeader
in class AbstractLocalPacket
- Throws:
OpenR66ProtocolPacketException
createMiddle
public void createMiddle()
throws OpenR66ProtocolPacketException
- Description copied from class:
AbstractLocalPacket
- Prepare the Middle buffer
- Specified by:
createMiddle
in class AbstractLocalPacket
- Throws:
OpenR66ProtocolPacketException
toString
public String toString()
- Specified by:
toString
in class AbstractLocalPacket
getType
public byte getType()
- Specified by:
getType
in class AbstractLocalPacket
- Returns:
- the type of Packet
getSheader
public String getSheader()
- Returns:
- the sheader
getSmiddle
public String getSmiddle()
- Returns:
- the smiddle
setSmiddle
public void setSmiddle(String smiddle)
- Parameters:
smiddle
-
getTypeValid
public byte getTypeValid()
- Returns:
- the type
Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.