public class Response extends Object
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_FAILURE |
static int |
STATUS_LOGIN_INCORRECT |
static int |
STATUS_LOGIN_REQUIRED |
static int |
STATUS_LOGIN_SUCCESS |
static int |
STATUS_MAX_LOGIN_ATTEMPTS_EXCEEDED |
static int |
STATUS_SERVER_TIMEOUT |
static int |
STATUS_SUCCESS |
static int |
STATUS_TRANSPORT_ERROR |
static int |
STATUS_VALIDATION_ERROR |
Constructor and Description |
---|
Response() |
Modifier and Type | Method and Description |
---|---|
void |
addError(String fieldName,
String errorMessage) |
Response |
fail(String message) |
Object |
getData() |
Map<String,String> |
getErrors() |
Object |
getItem(int index) |
int |
getOffset() |
int |
getStatus() |
long |
getTotal() |
void |
setData(Object data) |
void |
setErrors(Map<String,String> errors) |
void |
setException(Throwable throwable) |
void |
setOffset(int offset) |
void |
setStatus(int status) |
void |
setTotal(long count) |
public static int STATUS_FAILURE
public static int STATUS_LOGIN_INCORRECT
public static int STATUS_LOGIN_REQUIRED
public static int STATUS_LOGIN_SUCCESS
public static int STATUS_MAX_LOGIN_ATTEMPTS_EXCEEDED
public static int STATUS_SERVER_TIMEOUT
public static int STATUS_SUCCESS
public static int STATUS_TRANSPORT_ERROR
public static int STATUS_VALIDATION_ERROR
public int getStatus()
public void setStatus(int status)
public int getOffset()
public void setOffset(int offset)
public long getTotal()
public void setTotal(long count)
public Object getData()
public void setData(Object data)
public void setException(Throwable throwable)
public Object getItem(int index)