Class DefaultOutboundRequestResponseInterceptor.WrappedClientHttpResponse

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.springframework.http.client.ClientHttpResponse, org.springframework.http.HttpInputMessage, org.springframework.http.HttpMessage
    Enclosing class:
    DefaultOutboundRequestResponseInterceptor

    public static class DefaultOutboundRequestResponseInterceptor.WrappedClientHttpResponse
    extends java.lang.Object
    implements org.springframework.http.client.ClientHttpResponse
    • Constructor Summary

      Constructors 
      Constructor Description
      WrappedClientHttpResponse​(org.springframework.http.client.ClientHttpResponse clientHttpResponse)  
    • Constructor Detail

      • WrappedClientHttpResponse

        public WrappedClientHttpResponse​(org.springframework.http.client.ClientHttpResponse clientHttpResponse)
    • Method Detail

      • getStatusCode

        public org.springframework.http.HttpStatus getStatusCode()
                                                          throws java.io.IOException
        Specified by:
        getStatusCode in interface org.springframework.http.client.ClientHttpResponse
        Throws:
        java.io.IOException
      • getRawStatusCode

        public int getRawStatusCode()
                             throws java.io.IOException
        Specified by:
        getRawStatusCode in interface org.springframework.http.client.ClientHttpResponse
        Throws:
        java.io.IOException
      • getStatusText

        public java.lang.String getStatusText()
                                       throws java.io.IOException
        Specified by:
        getStatusText in interface org.springframework.http.client.ClientHttpResponse
        Throws:
        java.io.IOException
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface org.springframework.http.client.ClientHttpResponse
        Specified by:
        close in interface java.io.Closeable
      • getBody

        public java.io.InputStream getBody()
                                    throws java.io.IOException
        Specified by:
        getBody in interface org.springframework.http.HttpInputMessage
        Throws:
        java.io.IOException
      • getHeaders

        public org.springframework.http.HttpHeaders getHeaders()
        Specified by:
        getHeaders in interface org.springframework.http.HttpMessage