类 HttpComponentsClientHttpResponse
java.lang.Object
cn.taketoday.http.client.HttpComponentsClientHttpResponse
- 所有已实现的接口:
ClientHttpResponse,HttpInputMessage,HttpMessage,Closeable,AutoCloseable
ClientHttpResponse implementation based on
Apache HttpComponents HttpClient.
Created via the HttpComponentsClientHttpRequest.
- 从以下版本开始:
- 4.0
- 作者:
- Oleg Kalnichevski, Arjen Poutsma, Harry Yang
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclose()Close this response, freeing any resources created.getBody()Return the body of the message as an input stream.Return the headers of this message.Get the HTTP status code as anHttpStatusCode.Get the HTTP status text of the response.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.http.client.ClientHttpResponse
getRawStatusCode
-
字段详细资料
-
httpResponse
private final org.apache.hc.core5.http.ClassicHttpResponse httpResponse -
headers
-
-
构造器详细资料
-
HttpComponentsClientHttpResponse
HttpComponentsClientHttpResponse(org.apache.hc.core5.http.ClassicHttpResponse httpResponse)
-
-
方法详细资料
-
getStatusCode
从接口复制的说明:ClientHttpResponseGet the HTTP status code as anHttpStatusCode.- 指定者:
getStatusCode在接口中ClientHttpResponse- 返回:
- the HTTP status as
HttpStatusCodevalue (nevernull)
-
getStatusText
从接口复制的说明:ClientHttpResponseGet the HTTP status text of the response.- 指定者:
getStatusText在接口中ClientHttpResponse- 返回:
- the HTTP status text
-
getHeaders
从接口复制的说明:HttpMessageReturn the headers of this message.- 指定者:
getHeaders在接口中HttpMessage- 返回:
- a corresponding HttpHeaders object (never
null)
-
getBody
从接口复制的说明:HttpInputMessageReturn the body of the message as an input stream.- 指定者:
getBody在接口中HttpInputMessage- 返回:
- the input stream body (never
null) - 抛出:
IOException- in case of I/O errors
-
close
public void close()从接口复制的说明:ClientHttpResponseClose this response, freeing any resources created.- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中ClientHttpResponse- 指定者:
close在接口中Closeable
-