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(java.lang.String name,
java.lang.String value)
Receive notification of a HTTP header predicate.
|
void |
method(java.util.Set<HttpMethod> methods)
Receive notification of an HTTP method predicate.
|
void |
or()
Receive "middle" notification of a logical OR predicate.
|
void |
param(java.lang.String name,
java.lang.String value)
Receive notification of a parameter predicate.
|
void |
path(java.lang.String pattern)
Receive notification of an path predicate.
|
void |
pathExtension(java.lang.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(java.util.Set<HttpMethod> methods)
methods
- the HTTP methods that make up the predicateRequestPredicates.method(HttpMethod)
void path(java.lang.String pattern)
pattern
- the path pattern that makes up the predicateRequestPredicates.path(String)
void pathExtension(java.lang.String extension)
extension
- the path extension that makes up the predicateRequestPredicates.pathExtension(String)
void header(java.lang.String name, java.lang.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(java.lang.String name, java.lang.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)