Class OkHttpClientResponse

java.lang.Object
io.freefair.spring.okhttp.client.OkHttpClientResponse
All Implemented Interfaces:
Closeable, AutoCloseable, org.springframework.http.client.ClientHttpResponse, org.springframework.http.HttpInputMessage, org.springframework.http.HttpMessage

public class OkHttpClientResponse extends Object implements org.springframework.http.client.ClientHttpResponse
OkHttp based ClientHttpResponse implementation.
See Also:
  • Constructor Details

  • Method Details

    • getStatusCode

      public org.springframework.http.HttpStatusCode getStatusCode()
      Specified by:
      getStatusCode in interface org.springframework.http.client.ClientHttpResponse
    • getStatusText

      Specified by:
      getStatusText in interface org.springframework.http.client.ClientHttpResponse
    • 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

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

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