public interface FilterRoute
extends io.micronaut.http.filter.HttpFilterResolver.FilterEntry<io.micronaut.http.filter.HttpFilter>
HttpFilter.| Modifier and Type | Method and Description |
|---|---|
io.micronaut.http.filter.HttpFilter |
getFilter() |
java.util.Optional<io.micronaut.http.filter.HttpFilter> |
match(io.micronaut.http.HttpMethod method,
java.net.URI uri)
Matches the given path to this filter route.
|
FilterRoute |
methods(io.micronaut.http.HttpMethod... methods)
Restrict the methods this filter route matches.
|
FilterRoute |
pattern(java.lang.String pattern)
Add an addition pattern to this filter route.
|
FilterRoute |
patternStyle(io.micronaut.http.filter.FilterPatternStyle patternStyle)
Sets the pattern style that this filter route matches.
|
getFilterMethods, getPatterns, getPatternStyle, hasMethods, hasPatterns, of, offindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeio.micronaut.http.filter.HttpFilter getFilter()
getFilter in interface io.micronaut.http.filter.HttpFilterResolver.FilterEntry<io.micronaut.http.filter.HttpFilter>FilterRoutejava.util.Optional<io.micronaut.http.filter.HttpFilter> match(io.micronaut.http.HttpMethod method,
java.net.URI uri)
method - The HTTP methoduri - The URIOptional of HttpFilterFilterRoute pattern(java.lang.String pattern)
pattern - The patternFilterRoute methods(io.micronaut.http.HttpMethod... methods)
methods - The methodsFilterRoute patternStyle(io.micronaut.http.filter.FilterPatternStyle patternStyle)
patternStyle - The pattern style