Class BaseResponse

    • Field Detail

      • status

        protected int status
      • location

        protected String location
      • entity

        protected String entity
      • headers

        protected jakarta.ws.rs.core.MultivaluedMap<String,​Object> headers
    • Constructor Detail

      • BaseResponse

        public BaseResponse()
      • BaseResponse

        @Deprecated
        public BaseResponse​(int status)
        Deprecated.
      • BaseResponse

        protected BaseResponse​(jakarta.ws.rs.core.Response clientResponse)
    • Method Detail

      • getStatus

        public int getStatus()
        Returns the HTTP status code of the response.
        Returns:
        The HTTP status code.
      • getLocation

        public String getLocation()
        Returns the location of the response in the header.
        Returns:
        The location of the response.
      • setLocation

        public void setLocation​(String location)
        Sets the location of the response in the header.
        Parameters:
        location - The location of the response.
      • setStatus

        public void setStatus​(int status)
        Sets the HTTP status code of the response.
        Parameters:
        status - The HTTP status code.
      • getEntity

        public String getEntity()
        Returns the entity or body content of the response.
        Returns:
        The entity or body content of the response.
      • setEntity

        public void setEntity​(String entity)
        Sets the entity or body content of the response.
        Parameters:
        entity - The entity or body content of the response.
      • getHeaders

        public jakarta.ws.rs.core.MultivaluedMap<String,​Object> getHeaders()
      • setHeaders

        public void setHeaders​(jakarta.ws.rs.core.MultivaluedMap<String,​Object> headers)