Package io.micronaut.http.client.bind
Interface AnnotatedClientRequestBinder<A extends java.lang.annotation.Annotation>
-
- Type Parameters:
A- - the annotation type that this binder is applied with
- All Superinterfaces:
ClientRequestBinder
- All Known Implementing Classes:
AttributeClientRequestBinder,HeaderClientRequestBinder,VersionClientRequestBinder
@Indexed(AnnotatedClientRequestBinder.class) public interface AnnotatedClientRequestBinder<A extends java.lang.annotation.Annotation> extends ClientRequestBinder
A binder that binds to aMutableHttpRequest. This binder is used when the annotation is applied to the whole method. In case of binder for arguments useClientArgumentRequestBinder/- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.lang.Object> context, ClientRequestUriContext uriContext, io.micronaut.http.MutableHttpRequest<?> request)Modify the request with the annotation that this binder is applied to.java.lang.Class<A>getAnnotationType()
-
-
-
Method Detail
-
bind
void bind(@NonNull io.micronaut.aop.MethodInvocationContext<java.lang.Object,java.lang.Object> context, @NonNull ClientRequestUriContext uriContext, @NonNull io.micronaut.http.MutableHttpRequest<?> request)Modify the request with the annotation that this binder is applied to. The URI cannot be changed. The query parameters from the uriContext remain in the resulting request.- Parameters:
context- The context of method invocationuriContext- The URI contextrequest- The request
-
getAnnotationType
@NonNull java.lang.Class<A> getAnnotationType()
- Returns:
- The annotation type.
-
-