Class AttributeClientRequestBinder
java.lang.Object
io.micronaut.http.client.bind.binders.AttributeClientRequestBinder
- All Implemented Interfaces:
AnnotatedClientRequestBinder<RequestAttribute>
,ClientRequestBinder
public class AttributeClientRequestBinder
extends Object
implements AnnotatedClientRequestBinder<RequestAttribute>
An
AnnotatedClientRequestBinder
implementation for RequestAttribute
.-
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
-
AttributeClientRequestBinder
public AttributeClientRequestBinder()
-
-
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<RequestAttribute>
- Parameters:
context
- The context of method invocationuriContext
- The URI contextrequest
- The request
-
getAnnotationType
- Specified by:
getAnnotationType
in interfaceAnnotatedClientRequestBinder<RequestAttribute>
- Returns:
- The annotation type.
-