Class BufferingClientHttpResponseWrapper

java.lang.Object
org.zalando.logbook.spring.BufferingClientHttpResponseWrapper
All Implemented Interfaces:
Closeable, AutoCloseable, org.springframework.http.client.ClientHttpResponse, org.springframework.http.HttpInputMessage, org.springframework.http.HttpMessage

public class BufferingClientHttpResponseWrapper extends Object implements org.springframework.http.client.ClientHttpResponse
  • Constructor Details

    • BufferingClientHttpResponseWrapper

      public BufferingClientHttpResponseWrapper(org.springframework.http.client.ClientHttpResponse delegate) throws IOException
      Throws:
      IOException
  • Method Details

    • getStatusCode

      @Nonnull public org.springframework.http.HttpStatusCode getStatusCode() throws IOException
      Specified by:
      getStatusCode in interface org.springframework.http.client.ClientHttpResponse
      Throws:
      IOException
    • getRawStatusCode

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

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

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

      @Nonnull public InputStream getBody()
      Specified by:
      getBody in interface org.springframework.http.HttpInputMessage
    • getHeaders

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