Class Response


  • public class Response
    extends java.lang.Object
    HTTP response object, may be JSON serialized.
    • Constructor Detail

      • Response

        public Response()
    • Method Detail

      • setStatus

        public void setStatus​(java.lang.String status)
        Set status of request's execution.
        Parameters:
        status -
      • setMessage

        public void setMessage​(java.lang.String message)
      • getEventList

        public java.util.List<ClientEvent> getEventList()
        Events for processing of frontend.
        Returns:
      • addEvent

        public void addEvent​(ClientEvent event)
        Add an event for frontend.
        Parameters:
        event -
      • getData

        public java.util.Map<java.lang.String,​java.lang.Object> getData()
        Response data. May be serialized to JSON, or available on JSP page.
        Returns:
      • setData

        public void setData​(java.lang.String key,
                            java.lang.Object data)
        Set response data object.
        Parameters:
        key -
        data -
      • addSearchResult

        public void addSearchResult​(SearchResult<?> result)
        Adds search result to the response data, two objects with keys: 'page' and 'list'
        Parameters:
        result -