@Singleton
@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @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
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
MATCH_ALL_PATTERN
Pattern used to match all requests.
|
Modifier and Type | Optional Element and Description |
---|---|
HttpMethod[] |
methods |
java.lang.String[] |
patterns
Same as
value() . |
FilterPatternStyle |
patternStyle |
java.lang.String[] |
serviceId
The service identifiers this filter applies to.
|
java.lang.String[] |
value |
public static final java.lang.String MATCH_ALL_PATTERN
public abstract java.lang.String[] value
public abstract FilterPatternStyle patternStyle
public abstract HttpMethod[] methods
public abstract java.lang.String[] serviceId
HttpClientFilter
instances.
Equivalent to the id()
of io.micronaut.http.client.Client
.