Class JAXRResponseImpl

    • Field Detail

      • requestId

        protected String requestId
      • status

        protected int status
    • Constructor Detail

      • JAXRResponseImpl

        public JAXRResponseImpl()
        Creates new JAXRResponseImpl
    • Method Detail

      • setRequestId

        public void setRequestId​(String requestId)
        Sets the request id of the response. This is set before returning the response to the client.
      • getStatus

        public int getStatus()
                      throws JAXRException
        Returns the status of the response. Once delivered to a client the status may still be updated by the provider in the case of an asynchronous connection.
        Specified by:
        getStatus in interface JAXRResponse
        Returns:
        the status which is an integer enumerated value
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
        See Also:
        JAXRResponse.STATUS_SUCCESS
      • setStatus

        public void setStatus​(int status)
        Sets the status of the message. This is set before returning the response to the client, except when asynchronous connections are used. Then the status may be changed from STATUS_UNAVAILABLE to the final status.
      • isAvailable

        public boolean isAvailable()
                            throws JAXRException
        Returns true if a response is available, false otherwise. This is a polling method and must not block.
        Specified by:
        isAvailable in interface JAXRResponse
        Returns:
        true if the response is available; false otherwise
        Throws:
        JAXRException - If the JAXR provider encounters an internal error