类 DefaultRestClient
java.lang.Object
cn.taketoday.web.client.DefaultRestClient
- 所有已实现的接口:
RestClient
Default implementation of
RestClient.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Harry Yang
-
嵌套类概要
嵌套类修饰符和类型类说明private classprivate class从接口继承的嵌套类/接口 cn.taketoday.web.client.RestClient
RestClient.Builder, RestClient.RequestBodySpec, RestClient.RequestBodyUriSpec, RestClient.RequestHeadersSpec<S extends RestClient.RequestHeadersSpec<S>>, RestClient.RequestHeadersUriSpec<S extends RestClient.RequestHeadersSpec<S>>, RestClient.ResponseSpec, RestClient.UriSpec<S extends RestClient.RequestHeadersSpec<?>> -
字段概要
字段修饰符和类型字段说明private final DefaultRestClientBuilderprivate final ClientHttpRequestFactoryprivate final HttpHeadersprivate final List<StatusHandler>private final List<ClientHttpRequestInitializer>private ClientHttpRequestFactoryprivate final List<ClientHttpRequestInterceptor>private static final cn.taketoday.logging.Loggerprivate final List<HttpMessageConverter<?>>private static final Stringprivate final UriBuilderFactory -
构造器概要
构造器构造器说明DefaultRestClient(ClientHttpRequestFactory clientRequestFactory, List<ClientHttpRequestInterceptor> interceptors, List<ClientHttpRequestInitializer> initializers, UriBuilderFactory uriBuilderFactory, HttpHeaders defaultHeaders, List<StatusHandler> statusHandlers, List<HttpMessageConverter<?>> messageConverters, DefaultRestClientBuilder builder) -
方法概要
修饰符和类型方法说明delete()Start building an HTTP DELETE request.get()Start building an HTTP GET request.head()Start building an HTTP HEAD request.method(HttpMethod method) Start building a request for the givenHttpMethod.private RestClient.RequestBodyUriSpecmethodInternal(HttpMethod httpMethod) mutate()Return a builder to create a newRestClientwhose settings are replicated from the currentRestClient.options()Start building an HTTP OPTIONS request.patch()Start building an HTTP PATCH request.post()Start building an HTTP POST request.put()Start building an HTTP PUT request.
-
字段详细资料
-
logger
private static final cn.taketoday.logging.Logger logger -
URI_TEMPLATE_ATTRIBUTE
-
clientRequestFactory
-
interceptingRequestFactory
-
initializers
-
interceptors
-
uriBuilderFactory
-
defaultHeaders
-
defaultStatusHandlers
-
builder
-
messageConverters
-
-
构造器详细资料
-
DefaultRestClient
DefaultRestClient(ClientHttpRequestFactory clientRequestFactory, @Nullable List<ClientHttpRequestInterceptor> interceptors, @Nullable List<ClientHttpRequestInitializer> initializers, UriBuilderFactory uriBuilderFactory, @Nullable HttpHeaders defaultHeaders, @Nullable List<StatusHandler> statusHandlers, List<HttpMessageConverter<?>> messageConverters, DefaultRestClientBuilder builder)
-
-
方法详细资料
-
get
从接口复制的说明:RestClientStart building an HTTP GET request.- 指定者:
get在接口中RestClient- 返回:
- a spec for specifying the target URL
-
head
从接口复制的说明:RestClientStart building an HTTP HEAD request.- 指定者:
head在接口中RestClient- 返回:
- a spec for specifying the target URL
-
post
从接口复制的说明:RestClientStart building an HTTP POST request.- 指定者:
post在接口中RestClient- 返回:
- a spec for specifying the target URL
-
put
从接口复制的说明:RestClientStart building an HTTP PUT request.- 指定者:
put在接口中RestClient- 返回:
- a spec for specifying the target URL
-
patch
从接口复制的说明:RestClientStart building an HTTP PATCH request.- 指定者:
patch在接口中RestClient- 返回:
- a spec for specifying the target URL
-
delete
从接口复制的说明:RestClientStart building an HTTP DELETE request.- 指定者:
delete在接口中RestClient- 返回:
- a spec for specifying the target URL
-
options
从接口复制的说明:RestClientStart building an HTTP OPTIONS request.- 指定者:
options在接口中RestClient- 返回:
- a spec for specifying the target URL
-
method
从接口复制的说明:RestClientStart building a request for the givenHttpMethod.- 指定者:
method在接口中RestClient- 返回:
- a spec for specifying the target URL
-
methodInternal
-
mutate
从接口复制的说明:RestClientReturn a builder to create a newRestClientwhose settings are replicated from the currentRestClient.- 指定者:
mutate在接口中RestClient
-