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 TypeMethodDescriptiondefault FilterPatternStyle
default boolean
default boolean
of
(@NonNull HttpFilter filter, @Nullable AnnotationMetadata annotationMetadata, @Nullable Set<HttpMethod> methods, @NonNull 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, synthesizeDeclaredAnnotationsByType
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Method Details
-
getFilter
- Returns:
- The filter
-
getFilterMethods
- Returns:
- The filter methods.
-
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(@NonNull @NonNull HttpFilter filter, @Nullable @Nullable AnnotationMetadata annotationMetadata, @Nullable @Nullable Set<HttpMethod> methods, @NonNull @NonNull 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
-