Class HeaderClientRequestBinder
java.lang.Object
io.micronaut.http.client.bind.binders.HeaderClientRequestBinder
- All Implemented Interfaces:
AnnotatedClientRequestBinder<Header>
,ClientRequestBinder
public class HeaderClientRequestBinder
extends Object
implements AnnotatedClientRequestBinder<Header>
An
AnnotatedClientRequestBinder
implementation for Header
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(@NonNull MethodInvocationContext<Object, Object> context, @NonNull ClientRequestUriContext uriContext, @NonNull MutableHttpRequest<?> request) Modify the request with the annotation that this binder is applied to.
-
Constructor Details
-
HeaderClientRequestBinder
public HeaderClientRequestBinder()
-
-
Method Details
-
bind
public void bind(@NonNull @NonNull MethodInvocationContext<Object, Object> context, @NonNull @NonNull ClientRequestUriContext uriContext, @NonNull @NonNull MutableHttpRequest<?> request) Description copied from interface:AnnotatedClientRequestBinder
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.- Specified by:
bind
in interfaceAnnotatedClientRequestBinder<Header>
- Parameters:
context
- The context of method invocationuriContext
- The URI contextrequest
- The request
-
getAnnotationType
- Specified by:
getAnnotationType
in interfaceAnnotatedClientRequestBinder<Header>
- Returns:
- The annotation type.
-