Class ResourceHandler

    • Method Detail

      • getResource

        public jakarta.json.JsonObject getResource()
        Returns a JsonObject containing the response to the request given to the implementing class. The response is made up of a request object and a value object. In some cases the value object is removed in the case of an exception and replaced with an error object.
        Returns:
        The JsonObject containing the response to the request.
      • setStatus

        protected void setStatus​(jakarta.ws.rs.core.Response.Status status)
      • getTraceObject

        protected jakarta.json.JsonObject getTraceObject​(Exception exception)
                                                  throws jakarta.json.JsonException
        Gets the JsonObject containing information about the exception passed
        Throws:
        jakarta.json.JsonException