Package io.micronaut.http.bind.binders
Class DefaultBodyAnnotationBinder<T>
- java.lang.Object
-
- io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<T>
-
- Type Parameters:
T- A type
- All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<Body,T,HttpRequest<?>>,io.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>,AnnotatedRequestArgumentBinder<Body,T>,BodyArgumentBinder<T>,RequestArgumentBinder<T>
public class DefaultBodyAnnotationBinder<T> extends java.lang.Object implements BodyArgumentBinder<T>
Binds a String body argument.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description protected io.micronaut.core.convert.ConversionService<?>conversionService
-
Constructor Summary
Constructors Constructor Description DefaultBodyAnnotationBinder(io.micronaut.core.convert.ConversionService conversionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.core.bind.ArgumentBinder.BindingResult<T>bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> source)java.lang.Class<Body>getAnnotationType()
-
-
-
Method Detail
-
getAnnotationType
public java.lang.Class<Body> getAnnotationType()
- Specified by:
getAnnotationTypein interfaceio.micronaut.core.bind.annotation.AnnotatedArgumentBinder<Body,T,HttpRequest<?>>- Specified by:
getAnnotationTypein interfaceBodyArgumentBinder<T>- Returns:
- The required annotation type
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> source)
- Specified by:
bindin interfaceio.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>
-
-