类 DefaultClientHttpResponse
java.lang.Object
com.alibaba.nacos.common.http.client.response.DefaultClientHttpResponse
- 所有已实现的接口:
HttpClientResponse,Closeable,AutoCloseable
ApacheClientHttpResponse implementation
HttpClientResponse.- 作者:
- mai.jh
-
构造器详细资料
-
DefaultClientHttpResponse
public DefaultClientHttpResponse(org.apache.http.HttpResponse response)
-
-
方法详细资料
-
getStatusCode
public int getStatusCode()从接口复制的说明:HttpClientResponseReturn the HTTP status code.- 指定者:
getStatusCode在接口中HttpClientResponse- 返回:
- the HTTP status as an integer
-
getStatusText
从接口复制的说明:HttpClientResponseReturn the HTTP status text of the response.- 指定者:
getStatusText在接口中HttpClientResponse- 返回:
- the HTTP status text
-
getHeaders
从接口复制的说明:HttpClientResponseReturn the headers of this message.- 指定者:
getHeaders在接口中HttpClientResponse- 返回:
- a corresponding HttpHeaders object (never
null)
-
getBody
从接口复制的说明:HttpClientResponseReturn the body of the message as an input stream.- 指定者:
getBody在接口中HttpClientResponse- 返回:
- String response body
- 抛出:
IOException- IOException
-
close
public void close()从接口复制的说明:HttpClientResponseclose response InputStream.- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 指定者:
close在接口中HttpClientResponse
-