
public class EndRequestPacket extends AbstractLocalPacket
header = Error.code middle = way end = might be empty
end, header, middle| Constructor and Description |
|---|
EndRequestPacket(int code) |
| Modifier and Type | Method and Description |
|---|---|
void |
createEnd(LocalChannelReference lcr)
Prepare the End buffer
|
static EndRequestPacket |
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 |
getCode() |
String |
getOptional() |
byte |
getType() |
boolean |
isToValidate() |
void |
setOptional(String optional) |
String |
toString() |
void |
validate()
Validate the connection
|
clear, getLocalPacket, retainpublic static EndRequestPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf) throws OpenR66ProtocolPacketException
headerLength - middleLength - endLength - buf - OpenR66ProtocolPacketExceptionpublic void createEnd(LocalChannelReference lcr)
AbstractLocalPacketcreateEnd in class AbstractLocalPacketpublic void createHeader(LocalChannelReference lcr)
AbstractLocalPacketcreateHeader in class AbstractLocalPacketpublic void createMiddle(LocalChannelReference lcr)
AbstractLocalPacketcreateMiddle in class AbstractLocalPacketpublic byte getType()
getType in class AbstractLocalPacketpublic String toString()
toString in class AbstractLocalPacketpublic int getCode()
public boolean isToValidate()
public void validate()
public String getOptional()
public void setOptional(String optional)
optional - the optional to setCopyright © 2009–2020 Waarp. All rights reserved.