Class HttpServiceProxyFactory
java.lang.Object
org.springframework.web.service.invoker.HttpServiceProxyFactory
Factory to create a client proxy from an HTTP service interface with
@HttpExchange
methods.
To create an instance, use static methods to obtain a
Builder
.
- Since:
- 6.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder to create anHttpServiceProxyFactory
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Return an empty builder, with the client to be provided to builder.builder
(HttpClientAdapter clientAdapter) Deprecated, for removal: This API element is subject to removal in a future version.builderFor
(HttpExchangeAdapter exchangeAdapter) Return a builder that's initialized with the given client.<S> S
createClient
(Class<S> serviceType) Return a proxy that implements the given HTTP service interface to perform HTTP requests and retrieve responses through an HTTP client.
-
Method Details
-
createClient
Return a proxy that implements the given HTTP service interface to perform HTTP requests and retrieve responses through an HTTP client.- Type Parameters:
S
- the HTTP service type- Parameters:
serviceType
- the HTTP service to create a proxy for- Returns:
- the created proxy
-
builderFor
Return a builder that's initialized with the given client.- Since:
- 6.1
-
builder
@Deprecated(since="6.1", forRemoval=true) public static HttpServiceProxyFactory.Builder builder(HttpClientAdapter clientAdapter) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofbuilderFor(HttpExchangeAdapter)
; to be removed in 6.2.Return a builder that's initialized with the given client. -
builder
Return an empty builder, with the client to be provided to builder.
-
builderFor(HttpExchangeAdapter)
; to be removed in 6.2.