Interface HttpFilterResolver.FilterEntry
- All Superinterfaces:
AnnotationMetadataProvider, AnnotationSource
- All Known Subinterfaces:
FilterRoute
- Enclosing interface:
HttpFilterResolver<T extends AnnotationMetadataProvider>
A resolved filter entry.
- Since:
- 1.3.0
- Author:
- James Kleeh, graemerocher
-
Field Summary
Fields inherited from interface AnnotationSource
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionString[]default FilterPatternStyledefault booleandefault booleanof(HttpFilter filter, @Nullable AnnotationMetadata annotationMetadata, @Nullable Set<HttpMethod> methods, FilterPatternStyle patternStyle, String... patterns) Creates a filter entry for the given arguments.Methods inherited from interface AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Method Details
-
getFilter
GenericHttpFilter getFilter()- Returns:
- The filter
-
getFilterMethods
Set<HttpMethod> getFilterMethods()- Returns:
- The filter methods.
-
getPatterns
String[] getPatterns()- Returns:
- The filter patterns
-
getPatternStyle
- Returns:
- The filter patterns
-
hasMethods
default boolean hasMethods()- Returns:
- Does the entry define any methods.
-
hasPatterns
default boolean hasPatterns()- Returns:
- Are any patterns defined
-
of
static HttpFilterResolver.FilterEntry of(HttpFilter filter, @Nullable AnnotationMetadata annotationMetadata, @Nullable Set<HttpMethod> methods, FilterPatternStyle patternStyle, String... patterns) Creates a filter entry for the given arguments.- Parameters:
filter- The filterannotationMetadata- The annotation metadatamethods- The methodspatternStyle- the pattern stylepatterns- The patterns- Returns:
- The filter entry
-