类 HttpServiceProxyFactory
java.lang.Object
cn.taketoday.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.
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Harry Yang
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static final classBuilder to create anHttpServiceProxyFactory.private static final classMethodInterceptorthat invokes anHttpServiceMethod. -
字段概要
字段修饰符和类型字段说明private final List<HttpServiceArgumentResolver>private final cn.taketoday.core.StringValueResolverprivate final HttpExchangeAdapter -
构造器概要
构造器限定符构造器说明privateHttpServiceProxyFactory(HttpExchangeAdapter exchangeAdapter, List<HttpServiceArgumentResolver> argumentResolvers, cn.taketoday.core.StringValueResolver embeddedValueResolver) -
方法概要
修饰符和类型方法说明builder()Return an empty builder, with the client to be provided to builder.<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.private <S> HttpServiceMethodcreateHttpServiceMethod(Class<S> serviceType, Method method) forAdapter(HttpExchangeAdapter exchangeAdapter) Return a builder that's initialized with the given client.private booleanisExchangeMethod(Method method)
-
字段详细资料
-
exchangeAdapter
-
argumentResolvers
-
embeddedValueResolver
@Nullable private final cn.taketoday.core.StringValueResolver embeddedValueResolver
-
-
构造器详细资料
-
HttpServiceProxyFactory
private HttpServiceProxyFactory(HttpExchangeAdapter exchangeAdapter, List<HttpServiceArgumentResolver> argumentResolvers, @Nullable cn.taketoday.core.StringValueResolver embeddedValueResolver)
-
-
方法详细资料
-
createClient
Return a proxy that implements the given HTTP service interface to perform HTTP requests and retrieve responses through an HTTP client.- 类型参数:
S- the HTTP service type- 参数:
serviceType- the HTTP service to create a proxy for- 返回:
- the created proxy
-
isExchangeMethod
-
createHttpServiceMethod
-
forAdapter
Return a builder that's initialized with the given client. -
builder
Return an empty builder, with the client to be provided to builder.
-