Class HttpServiceProxyFactory
java.lang.Object
org.springframework.web.service.invoker.HttpServiceProxyFactory
Factory for creating a client proxy given an HTTP service interface with
@HttpExchange methods.- Since:
- 6.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder(HttpClientAdapter adapter) Return a builder for anHttpServiceProxyFactory.<S> ScreateClient(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
-
builder
Return a builder for anHttpServiceProxyFactory.- Parameters:
adapter- an adapter for the underlying HTTP client- Returns:
- the builder
-