Class ServletBodyBinder<T>
java.lang.Object
io.micronaut.servlet.http.ServletBodyBinder<T>
- Type Parameters:
T- The body type
- All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.http.annotation.Body, T, io.micronaut.http.HttpRequest<?>>, io.micronaut.core.bind.ArgumentBinder<T, io.micronaut.http.HttpRequest<?>>, io.micronaut.http.bind.binders.AnnotatedRequestArgumentBinder<io.micronaut.http.annotation.Body, T>, io.micronaut.http.bind.binders.RequestArgumentBinder<T>
public class ServletBodyBinder<T>
extends Object
implements io.micronaut.http.bind.binders.AnnotatedRequestArgumentBinder<io.micronaut.http.annotation.Body, T>
Allows binding the body from a
ServletHttpRequest.- Since:
- 2.0.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
io.micronaut.core.bind.ArgumentBinder.BindingResult<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.micronaut.core.convert.ConversionService -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServletBodyBinder(io.micronaut.core.convert.ConversionService conversionService, io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry, io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<T> defaultBodyAnnotationBinder) Default constructor. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.http.bind.binders.RequestArgumentBinder
createSpecific
-
Field Details
-
conversionService
protected final io.micronaut.core.convert.ConversionService conversionService
-
-
Constructor Details
-
ServletBodyBinder
protected ServletBodyBinder(io.micronaut.core.convert.ConversionService conversionService, io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry, io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<T> defaultBodyAnnotationBinder) Default constructor.- Parameters:
conversionService- The conversion servicemediaTypeCodecRegistry- The codec registrydefaultBodyAnnotationBinder- The delegate default body binder
-
-
Method Details
-
getAnnotationType
-
bind
-