Package io.micronaut.http.annotation
Annotation Type FilterMatcher
-
@Documented @Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface FilterMatcherStereotype annotation that helps to link together instance of the filter and http client that filter should be applied to. In order to use you will need to create new annotation and applyFilterMatcheron it. After that apply newly created annotation on both instance of the http filter and instance of a http client.
In the example above only clients annotated withExample: {@literal @}FilterMatcher public @interface Metered { ... } {@literal @}Metered public class MeteredHttpFilter implements HttpClientFilter { .... } {@literal @}Metered private HttpClient httpClient;{@literal @}Meteredannotations are going to be filtered by MeteredHttpFilter- Since:
- 1.3.0
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.StringNAMEThe name of this annotation.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description HttpMethod[]methods
-
-
-
Element Detail
-
methods
HttpMethod[] methods
- Returns:
- The methods to match. Defaults to all
- Default:
- {}
-
-