类 BufferingClientHttpRequestWrapper
java.lang.Object
cn.taketoday.http.client.AbstractClientHttpRequest
cn.taketoday.http.client.AbstractBufferingClientHttpRequest
cn.taketoday.http.client.BufferingClientHttpRequestWrapper
- 所有已实现的接口:
ClientHttpRequest,HttpMessage,HttpOutputMessage,HttpRequest
Simple implementation of
ClientHttpRequest that wraps another request.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected ClientHttpResponseexecuteInternal(HttpHeaders headers, byte[] bufferedOutput) Abstract template method that writes the given headers and content to the HTTP request.Return the HTTP method of the request.Return the HTTP method of the request as a String value.getURI()Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).从类继承的方法 cn.taketoday.http.client.AbstractBufferingClientHttpRequest
executeInternal, getBodyInternal从类继承的方法 cn.taketoday.http.client.AbstractClientHttpRequest
assertNotExecuted, execute, getBody, getHeaders
-
字段详细资料
-
request
-
-
构造器详细资料
-
BufferingClientHttpRequestWrapper
BufferingClientHttpRequestWrapper(ClientHttpRequest request)
-
-
方法详细资料
-
getMethod
从接口复制的说明:HttpRequestReturn the HTTP method of the request.- 返回:
- the HTTP method as an HttpMethod value
- 另请参阅:
-
getMethodValue
从接口复制的说明:HttpRequestReturn the HTTP method of the request as a String value.- 返回:
- the HTTP method as a plain String
- 另请参阅:
-
getURI
从接口复制的说明:HttpRequestReturn the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).- 返回:
- the URI of the request (never
null)
-
executeInternal
protected ClientHttpResponse executeInternal(HttpHeaders headers, byte[] bufferedOutput) throws IOException 从类复制的说明:AbstractBufferingClientHttpRequestAbstract template method that writes the given headers and content to the HTTP request.- 指定者:
executeInternal在类中AbstractBufferingClientHttpRequest- 参数:
headers- the HTTP headersbufferedOutput- the body content- 返回:
- the response object for the executed request
- 抛出:
IOException
-