
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, retainpublic 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
OpenR66ProtocolPacketExceptionpublic void createEnd(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacketcreateEnd in class AbstractLocalPacketOpenR66ProtocolPacketExceptionpublic void createHeader(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacketcreateHeader in class AbstractLocalPacketOpenR66ProtocolPacketExceptionpublic void createMiddle(LocalChannelReference lcr) throws OpenR66ProtocolPacketException
AbstractLocalPacketcreateMiddle in class AbstractLocalPacketOpenR66ProtocolPacketExceptionpublic byte getType()
getType in class AbstractLocalPacketpublic String toString()
toString in class AbstractLocalPacketpublic 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.