Class JAXRResponseImpl

  • All Implemented Interfaces:
    javax.xml.registry.JAXRResponse
    Direct Known Subclasses:
    BulkResponseImpl

    public class JAXRResponseImpl
    extends Object
    implements javax.xml.registry.JAXRResponse
    Version:
    Author:
    kwalsh
    • Field Detail

      • requestId

        protected String requestId
      • status

        protected int status
    • Constructor Detail

      • JAXRResponseImpl

        public JAXRResponseImpl()
        Creates new JAXRResponseImpl
    • Method Detail

      • getRequestId

        public String getRequestId()
                            throws javax.xml.registry.JAXRException
        Returns the request id of the bulk response.
        Specified by:
        getRequestId in interface javax.xml.registry.JAXRResponse
        Throws:
        javax.xml.registry.JAXRException
      • 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 javax.xml.registry.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 javax.xml.registry.JAXRResponse
        Throws:
        javax.xml.registry.JAXRException
      • 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 javax.xml.registry.JAXRException
        Returns true if a response is available, false otherwise. This is a polling method and must not block.
        Specified by:
        isAvailable in interface javax.xml.registry.JAXRResponse
        Throws:
        javax.xml.registry.JAXRException