Stereotype 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 apply
FilterMatcher
on it. After that apply newly
created annotation on both instance of the http filter and instance of a http client.
Example:
{@literal @}FilterMatcher
public @interface Metered {
...
}
{@literal @}Metered
public class MeteredHttpFilter implements HttpClientFilter {
....
}
{@literal @}Metered
private HttpClient httpClient;
In the example above only clients annotated with
{@literal @}Metered
annotations are going to be filtered by MeteredHttpFilter