Package com.axelor.rpc
Class Response
- java.lang.Object
-
- com.axelor.rpc.Response
-
- Direct Known Subclasses:
ActionResponse
public class Response extends Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
STATUS_FAILURE
public static int STATUS_FAILURE
-
STATUS_LOGIN_INCORRECT
public static int STATUS_LOGIN_INCORRECT
-
STATUS_LOGIN_REQUIRED
public static int STATUS_LOGIN_REQUIRED
-
STATUS_LOGIN_SUCCESS
public static int STATUS_LOGIN_SUCCESS
-
STATUS_MAX_LOGIN_ATTEMPTS_EXCEEDED
public static int STATUS_MAX_LOGIN_ATTEMPTS_EXCEEDED
-
STATUS_SERVER_TIMEOUT
public static int STATUS_SERVER_TIMEOUT
-
STATUS_SUCCESS
public static int STATUS_SUCCESS
-
STATUS_TRANSPORT_ERROR
public static int STATUS_TRANSPORT_ERROR
-
STATUS_VALIDATION_ERROR
public static int STATUS_VALIDATION_ERROR
-
-
Method Detail
-
getStatus
public int getStatus()
-
setStatus
public void setStatus(int status)
-
getOffset
public int getOffset()
-
setOffset
public void setOffset(int offset)
-
getTotal
public long getTotal()
-
setTotal
public void setTotal(long count)
-
getData
public Object getData()
-
setData
public void setData(Object data)
-
setException
public void setException(Throwable throwable)
-
getItem
public Object getItem(int index)
-
-