Interface RequestPredicates.Visitor
- Enclosing class:
- RequestPredicates
public static interface RequestPredicates.Visitor
Receives notifications from the logical structure of request predicates.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidand()Receive "middle" notification of a logical AND predicate.voidendAnd()Receive last notification of a logical AND predicate.voidendNegate()Receive last notification of a negated predicate.voidendOr()Receive last notification of a logical OR predicate.voidheader(String name, String value)Receive 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.voidparam(String name, String value)Receive notification of a parameter predicate.voidpath(String pattern)Receive notification of an path predicate.voidpathExtension(String extension)Receive notification of an path extension predicate.voidstartAnd()Receive first notification of a logical AND predicate.voidstartNegate()Receive 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.
Method Detail
method
void method(Set<HttpMethod> methods)
Receive notification of an HTTP method predicate.- Parameters:
methods- the HTTP methods that make up the predicate- See Also:
RequestPredicates.method(HttpMethod)
path
void path(String pattern)
Receive notification of an path predicate.- Parameters:
pattern- the path pattern that makes up the predicate- See Also:
RequestPredicates.path(String)
pathExtension
void pathExtension(String extension)
Receive notification of an path extension predicate.- Parameters:
extension- the path extension that makes up the predicate- See Also:
RequestPredicates.pathExtension(String)
header
void header(String name, String value)
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:
RequestPredicates.headers(Predicate),RequestPredicates.contentType(MediaType...),RequestPredicates.accept(MediaType...)
param
void param(String name, String value)
Receive notification of a parameter predicate.- Parameters:
name- the name of the parametervalue- the desired value of the parameter- See Also:
RequestPredicates.param(String, String)
startAnd
void startAnd()
and
void and()
Receive "middle" notification of a logical AND predicate. The following notification contains the right-hand side, followed byendAnd().
endAnd
void endAnd()
Receive last notification of a logical AND predicate.
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().
or
void or()
Receive "middle" notification of a logical OR predicate. The following notification contains the right-hand side, followed byendOr().
endOr
void endOr()
Receive last notification of a logical OR predicate.
startNegate
void startNegate()
Receive first notification of a negated predicate. The first subsequent notification will contain the negated predicated, followed byendNegate().- See Also:
RequestPredicate.negate()
endNegate
void endNegate()
Receive last notification of a negated predicate.- See Also:
RequestPredicate.negate()
unknown
void unknown(RequestPredicate predicate)
Receive first notification of an unknown predicate.