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 intSTATUS_FAILUREstatic intSTATUS_LOGIN_INCORRECTstatic intSTATUS_LOGIN_REQUIREDstatic intSTATUS_LOGIN_SUCCESSstatic intSTATUS_MAX_LOGIN_ATTEMPTS_EXCEEDEDstatic intSTATUS_SERVER_TIMEOUTstatic intSTATUS_SUCCESSstatic intSTATUS_TRANSPORT_ERRORstatic intSTATUS_VALIDATION_ERROR
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(String fieldName, String errorMessage)Responsefail(String message)ObjectgetData()Map<String,String>getErrors()ObjectgetItem(int index)intgetOffset()intgetStatus()longgetTotal()voidsetData(Object data)voidsetErrors(Map<String,String> errors)voidsetException(Throwable throwable)voidsetOffset(int offset)voidsetStatus(int status)voidsetTotal(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)
-
-