Class Response


  • public class Response
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Response()  
      Response​(org.springframework.http.HttpStatus statusCode, org.springframework.http.HttpHeaders headers, byte[] body)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBody()  
      org.springframework.http.HttpHeaders getHeaders()  
      org.springframework.http.HttpStatus getStatusCode()  
      void setBody​(byte[] body)  
      void setHeaders​(org.springframework.http.HttpHeaders headers)  
      void setStatusCode​(org.springframework.http.HttpStatus statusCode)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Response

        public Response()
      • Response

        public Response​(org.springframework.http.HttpStatus statusCode,
                        org.springframework.http.HttpHeaders headers,
                        byte[] body)
        Parameters:
        statusCode -
        headers -
        body -
    • Method Detail

      • getStatusCode

        public org.springframework.http.HttpStatus getStatusCode()
        Returns:
        the statusCode
      • setStatusCode

        public void setStatusCode​(org.springframework.http.HttpStatus statusCode)
        Parameters:
        statusCode - the statusCode to set
      • getHeaders

        public org.springframework.http.HttpHeaders getHeaders()
        Returns:
        the headers
      • setHeaders

        public void setHeaders​(org.springframework.http.HttpHeaders headers)
        Parameters:
        headers - the headers to set
      • getBody

        public byte[] getBody()
        Returns:
        the body
      • setBody

        public void setBody​(byte[] body)
        Parameters:
        body - the body to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object