
public class JsonCommandPacket extends AbstractLocalPacket
2 strings and one byte: request,result,send
end, header, middle| Constructor and Description |
|---|
JsonCommandPacket(JsonPacket jrequest,
byte end) |
JsonCommandPacket(JsonPacket jrequest,
String sresult,
byte end) |
JsonCommandPacket(String srequest,
String sresult,
byte end) |
| Modifier and Type | Method and Description |
|---|---|
void |
createEnd(LocalChannelReference lcr)
Prepare the End buffer
|
static JsonCommandPacket |
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
|
JsonPacket |
getJsonRequest() |
String |
getRequest() |
String |
getResult() |
byte |
getType() |
byte |
getTypeValid() |
void |
setResult(String result) |
String |
toString() |
clear, getLocalPacket, retainpublic JsonCommandPacket(String srequest, String sresult, byte end)
srequest - sresult - end - public JsonCommandPacket(JsonPacket jrequest, byte end)
jrequest - end - public JsonCommandPacket(JsonPacket jrequest, String sresult, byte end)
jrequest - sresult - end - public static JsonCommandPacket createFromBuffer(int headerLength, int middleLength, int endLength, io.netty.buffer.ByteBuf buf)
headerLength - middleLength - endLength - buf - public 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 JsonPacket getJsonRequest()
public void setResult(String result)
result - public String getRequest()
public String getResult()
public byte getTypeValid()
Copyright © 2009–2020 Waarp. All rights reserved.