Class WebMethodMatcher

java.lang.Object
com.google.inject.matcher.AbstractMatcher<Method>
com.peterphi.std.guice.web.rest.auth.interceptor.WebMethodMatcher
All Implemented Interfaces:
com.google.inject.matcher.Matcher<Method>

public class WebMethodMatcher extends com.google.inject.matcher.AbstractMatcher<Method>
Matches:
  1. Methods declared in classes annotated with AuthConstraint
  2. Method implementations directly annotated with AuthConstraint
  3. Methods of classes implementing one of a passed list of interface classes
  • Constructor Details

    • WebMethodMatcher

      public WebMethodMatcher(Set<Class<?>> ifaces, boolean interceptUnannotated)
      Parameters:
      ifaces - the interfaces to intercept methods for; this should be a list of interfaces from RestResourceRegistry
  • Method Details

    • matches

      public boolean matches(Method method)