Package io.micronaut.web.router
Interface FilterRoute
- All Superinterfaces:
AnnotationMetadataProvider
,AnnotationSource
,HttpFilterResolver.FilterEntry
A filter route is a route that matches an
HttpFilter
.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptionmatch
(HttpMethod method, String path) Matches the given path to this filter route.match
(HttpMethod method, URI uri) Deprecated, for removal: This API element is subject to removal in a future version.methods
(HttpMethod... methods) Restrict the methods this filter route matches.Add an addition pattern to this filter route.patternStyle
(FilterPatternStyle patternStyle) Sets the pattern style that this filter route matches.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
Methods inherited from interface io.micronaut.http.filter.HttpFilterResolver.FilterEntry
getFilterMethods, getPatterns, getPatternStyle, hasMethods, hasPatterns
-
Method Details
-
getFilter
GenericHttpFilter getFilter()- Specified by:
getFilter
in interfaceHttpFilterResolver.FilterEntry
- Returns:
- The filter for this
FilterRoute
-
match
@Deprecated(forRemoval=true, since="4.3.0") Optional<GenericHttpFilter> match(HttpMethod method, URI uri) Deprecated, for removal: This API element is subject to removal in a future version.Replaced withmatch(HttpMethod, String)
.Matches the given path to this filter route.- Parameters:
method
- The HTTP methoduri
- The URI- Returns:
- An
Optional
ofHttpFilter
-
match
Matches the given path to this filter route.- Parameters:
method
- The HTTP methodpath
- The path- Returns:
- An
Optional
ofHttpFilter
- Since:
- 4.3.0
-
pattern
Add an addition pattern to this filter route.- Parameters:
pattern
- The pattern- Returns:
- This route
-
methods
Restrict the methods this filter route matches.- Parameters:
methods
- The methods- Returns:
- This route
-
patternStyle
Sets the pattern style that this filter route matches.- Parameters:
patternStyle
- The pattern style- Returns:
- This route
-
match(HttpMethod, String)
.