类 RequestHandlerSelectors
java.lang.Object
springfox.documentation.builders.RequestHandlerSelectors
-
方法概要
修饰符和类型方法说明static com.google.common.base.Predicate<RequestHandler>any()Any RequestHandler satisfies this conditionstatic 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.static com.google.common.base.Predicate<RequestHandler>none()No RequestHandler satisfies this conditionstatic 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 methodstatic com.google.common.base.Predicate<RequestHandler>withMethodAnnotation(Class<? extends Annotation> annotation) Predicate that matches RequestHandler with handlers methods annotated with given annotation
-
方法详细资料
-
any
Any RequestHandler satisfies this condition- 返回:
- predicate that is always true
-
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
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
-