Package springfox.documentation.builders
Class RequestHandlerSelectors
- java.lang.Object
-
- springfox.documentation.builders.RequestHandlerSelectors
-
public class RequestHandlerSelectors extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.function.Predicate<RequestHandler>
any()
Any RequestHandler satisfies this conditionstatic java.util.function.Predicate<RequestHandler>
basePackage(java.lang.String basePackage)
Predicate that matches RequestHandler with given base package name for the class of the handler method.static java.util.function.Predicate<RequestHandler>
none()
No RequestHandler satisfies this conditionstatic java.util.function.Predicate<RequestHandler>
withClassAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Predicate that matches RequestHandler with given annotation on the declaring class of the handler methodstatic java.util.function.Predicate<RequestHandler>
withMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Predicate that matches RequestHandler with handlers methods annotated with given annotation
-
-
-
Method Detail
-
any
public static java.util.function.Predicate<RequestHandler> any()
Any RequestHandler satisfies this condition- Returns:
- predicate that is always true
-
none
public static java.util.function.Predicate<RequestHandler> none()
No RequestHandler satisfies this condition- Returns:
- predicate that is always false
-
withMethodAnnotation
public static java.util.function.Predicate<RequestHandler> withMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Predicate that matches RequestHandler with handlers methods annotated with given annotation- Parameters:
annotation
- - annotation to check- Returns:
- this
-
withClassAnnotation
public static java.util.function.Predicate<RequestHandler> withClassAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Predicate that matches RequestHandler with given annotation on the declaring class of the handler method- Parameters:
annotation
- - annotation to check- Returns:
- this
-
basePackage
public static java.util.function.Predicate<RequestHandler> basePackage(java.lang.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- Parameters:
basePackage
- - base package of the classes- Returns:
- this
-
-