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