
public class ErrorPacket extends AbstractLocalPacket
2 strings+1 error code: sheader,smiddle,code
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSECODE |
static int |
FORWARDCLOSECODE |
static int |
FORWARDCODE |
static int |
IGNORECODE |
end, header, middle| Constructor and Description |
|---|
ErrorPacket(String header,
String middle,
int code) |
| Modifier and Type | Method and Description |
|---|---|
void |
createEnd(LocalChannelReference lcr)
Prepare the End buffer
|
static ErrorPacket |
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 |
getSheader() |
String |
getSmiddle() |
byte |
getType() |
String |
toString() |
clear, getLocalPacket, retainpublic static final int IGNORECODE
public static final int CLOSECODE
public static final int FORWARDCODE
public static final int FORWARDCLOSECODE
public static ErrorPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf) throws OpenR66ProtocolPacketException
headerLength - middleLength - endLength - buf - 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 String toString()
toString in class AbstractLocalPacketpublic byte getType()
getType in class AbstractLocalPacketpublic String getSheader()
public String getSmiddle()
public int getCode()
Copyright © 2009–2020 Waarp. All rights reserved.