Package io.micronaut.http.server.binding
Class RequestArgumentSatisfier
- java.lang.Object
-
- io.micronaut.http.server.binding.RequestArgumentSatisfier
-
@Singleton @Internal public class RequestArgumentSatisfier extends java.lang.ObjectA class containing methods to aid in satisfying arguments of aRoute.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description RequestArgumentSatisfier(io.micronaut.http.bind.RequestBinderRegistry requestBinderRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.web.router.RouteMatch<?>fulfillArgumentRequirements(io.micronaut.web.router.RouteMatch<?> route, io.micronaut.http.HttpRequest<?> request, boolean satisfyOptionals)Attempt to satisfy the arguments of the given route with the data from the given request.io.micronaut.http.bind.RequestBinderRegistrygetBinderRegistry()protected java.util.Optional<java.lang.Object>getValueForArgument(io.micronaut.core.type.Argument argument, io.micronaut.http.HttpRequest<?> request, boolean satisfyOptionals)
-
-
-
Method Detail
-
getBinderRegistry
public io.micronaut.http.bind.RequestBinderRegistry getBinderRegistry()
- Returns:
- The request binder registry
-
fulfillArgumentRequirements
public io.micronaut.web.router.RouteMatch<?> fulfillArgumentRequirements(io.micronaut.web.router.RouteMatch<?> route, io.micronaut.http.HttpRequest<?> request, boolean satisfyOptionals)Attempt to satisfy the arguments of the given route with the data from the given request.- Parameters:
route- The routerequest- The requestsatisfyOptionals- Whether to satisfy optionals- Returns:
- The route
-
getValueForArgument
protected java.util.Optional<java.lang.Object> getValueForArgument(io.micronaut.core.type.Argument argument, io.micronaut.http.HttpRequest<?> request, boolean satisfyOptionals)- Parameters:
argument- The argumentrequest- The HTTP requestsatisfyOptionals- Whether to satisfy optionals- Returns:
- An
Optionalfor the value
-
-