@Singleton @Internal public class RequestArgumentSatisfier extends Object
Route
.Constructor and Description |
---|
RequestArgumentSatisfier(RequestBinderRegistry requestBinderRegistry) |
Modifier and Type | Method and Description |
---|---|
RouteMatch<?> |
fulfillArgumentRequirements(RouteMatch<?> route,
HttpRequest<?> request,
boolean satisfyOptionals)
Attempt to satisfy the arguments of the given route with the data from the given request.
|
RequestBinderRegistry |
getBinderRegistry() |
protected Optional<Object> |
getValueForArgument(Argument argument,
HttpRequest<?> request,
boolean satisfyOptionals) |
public RequestArgumentSatisfier(RequestBinderRegistry requestBinderRegistry)
requestBinderRegistry
- The Request binder registrypublic RequestBinderRegistry getBinderRegistry()
public RouteMatch<?> fulfillArgumentRequirements(RouteMatch<?> route, HttpRequest<?> request, boolean satisfyOptionals)
route
- The routerequest
- The requestsatisfyOptionals
- Whether to satisfy optionalsprotected Optional<Object> getValueForArgument(Argument argument, HttpRequest<?> request, boolean satisfyOptionals)
argument
- The argumentrequest
- The HTTP requestsatisfyOptionals
- Whether to satisfy optionalsOptional
for the value