Annotation Type FilterMatcher


  • @Documented
    @Target(ANNOTATION_TYPE)
    @Retention(RUNTIME)
    public @interface FilterMatcher
    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
    Since:
    1.3.0
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String NAME
      The name of this annotation.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      HttpMethod[] methods  
    • Field Detail

      • NAME

        static final java.lang.String NAME
        The name of this annotation.
    • Element Detail

      • methods

        HttpMethod[] methods
        Returns:
        The methods to match. Defaults to all
        Default:
        {}