public class BusinessRequestPacket extends AbstractLocalPacket
1 string and on integer and one byte:
- sheader = full text with class at first place, following (space separated)
by extra arguments - smiddle =
integer - send = byte
end, header, middle
Constructor and Description |
---|
BusinessRequestPacket(String header,
int delay) |
BusinessRequestPacket(String header,
int delay,
byte way) |
Modifier and Type | Method and Description |
---|---|
void |
createEnd(LocalChannelReference lcr)
Prepare the End buffer
|
static BusinessRequestPacket |
createFromBuffer(int headerLength,
int middleLength,
int endLength,
io.netty.buffer.ByteBuf buf) |
void |
createHeader(LocalChannelReference lcr)
Prepare the Header buffer
|
void |
createMiddle(LocalChannelReference lcr)
Prepare the Middle buffer
|
int |
getDelay() |
String |
getSheader() |
byte |
getType() |
void |
invalidate()
Invalidate the request
|
boolean |
isToValidate() |
void |
setDelay(int delay) |
String |
toString() |
void |
validate()
Validate the request
|
clear, getLocalPacket, retain
public BusinessRequestPacket(String header, int delay, byte way)
public BusinessRequestPacket(String header, int delay)
public static BusinessRequestPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf) throws OpenR66ProtocolPacketException
OpenR66ProtocolPacketException
public void createEnd(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacket
createEnd
in class AbstractLocalPacket
OpenR66ProtocolPacketException
public void createHeader(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacket
createHeader
in class AbstractLocalPacket
OpenR66ProtocolPacketException
public void createMiddle(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacket
createMiddle
in class AbstractLocalPacket
OpenR66ProtocolPacketException
public byte getType()
getType
in class AbstractLocalPacket
public String toString()
toString
in class AbstractLocalPacket
public boolean isToValidate()
public void validate()
public void invalidate()
public String getSheader()
public int getDelay()
public void setDelay(int delay)
delay
- the delay to setCopyright © 2009–2020 Waarp. All rights reserved.