类 HttpRequestDecorator
java.lang.Object
cn.taketoday.http.client.support.HttpRequestDecorator
- 所有已实现的接口:
HttpMessage,HttpRequest
- 直接已知子类:
RequestPartServerHttpRequest
Provides a convenient implementation of the
HttpRequest interface
that can be overridden to adapt the request.
These methods default to calling through to the wrapped request object.
- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
-
字段概要
字段 -
构造器概要
构造器构造器说明HttpRequestDecorator(HttpRequest request) Create a newHttpRequestwrapping the given request object. -
方法概要
修饰符和类型方法说明Return the headers of the wrapped request.Return the method of the wrapped request.Return the method value of the wrapped request.Return the wrapped request.getURI()Return the URI of the wrapped request.
-
字段详细资料
-
request
-
-
构造器详细资料
-
HttpRequestDecorator
Create a newHttpRequestwrapping the given request object.- 参数:
request- the request object to be wrapped
-
-
方法详细资料
-
getRequest
Return the wrapped request. -
getMethod
Return the method of the wrapped request.- 指定者:
getMethod在接口中HttpRequest- 返回:
- the HTTP method as an HttpMethod value
- 另请参阅:
-
getMethodValue
Return the method value of the wrapped request.- 指定者:
getMethodValue在接口中HttpRequest- 返回:
- the HTTP method as a plain String
- 另请参阅:
-
getURI
Return the URI of the wrapped request.- 指定者:
getURI在接口中HttpRequest- 返回:
- the URI of the request (never
null)
-
getHeaders
Return the headers of the wrapped request.- 指定者:
getHeaders在接口中HttpMessage- 返回:
- a corresponding HttpHeaders object (never
null)
-