Interface RouteMatch<R>
- Type Parameters:
R- The route
- All Superinterfaces:
AnnotationMetadataProvider, AnnotationSource, AutoCloseable, Callable<R>, Closeable
- 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 AnnotationSource
EMPTY -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable Rcall()Same asexecute().default voidclose()Close this route match, releasing any associated resources, in particular unused argument binding results.@Nullable Rexecute()Execute the route with the given values.voidDeprecated, for removal: This API element is subject to removal in a future version.No longer usedvoidfulfillAfterFilters(RequestBinderRegistry requestBinderRegistry, HttpRequest<?> request) Attempt to satisfy the arguments of the given route with the data from the given request.voidfulfillBeforeFilters(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.booleanbooleanisSatisfied(String name) Is the given input satisfied.Methods inherited from interface AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Method Details
-
getRouteInfo
-
getVariableValues
-
fulfill
Deprecated, for removal: This API element is subject to removal in a future version.No longer usedFulfill 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
-
getRequiredArguments
Returns the required arguments for this RouteMatch.
- Returns:
- The required arguments in order to invoke this route
-
execute
@Nullable 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
-
isSatisfied
Is the given input satisfied.- Parameters:
name- The name of the input- Returns:
- True if it is
-
close
default void close()Close this route match, releasing any associated resources, in particular unused argument binding results.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Since:
- 5.0.0
-