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 SummaryOptional Elements
- 
Field SummaryFields
- 
Field Details- 
MATCH_ALL_PATTERNPattern used to match all requests.- See Also:
 
 
- 
- 
Element Details- 
valueString[] value- Returns:
- The patterns this filter should match
 - Default:
- {}
 
- 
patternStyleFilterPatternStyle patternStyle- Returns:
- The style of pattern this filter uses
 - Default:
- ANT
 
- 
patternsSame asvalue().- Returns:
- The patterns
 - Default:
- {}
 
- 
methodsHttpMethod[] methods- Returns:
- The methods to match. Defaults to all
 - Default:
- {}
 
- 
serviceIdString[] serviceIdThe service identifiers this filter applies to. Currently, applies only toHttpClientFilterinstances.- Returns:
- The service identifiers
 - Default:
- {}
 
- 
excludeServiceIdString[] excludeServiceIdThe service identifiers this filter does not apply to. Currently, applies only toHttpClientFilterinstances.- Returns:
- The service identifiers
 - Default:
- {}
 
 
-