Class Response
java.lang.Object
org.bgerp.action.base.form.Response
HTTP response object, may be JSON serialized.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(ClientEvent event) Add an event for frontend.voidaddPageable(Pageable<?> result) Adds search result to the response data, two objects with keys: 'page' and 'list'getData()Response data.Events for processing of frontend.Message forSTATUS_ERRORorSTATUS_MESSAGE.voidSet response data object.voidsetMessage(String message) voidSet status of request's execution.
-
Field Details
-
STATUS_OK
- See Also:
-
STATUS_ERROR
- See Also:
-
STATUS_MESSAGE
- See Also:
-
-
Constructor Details
-
Response
public Response()
-
-
Method Details
-
getStatus
- Returns:
-
setStatus
-
getMessage
-
setMessage
-
getEventList
-
addEvent
-
getData
-
setData
-
addPageable
Adds search result to the response data, two objects with keys: 'page' and 'list'- Parameters:
result-
-