Interface RouteMatch<R>
- Type Parameters:
R- The route
- All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, AutoCloseable, Callable<R>, Closeable
- All Known Subinterfaces:
MethodBasedRouteMatch<T,R>, UriRouteMatch<T, R>
- All Known Implementing Classes:
DefaultUriRouteMatch
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.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(io.micronaut.http.bind.RequestBinderRegistry requestBinderRegistry, io.micronaut.http.HttpRequest<?> request) Attempt to satisfy the arguments of the given route with the data from the given request.voidfulfillBeforeFilters(io.micronaut.http.bind.RequestBinderRegistry requestBinderRegistry, io.micronaut.http.HttpRequest<?> request) Attempt to satisfy the arguments of the given route with the data from the given request.default Collection<io.micronaut.core.type.Argument<?>> Returns the required arguments for this RouteMatch.Optional<io.micronaut.core.type.Argument<?>> 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 io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.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
void fulfillBeforeFilters(io.micronaut.http.bind.RequestBinderRegistry requestBinderRegistry, io.micronaut.http.HttpRequest<?> request) 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
void fulfillAfterFilters(io.micronaut.http.bind.RequestBinderRegistry requestBinderRegistry, io.micronaut.http.HttpRequest<?> request) 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
-