Package io.micronaut.web.router
Interface RouteMatch<R>
- Type Parameters:
R
- The route
- All Superinterfaces:
AnnotationMetadataProvider
,AnnotationSource
,Callable<R>
- All Known Subinterfaces:
MethodBasedRouteMatch<T,
,R> UriRouteMatch<T,
R>
- All Known Implementing Classes:
DefaultUriRouteMatch
A
Route
that is executable.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptiondefault R
call()
Same asexecute()
.execute()
Execute the route with the given values.void
Fulfill argument values.void
fulfillAfterFilters
(RequestBinderRegistry requestBinderRegistry, HttpRequest<?> request) Attempt to satisfy the arguments of the given route with the data from the given request.void
fulfillBeforeFilters
(RequestBinderRegistry requestBinderRegistry, HttpRequest<?> request) Attempt to satisfy the arguments of the given route with the data from the given request.default Collection<Argument<?>>
Returns the required arguments for this RouteMatch.getRequiredInput
(String name) Return whether the given named input is required by this route.boolean
boolean
isSatisfied
(String name) Is the given input satisfied.Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Method Details
-
getRouteInfo
- Returns:
- The route info
-
getVariableValues
- Returns:
- The variable values following a successful match.
-
fulfill
Fulfill argument values.- Parameters:
argumentValues
- The argument values
-
fulfillBeforeFilters
Attempt to satisfy the arguments of the given route with the data from the given request.- Parameters:
requestBinderRegistry
- The request binder registryrequest
- The request- Since:
- 4.0.0
-
fulfillAfterFilters
Attempt to satisfy the arguments of the given route with the data from the given request.- Parameters:
requestBinderRegistry
- The request binder registryrequest
- The request- Since:
- 4.0.0
-
isFulfilled
boolean isFulfilled()- Returns:
- Whether the route match can be executed without passing any additional arguments i.e. via
execute()
- Since:
- 4.0.0
-
getRequiredInput
Return whether the given named input is required by this route.- Parameters:
name
- The name of the input- Returns:
- True if it is
-
getRequiredArguments
Returns the required arguments for this RouteMatch.
- Returns:
- The required arguments in order to invoke this route
-
execute
R execute()Execute the route with the given values. Note if there are required arguments returned fromgetRequiredArguments()
this method will throw anIllegalArgumentException
.- Returns:
- The result
-
call
Same asexecute()
. -
isSatisfied
Is the given input satisfied.- Parameters:
name
- The name of the input- Returns:
- True if it is
-