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
Nested ClassesModifier 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.builderFor(HttpExchangeAdapter exchangeAdapter) Return a builder that's initialized with the given client.<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
-
builderFor
public static HttpserviceProxyFactory.Builder builderFor(HttpExchangeAdapter exchangeAdapter) Return a builder that's initialized with the given client.- since:
- 6.1
-
builder
Return an empty builder, with the client to be provided to builder.
-