Class RawFormFieldArgumentBinder
java.lang.Object
io.micronaut.http.server.binding.RawFormFieldArgumentBinder
- All Implemented Interfaces:
ArgumentBinder<RawFormField, HttpRequest<?>>, TypeArgumentBinder<RawFormField, HttpRequest<?>>, RequestArgumentBinder<RawFormField>, TypedRequestArgumentBinder<RawFormField>
@Internal
@Singleton
public final class RawFormFieldArgumentBinder
extends Object
implements TypedRequestArgumentBinder<RawFormField>
Binder for
RawFormField.- Since:
- 5.0.0
- Author:
- Jonas Konrad
-
Nested Class Summary
Nested classes/interfaces inherited from interface ArgumentBinder
ArgumentBinder.BindingResult<T> -
Method Summary
Modifier and TypeMethodDescriptionbind(ArgumentConversionContext<RawFormField> context, HttpRequest<?> source) Bind the given argument from the given source.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RequestArgumentBinder
createSpecificMethods inherited from interface TypedRequestArgumentBinder
matches, superTypes
-
Method Details
-
argumentType
- Specified by:
argumentTypein interfaceTypeArgumentBinder<RawFormField, HttpRequest<?>>- Returns:
- The argument type.
-
bind
public ArgumentBinder.BindingResult<RawFormField> bind(ArgumentConversionContext<RawFormField> context, HttpRequest<?> source) Description copied from interface:ArgumentBinderBind the given argument from the given source.- Specified by:
bindin interfaceArgumentBinder<RawFormField, HttpRequest<?>>- Parameters:
context- TheArgumentConversionContextsource- The source- Returns:
- An
Optionalof the value. If no binding was possibleOptional.empty()
-