Package io.micronaut.http.filter
Interface HttpFilterResolver.FilterEntry
- All Superinterfaces:
AnnotationMetadataProvider,AnnotationSource
- All Known Subinterfaces:
FilterRoute
- Enclosing interface:
HttpFilterResolver<T extends AnnotationMetadataProvider>
A resolved filter entry.
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.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 io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.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
-