public abstract class ServletBinderRegistry
extends java.lang.Object
implements io.micronaut.http.bind.RequestBinderRegistry
RequestBinderRegistry implementation specifically for Serverless functions over HTTP.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,io.micronaut.http.bind.binders.RequestArgumentBinder> |
byAnnotation |
protected java.util.Map<java.lang.Class<?>,io.micronaut.http.bind.binders.RequestArgumentBinder> |
byType |
| Constructor and Description |
|---|
ServletBinderRegistry(io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry,
io.micronaut.core.convert.ConversionService conversionService,
java.util.List<io.micronaut.http.bind.binders.RequestArgumentBinder> binders)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.Optional<io.micronaut.core.bind.ArgumentBinder<T,io.micronaut.http.HttpRequest<?>>> |
findArgumentBinder(io.micronaut.core.type.Argument<T> argument,
io.micronaut.http.HttpRequest<?> source) |
protected ServletBodyBinder |
newServletBodyBinder(io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry,
io.micronaut.core.convert.ConversionService conversionService)
Creates the servlet body binder.
|
protected final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,io.micronaut.http.bind.binders.RequestArgumentBinder> byAnnotation
protected final java.util.Map<java.lang.Class<?>,io.micronaut.http.bind.binders.RequestArgumentBinder> byType
public ServletBinderRegistry(io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry,
io.micronaut.core.convert.ConversionService conversionService,
java.util.List<io.micronaut.http.bind.binders.RequestArgumentBinder> binders)
mediaTypeCodecRegistry - The media type codec registryconversionService - The conversion servicebinders - Any registered bindersprotected ServletBodyBinder newServletBodyBinder(io.micronaut.http.codec.MediaTypeCodecRegistry mediaTypeCodecRegistry, io.micronaut.core.convert.ConversionService conversionService)
mediaTypeCodecRegistry - The media type registryconversionService - The conversion servicepublic <T> java.util.Optional<io.micronaut.core.bind.ArgumentBinder<T,io.micronaut.http.HttpRequest<?>>> findArgumentBinder(io.micronaut.core.type.Argument<T> argument,
io.micronaut.http.HttpRequest<?> source)
findArgumentBinder in interface io.micronaut.core.bind.ArgumentBinderRegistry<io.micronaut.http.HttpRequest<?>>