@Singleton @Internal public class HttpClientIntroductionAdvice extends Object implements MethodInterceptor<Object,Object>
Client
annotation.HOTSWAP, LAZY, PROXY_TARGET
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
HttpClientIntroductionAdvice(BeanContext beanContext,
RxHttpClientRegistry clientFactory,
JsonMediaTypeCodec jsonMediaTypeCodec,
List<ReactiveClientResultTransformer> transformers)
Constructor for advice class to setup things like Headers, Cookies, Parameters for Clients.
|
Modifier and Type | Method and Description |
---|---|
Object |
intercept(MethodInvocationContext<Object,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, List<ReactiveClientResultTransformer> transformers)
beanContext
- context to resolve beansclientFactory
- The client factoryjsonMediaTypeCodec
- The JSON media type codectransformers
- transformation classespublic Object intercept(MethodInvocationContext<Object,Object> context)
intercept
in interface MethodInterceptor<Object,Object>
context
- The context