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, offindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredHttpFilter getFilter()
getFilter in interface HttpFilterResolver.FilterEntry<HttpFilter>FilterRouteOptional<HttpFilter> match(HttpMethod method, URI uri)
method - The HTTP methoduri - The URIOptional of HttpFilterFilterRoute pattern(String pattern)
pattern - The patternFilterRoute methods(HttpMethod... methods)
methods - The methodsFilterRoute patternStyle(FilterPatternStyle patternStyle)
patternStyle - The pattern style