Class BaseResponse

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String entity  
      protected jakarta.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> headers  
      protected java.lang.String location  
      protected int status  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        BaseResponse()  
        BaseResponse​(int status)
      Deprecated.
      protected BaseResponse​(jakarta.ws.rs.core.Response clientResponse)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEntity()
      Returns the entity or body content of the response.
      jakarta.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> getHeaders()  
      java.lang.String getLocation()
      Returns the location of the response in the header.
      int getStatus()
      Returns the HTTP status code of the response.
      void setEntity​(java.lang.String entity)
      Sets the entity or body content of the response.
      void setHeaders​(jakarta.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> headers)  
      void setLocation​(java.lang.String location)
      Sets the location of the response in the header.
      void setStatus​(int status)
      Sets the HTTP status code of the response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • status

        protected int status
      • location

        protected java.lang.String location
      • entity

        protected java.lang.String entity
      • headers

        protected jakarta.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.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 java.lang.String getLocation()
        Returns the location of the response in the header.
        Returns:
        The location of the response.
      • setLocation

        public void setLocation​(java.lang.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 java.lang.String getEntity()
        Returns the entity or body content of the response.
        Returns:
        The entity or body content of the response.
      • setEntity

        public void setEntity​(java.lang.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<java.lang.String,​java.lang.Object> getHeaders()
      • setHeaders

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