类 ClientHttpRequestFactoryWrapper
java.lang.Object
cn.taketoday.http.client.ClientHttpRequestFactoryWrapper
- 所有已实现的接口:
ClientHttpRequestFactory
Abstract base class for
ClientHttpRequestFactory implementations
that decorate another request factory.- 从以下版本开始:
- 4.0
- 作者:
- Harry Yang, Arjen Poutsma
-
字段概要
字段 -
构造器概要
构造器构造器说明ClientHttpRequestFactoryWrapper(ClientHttpRequestFactory requestFactory) Create aAbstractClientHttpRequestFactoryWrapperwrapping the given request factory. -
方法概要
修饰符和类型方法说明final ClientHttpRequestcreateRequest(URI uri, HttpMethod httpMethod) This implementation simply callscreateRequest(URI, HttpMethod, ClientHttpRequestFactory)with the wrapped request factory provided to the constructor.protected ClientHttpRequestcreateRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) Create a newClientHttpRequestfor the specified URI and HTTP method by using the passed-on request factory.
-
字段详细资料
-
requestFactory
-
-
构造器详细资料
-
ClientHttpRequestFactoryWrapper
Create aAbstractClientHttpRequestFactoryWrapperwrapping the given request factory.- 参数:
requestFactory- the request factory to be wrapped
-
-
方法详细资料
-
createRequest
This implementation simply callscreateRequest(URI, HttpMethod, ClientHttpRequestFactory)with the wrapped request factory provided to the constructor.- 指定者:
createRequest在接口中ClientHttpRequestFactory- 参数:
uri- the URI to create a request forhttpMethod- the HTTP method to execute- 返回:
- the created request
- 抛出:
IOException- in case of I/O errors
-
createRequest
protected ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) throws IOException Create a newClientHttpRequestfor the specified URI and HTTP method by using the passed-on request factory.Called from
createRequest(URI, HttpMethod).- 参数:
uri- the URI to create a request forhttpMethod- the HTTP method to executerequestFactory- the wrapped request factory- 返回:
- the created request
- 抛出:
IOException- in case of I/O errors
-
getRequestFactory
-