Class SentinelClientHttpResponse

java.lang.Object
com.alibaba.cloud.sentinel.rest.SentinelClientHttpResponse
All Implemented Interfaces:
Closeable, AutoCloseable, org.springframework.http.client.ClientHttpResponse, org.springframework.http.HttpInputMessage, org.springframework.http.HttpMessage

public class SentinelClientHttpResponse extends Object implements org.springframework.http.client.ClientHttpResponse
Author:
Jim
  • Constructor Details

    • SentinelClientHttpResponse

      public SentinelClientHttpResponse()
    • SentinelClientHttpResponse

      public SentinelClientHttpResponse(String blockResponse)
  • Method Details

    • getRawStatusCode

      public int getRawStatusCode() throws IOException
      Throws:
      IOException
    • getStatusCode

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

      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

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

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