public static interface RequestPredicates.Visitor
Modifier and Type | Method and Description |
---|---|
void |
and()
Receive "middle" notification of a logical AND predicate.
|
void |
endAnd()
Receive last notification of a logical AND predicate.
|
void |
endNegate()
Receive last notification of a negated predicate.
|
void |
endOr()
Receive last notification of a logical OR predicate.
|
void |
header(String name,
String value)
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 |
param(String name,
String value)
Receive notification of a parameter predicate.
|
void |
path(String pattern)
Receive notification of an path predicate.
|
void |
pathExtension(String extension)
Receive notification of an path extension predicate.
|
void |
startAnd()
Receive first notification of a logical AND predicate.
|
void |
startNegate()
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.
|
void method(Set<HttpMethod> methods)
methods
- the HTTP methods that make up the predicateRequestPredicates.method(HttpMethod)
void path(String pattern)
pattern
- the path pattern that makes up the predicateRequestPredicates.path(String)
void pathExtension(String extension)
extension
- the path extension that makes up the predicateRequestPredicates.pathExtension(String)
void header(String name, String value)
name
- the name of the HTTP header to checkvalue
- the desired value of the HTTP headerRequestPredicates.headers(Predicate)
,
RequestPredicates.contentType(MediaType...)
,
RequestPredicates.accept(MediaType...)
void param(String name, String value)
name
- the name of the parametervalue
- the desired value of the parameterRequestPredicates.param(String, String)
void startAnd()
and()
, followed by the right-hand side, followed by endAnd()
.RequestPredicate.and(RequestPredicate)
void and()
endAnd()
.RequestPredicate.and(RequestPredicate)
void endAnd()
RequestPredicate.and(RequestPredicate)
void startOr()
endOr()
.RequestPredicate.or(RequestPredicate)
void or()
endOr()
.RequestPredicate.or(RequestPredicate)
void endOr()
RequestPredicate.or(RequestPredicate)
void startNegate()
endNegate()
.RequestPredicate.negate()
void endNegate()
RequestPredicate.negate()
void unknown(RequestPredicate predicate)