Package io.micronaut.http.annotation
Annotation Interface Filter
An annotation that can be applied to classes that implement HttpFilter
to
specify the patterns.
Used as an alternative to applying filters manually via the {code Router} API
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Optional Element Summary
-
Field Summary
-
Field Details
-
MATCH_ALL_PATTERN
Pattern used to match all requests.- See Also:
-
-
Element Details
-
value
String[] value- Returns:
- The patterns this filter should match
- Default:
- {}
-
patternStyle
FilterPatternStyle patternStyle- Returns:
- The style of pattern this filter uses
- Default:
- ANT
-
patterns
Same asvalue()
.- Returns:
- The patterns
- Default:
- {}
-
methods
HttpMethod[] methods- Returns:
- The methods to match. Defaults to all
- Default:
- {}
-
serviceId
String[] serviceIdThe service identifiers this filter applies to. Currently, applies only toHttpClientFilter
instances.- Returns:
- The service identifiers
- Default:
- {}
-
excludeServiceId
String[] excludeServiceIdThe service identifiers this filter does not apply to. Currently, applies only toHttpClientFilter
instances.- Returns:
- The service identifiers
- Default:
- {}
-