类 ClientHttpResponseDecorator
java.lang.Object
cn.taketoday.http.client.ClientHttpResponseDecorator
- 所有已实现的接口:
ClientHttpResponse,HttpInputMessage,HttpMessage,Closeable,AutoCloseable
ClientHttpResponse Decorator
- 从以下版本开始:
- 4.0 2022/2/9 14:57
- 作者:
- 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.intGet the HTTP status code (potentially non-standard and not resolvable through theHttpStatusCodeenum) as an integer.Get the HTTP status code as anHttpStatusCode.Get the HTTP status text of the response.
-
字段详细资料
-
delegate
-
-
构造器详细资料
-
ClientHttpResponseDecorator
-
-
方法详细资料
-
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
-
getHeaders
从接口复制的说明:HttpMessageReturn the headers of this message.- 指定者:
getHeaders在接口中HttpMessage- 返回:
- a corresponding HttpHeaders object (never
null)
-
getStatusCode
从接口复制的说明:ClientHttpResponseGet the HTTP status code as anHttpStatusCode.- 指定者:
getStatusCode在接口中ClientHttpResponse- 返回:
- the HTTP status as
HttpStatusCodevalue (nevernull) - 抛出:
IOException- in case of I/O errors
-
getRawStatusCode
从接口复制的说明:ClientHttpResponseGet the HTTP status code (potentially non-standard and not resolvable through theHttpStatusCodeenum) as an integer.- 指定者:
getRawStatusCode在接口中ClientHttpResponse- 返回:
- the HTTP status as an integer value
- 抛出:
IOException- in case of I/O errors- 另请参阅:
-
getStatusText
从接口复制的说明:ClientHttpResponseGet the HTTP status text of the response.- 指定者:
getStatusText在接口中ClientHttpResponse- 返回:
- the HTTP status text
- 抛出:
IOException- in case of I/O errors
-
close
public void close()从接口复制的说明:ClientHttpResponseClose this response, freeing any resources created.- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中ClientHttpResponse- 指定者:
close在接口中Closeable
-
getDelegate
-