Interface RequestPredicates.Visitor
- Enclosing class:
- RequestPredicates
public static interface RequestPredicates.Visitor
Receives notifications from the logical structure of request predicates.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
and()
Receive "middle" notification of a logical AND predicate.void
endAnd()
Receive last notification of a logical AND predicate.void
Receive last notification of a negated predicate.void
endOr()
Receive last notification of a logical OR predicate.void
Receive notification of an HTTP header predicate.void
method
(Set<HttpMethod> methods) Receive notification of an HTTP method predicate.void
or()
Receive "middle" notification of a logical OR predicate.void
Receive notification of a path predicate.void
pathExtension
(String extension) Receive notification of a path extension predicate.void
queryParam
(String name, String value) Receive notification of a query parameter predicate.void
startAnd()
Receive first notification of a logical AND predicate.void
Receive first notification of a negated predicate.void
startOr()
Receive first notification of a logical OR predicate.void
unknown
(RequestPredicate predicate) Receive first notification of an unknown 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
Receive notification of a path extension predicate.- Parameters:
extension
- the path extension that makes up the predicate- See Also:
-
header
Receive notification of an HTTP header predicate.- Parameters:
name
- the name of the HTTP header to checkvalue
- the desired value of the HTTP header- See Also:
-
queryParam
Receive notification of a query parameter predicate.- Parameters:
name
- the name of the query parametervalue
- the desired value of the parameter- See Also:
-
startAnd
void startAnd()Receive first notification of a logical AND predicate. The first subsequent notification will contain the left-hand side of the AND-predicate; followed byand()
, followed by the right-hand side, followed byendAnd()
.- See Also:
-
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.
-