类 RequestHandlerSelectors

java.lang.Object
springfox.documentation.builders.RequestHandlerSelectors

public class RequestHandlerSelectors extends Object
  • 方法详细资料

    • any

      public static com.google.common.base.Predicate<RequestHandler> any()
      Any RequestHandler satisfies this condition
      返回:
      predicate that is always true
    • none

      public static com.google.common.base.Predicate<RequestHandler> none()
      No RequestHandler satisfies this condition
      返回:
      predicate that is always false
    • withMethodAnnotation

      public static com.google.common.base.Predicate<RequestHandler> withMethodAnnotation(Class<? extends Annotation> annotation)
      Predicate that matches RequestHandler with handlers methods annotated with given annotation
      参数:
      annotation - - annotation to check
      返回:
      this
    • withClassAnnotation

      public static com.google.common.base.Predicate<RequestHandler> withClassAnnotation(Class<? extends Annotation> annotation)
      Predicate that matches RequestHandler with given annotation on the declaring class of the handler method
      参数:
      annotation - - annotation to check
      返回:
      this
    • basePackage

      public static com.google.common.base.Predicate<RequestHandler> basePackage(String basePackage)
      Predicate that matches RequestHandler with given base package name for the class of the handler method. This predicate includes all request handlers matching the provided basePackage
      参数:
      basePackage - - base package of the classes
      返回:
      this