@Singleton @Internal public class HttpClientIntroductionAdvice extends java.lang.Object implements MethodInterceptor<java.lang.Object,java.lang.Object>
Client
annotation.HOTSWAP, LAZY, PROXY_TARGET
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
HttpClientIntroductionAdvice(BeanContext beanContext,
RxHttpClientRegistry clientFactory,
JsonMediaTypeCodec jsonMediaTypeCodec,
java.util.List<ReactiveClientResultTransformer> transformers)
Constructor for advice class to setup things like Headers, Cookies, Parameters for Clients.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
intercept(MethodInvocationContext<java.lang.Object,java.lang.Object> context)
Interceptor to apply headers, cookies, parameter and body arguements.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
intercept
@Inject public HttpClientIntroductionAdvice(BeanContext beanContext, RxHttpClientRegistry clientFactory, JsonMediaTypeCodec jsonMediaTypeCodec, java.util.List<ReactiveClientResultTransformer> transformers)
beanContext
- context to resolve beansclientFactory
- The client factoryjsonMediaTypeCodec
- The JSON media type codectransformers
- transformation classespublic java.lang.Object intercept(MethodInvocationContext<java.lang.Object,java.lang.Object> context)
intercept
in interface MethodInterceptor<java.lang.Object,java.lang.Object>
context
- The context