Package io.micronaut.servlet.http
Class ServletBodyBinder<T>
java.lang.Object
io.micronaut.core.bind.annotation.AbstractArgumentBinder<T>
io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<T>
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.BodyArgumentBinder<T>
,io.micronaut.http.bind.binders.PostponedRequestArgumentBinder<T>
,io.micronaut.http.bind.binders.RequestArgumentBinder<T>
public class ServletBodyBinder<T>
extends io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<T>
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 extends Object>
-
Field Summary
Fields inherited from class io.micronaut.http.bind.binders.DefaultBodyAnnotationBinder
conversionService
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ServletBodyBinder
(io.micronaut.core.convert.ConversionService conversionService, io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry) Default constructor. -
Method Summary
Methods inherited from class io.micronaut.core.bind.annotation.AbstractArgumentBinder
doBind, doBind, doConvert, doConvert, doResolve, getFallbackFormat
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.bind.binders.PostponedRequestArgumentBinder
bindPostponed
-
Constructor Details
-
ServletBodyBinder
protected ServletBodyBinder(io.micronaut.core.convert.ConversionService conversionService, io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry) Default constructor.- Parameters:
conversionService
- The conversion servicemediaTypeCodecRegistry
- The codec registry
-
-
Method Details
-
getAnnotationType
- Specified by:
getAnnotationType
in interfaceio.micronaut.core.bind.annotation.AnnotatedArgumentBinder<io.micronaut.http.annotation.Body,
T, io.micronaut.http.HttpRequest<?>> - Specified by:
getAnnotationType
in interfaceio.micronaut.http.bind.binders.BodyArgumentBinder<T>
- Overrides:
getAnnotationType
in classio.micronaut.http.bind.binders.DefaultBodyAnnotationBinder<T>
-
bind
-