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