public class SimpleResponseParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
data |
protected Flag |
flag |
protected Operation |
operation |
protected ResponseCode |
result |
protected int |
token |
Modifier | Constructor and Description |
---|---|
protected |
SimpleResponseParser(byte[] response,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
Operation |
getOperation() |
ResponseCode |
getResult() |
int |
getToken() |
static SimpleResponseParser |
of(byte[] response) |
static SimpleResponseParser |
of(byte[] response,
java.lang.String password) |
protected byte[] data
protected ResponseCode result
protected int token
protected Flag flag
protected Operation operation
protected SimpleResponseParser(byte[] response, java.lang.String password) throws InvalidConfigException
InvalidConfigException
public static SimpleResponseParser of(byte[] response) throws InvalidConfigException
InvalidConfigException
public static SimpleResponseParser of(byte[] response, java.lang.String password) throws InvalidConfigException
InvalidConfigException
public ResponseCode getResult()
public int getToken()
public Operation getOperation()