Class HttpClientIntroductionAdvice
java.lang.Object
io.micronaut.http.client.interceptor.HttpClientIntroductionAdvice
- All Implemented Interfaces:
Interceptor<Object,,Object> MethodInterceptor<Object,,Object> Ordered
@InterceptorBean(Client.class)
@Internal
public class HttpClientIntroductionAdvice
extends Object
implements MethodInterceptor<Object,Object>
Introduction advice that implements the
Client annotation.- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.aop.Interceptor
ARGUMENT, CACHEABLE_LAZY_TARGET, HOTSWAP, LAZY, PROXY_TARGETFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionHttpClientIntroductionAdvice(HttpClientRegistry<?> clientFactory, JsonMediaTypeCodec jsonMediaTypeCodec, List<ReactiveClientResultTransformer> transformers, HttpClientBinderRegistry binderRegistry, ConversionService conversionService) Constructor for advice class to set up things like Headers, Cookies, Parameters for Clients. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.aop.MethodInterceptor
intercept
-
Constructor Details
-
HttpClientIntroductionAdvice
public HttpClientIntroductionAdvice(HttpClientRegistry<?> clientFactory, JsonMediaTypeCodec jsonMediaTypeCodec, List<ReactiveClientResultTransformer> transformers, HttpClientBinderRegistry binderRegistry, ConversionService conversionService) Constructor for advice class to set up things like Headers, Cookies, Parameters for Clients.- Parameters:
clientFactory- The client factoryjsonMediaTypeCodec- The JSON media type codectransformers- transformation classesbinderRegistry- The client binder registryconversionService- The bean conversion context
-
-
Method Details
-
intercept
Interceptor to apply headers, cookies, parameter and body arguments.- Specified by:
interceptin interfaceMethodInterceptor<Object,Object> - Parameters:
context- The context- Returns:
- httpClient or future
-