Class RestMethodMatcher

  • All Implemented Interfaces:
    com.google.inject.matcher.Matcher<java.lang.reflect.Method>

    public class RestMethodMatcher
    extends java.lang.Object
    implements com.google.inject.matcher.Matcher<java.lang.reflect.Method>
    Matcher denies methods annotated with jax-rs annotations. This is required to avoid duplicate validations (because dropwizard already applies validations on rest).

    Normally, all rest resources are annotated with Path so it is easy to filter all rest classes. This matcher is required only for complex declaration cases.

    Since:
    26.12.2019
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.reflect.Method method)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.inject.matcher.Matcher

        and, or
    • Constructor Detail

      • RestMethodMatcher

        public RestMethodMatcher()
    • Method Detail

      • matches

        public boolean matches​(java.lang.reflect.Method method)
        Specified by:
        matches in interface com.google.inject.matcher.Matcher<java.lang.reflect.Method>