T
- A typepublic class HeaderAnnotationBinder<T> extends io.micronaut.core.bind.annotation.AbstractAnnotatedArgumentBinder<Header,T,HttpRequest<?>> implements AnnotatedRequestArgumentBinder<Header,T>
AnnotatedArgumentBinder
implementation that uses the Header
annotation to trigger binding from an HTTP header.HttpHeaders
Constructor and Description |
---|
HeaderAnnotationBinder(io.micronaut.core.convert.ConversionService<?> conversionService) |
Modifier and Type | Method and Description |
---|---|
io.micronaut.core.bind.ArgumentBinder.BindingResult<T> |
bind(io.micronaut.core.convert.ArgumentConversionContext<T> argument,
HttpRequest<?> source) |
java.lang.Class<Header> |
getAnnotationType() |
protected java.lang.String |
getFallbackFormat(io.micronaut.core.type.Argument argument) |
doBind, doBind, doConvert, doConvert, doResolve
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
of
public HeaderAnnotationBinder(io.micronaut.core.convert.ConversionService<?> conversionService)
conversionService
- The conversion servicepublic io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> argument, HttpRequest<?> source)
bind
in interface io.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>
public java.lang.Class<Header> getAnnotationType()
getAnnotationType
in interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<Header,T,HttpRequest<?>>
protected java.lang.String getFallbackFormat(io.micronaut.core.type.Argument argument)
getFallbackFormat
in class io.micronaut.core.bind.annotation.AbstractAnnotatedArgumentBinder<Header,T,HttpRequest<?>>