public class Response extends ProtocolMessage
| Modifier and Type | Method and Description |
|---|---|
static Response |
create(Integer requestSeq,
Boolean success,
String command,
Integer seq) |
boolean |
equals(Object obj) |
Object |
getBody()
Contains request result if success is true and optional error details if success is false.
|
String |
getCommand()
The command requested.
|
String |
getMessage()
Contains the raw error in short form if 'success' is false.
|
int |
getRequestSeq()
Sequence number of the corresponding request.
|
int |
hashCode() |
boolean |
isSuccess()
Outcome of the request.
|
Response |
setBody(Object body) |
Response |
setCommand(String command) |
Response |
setMessage(String message) |
Response |
setRequestSeq(int requestSeq) |
Response |
setSuccess(boolean success) |
public int getRequestSeq()
public Response setRequestSeq(int requestSeq)
public boolean isSuccess()
public Response setSuccess(boolean success)
public String getCommand()
public String getMessage()
public Object getBody()
public boolean equals(Object obj)
equals in class ProtocolMessagepublic int hashCode()
hashCode in class ProtocolMessage