Package io.micronaut.web.router
Interface FilterRoute
- All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider,io.micronaut.core.annotation.AnnotationSource,io.micronaut.http.filter.HttpFilterResolver.FilterEntry
public interface FilterRoute
extends io.micronaut.http.filter.HttpFilterResolver.FilterEntry
A filter route is a route that matches an
HttpFilter.- Since:
- 1.0
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.http.filter.GenericHttpFilterOptional<io.micronaut.http.filter.GenericHttpFilter>Matches the given path to this filter route.methods(io.micronaut.http.HttpMethod... methods) Restrict the methods this filter route matches.Add an addition pattern to this filter route.patternStyle(io.micronaut.http.filter.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, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface io.micronaut.http.filter.HttpFilterResolver.FilterEntry
getFilterMethods, getPatterns, getPatternStyle, hasMethods, hasPatterns
-
Method Details
-
getFilter
io.micronaut.http.filter.GenericHttpFilter getFilter()- Specified by:
getFilterin interfaceio.micronaut.http.filter.HttpFilterResolver.FilterEntry- Returns:
- The filter for this
FilterRoute
-
match
Optional<io.micronaut.http.filter.GenericHttpFilter> match(io.micronaut.http.HttpMethod method, URI uri) Matches the given path to this filter route.- Parameters:
method- The HTTP methoduri- The URI- Returns:
- An
OptionalofHttpFilter
-
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
-