Interface RequestPredicates.Visitor
- Enclosing class:
RequestPredicates
public static interface RequestPredicates.Visitor
Receives notifications from the logical structure of request predicates.
- Since:
- 5.2
- Author:
- Arjen Poutsma, Sam Brannen
-
Method Summary
Modifier and TypeMethodDescriptionvoidand()Receive "middle" notification of a logical AND predicate.voidendAnd()Receive last notification of a logical AND predicate.voidReceive last notification of a negated predicate.voidendOr()Receive last notification of a logical OR predicate.voidReceive notification of an HTTP header predicate.voidmethod(Set<HttpMethod> methods) Receive notification of an HTTP method predicate.voidor()Receive "middle" notification of a logical OR predicate.voidReceive notification of a parameter predicate.voidReceive notification of a path predicate.voidpathExtension(String extension) Deprecated, for removal: This API element is subject to removal in a future version.without replacement to discourage use of path extensions for request mapping and for content negotiation (with similar deprecations and removals already applied to annotated controllers).voidstartAnd()Receive first notification of a logical AND predicate.voidReceive first notification of a negated predicate.voidstartOr()Receive first notification of a logical OR predicate.voidunknown(RequestPredicate predicate) Receive first notification of an unknown predicate.voidReceive notification of an API version predicate.
-
Method Details
-
method
Receive notification of an HTTP method predicate.- Parameters:
methods- the HTTP methods that make up the predicate- See Also:
-
path
Receive notification of a path predicate.- Parameters:
pattern- the path pattern that makes up the predicate- See Also:
-
pathExtension
Deprecated, for removal: This API element is subject to removal in a future version.without replacement to discourage use of path extensions for request mapping and for content negotiation (with similar deprecations and removals already applied to annotated controllers). For further context, please read issue #24179Receive notification of a path extension predicate.- Parameters:
extension- the path extension that makes up the predicate- See Also:
-
header
-
param
-
version
Receive notification of an API version predicate. The version could be fixed ("1.2") or baseline ("1.2+").- Parameters:
version- the configured version- Since:
- 7.0
-
startAnd
-
and
void and()Receive "middle" notification of a logical AND predicate. The following notification contains the right-hand side, followed byendAnd().- See Also:
-
endAnd
void endAnd()Receive last notification of a logical AND predicate.- See Also:
-
startOr
void startOr()Receive first notification of a logical OR predicate. The first subsequent notification will contain the left-hand side of the OR-predicate; the second notification contains the right-hand side, followed byendOr().- See Also:
-
or
void or()Receive "middle" notification of a logical OR predicate. The following notification contains the right-hand side, followed byendOr().- See Also:
-
endOr
void endOr()Receive last notification of a logical OR predicate.- See Also:
-
startNegate
void startNegate()Receive first notification of a negated predicate. The first subsequent notification will contain the negated predicated, followed byendNegate().- See Also:
-
endNegate
void endNegate()Receive last notification of a negated predicate.- See Also:
-
unknown
Receive first notification of an unknown predicate.
-