public class EndTransferPacket extends AbstractLocalPacket
header = "request" middle = way end = might be empty
end, header, middle
Constructor and Description |
---|
EndTransferPacket(byte request) |
EndTransferPacket(byte request,
String hashOptional) |
Modifier and Type | Method and Description |
---|---|
void |
createEnd(LocalChannelReference lcr)
Prepare the End buffer
|
static EndTransferPacket |
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
|
String |
getOptional() |
byte |
getRequest() |
byte |
getType() |
boolean |
isToValidate() |
void |
setOptional(String optional) |
String |
toString() |
void |
validate()
Validate the connection
|
clear, getLocalPacket, retain
public EndTransferPacket(byte request)
request
- public EndTransferPacket(byte request, String hashOptional)
request
- hashOptional
- public static EndTransferPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf) throws OpenR66ProtocolPacketException
headerLength
- middleLength
- endLength
- buf
- OpenR66ProtocolPacketException
public void createEnd(LocalChannelReference lcr)
AbstractLocalPacket
createEnd
in class AbstractLocalPacket
public void createHeader(LocalChannelReference lcr)
AbstractLocalPacket
createHeader
in class AbstractLocalPacket
public void createMiddle(LocalChannelReference lcr)
AbstractLocalPacket
createMiddle
in class AbstractLocalPacket
public byte getType()
getType
in class AbstractLocalPacket
public String toString()
toString
in class AbstractLocalPacket
public byte getRequest()
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.