Class RestMethodMatcher

java.lang.Object
ru.vyarus.guicey.validation.util.RestMethodMatcher
All Implemented Interfaces:
com.google.inject.matcher.Matcher<Method>

public class RestMethodMatcher extends Object implements com.google.inject.matcher.Matcher<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
  • Constructor Details

    • RestMethodMatcher

      public RestMethodMatcher()
  • Method Details

    • matches

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