public class JsonCommandPacket extends AbstractLocalPacket
2 strings and one byte: request,result,send
EMPTY_ARRAY, end, global, header, LOCAL_HEADER_SIZE, 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 |
createAllBuffers(LocalChannelReference lcr,
int networkHeader)
Prepare the 3 buffers Header, Middle and End
|
static JsonCommandPacket |
createFromBuffer(int headerLength,
int middleLength,
int endLength,
io.netty.buffer.ByteBuf buf) |
JsonPacket |
getJsonRequest() |
String |
getRequest() |
String |
getResult() |
byte |
getType() |
byte |
getTypeValid() |
boolean |
hasGlobalBuffer() |
void |
setResult(String result) |
String |
toString() |
clear, createEnd, createHeader, createMiddle, getLocalPacket, getLocalPacketForNetworkPacket, retain
public 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 final boolean hasGlobalBuffer()
hasGlobalBuffer
in class AbstractLocalPacket
public final void createAllBuffers(LocalChannelReference lcr, int networkHeader)
AbstractLocalPacket
createAllBuffers
in class AbstractLocalPacket
public final String toString()
toString
in class AbstractLocalPacket
public final byte getType()
getType
in class AbstractLocalPacket
public final JsonPacket getJsonRequest()
public final void setResult(String result)
result
- public final String getRequest()
public final String getResult()
public final byte getTypeValid()
Copyright © 2009–2022 Waarp. All rights reserved.