接口 RequestPredicates.Visitor
public static interface RequestPredicates.Visitor
Receives notifications from the logical structure of request predicates.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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
path(String pattern)
Receive notification of an path predicate.void
pathExtension(String extension)
Receive notification of an 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
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.
方法详细资料
method
void method(Set<HttpMethod> methods)
Receive notification of an HTTP method predicate.- 参数:
methods
- the HTTP methods that make up the predicate- 另请参阅:
RequestPredicates.method(HttpMethod)
path
void path(String pattern)
Receive notification of an path predicate.- 参数:
pattern
- the path pattern that makes up the predicate- 另请参阅:
RequestPredicates.path(String)
pathExtension
void pathExtension(String extension)
Receive notification of an path extension predicate.- 参数:
extension
- the path extension that makes up the predicate- 另请参阅:
RequestPredicates.pathExtension(String)
header
void header(String name, String value)
Receive notification of an HTTP header predicate.- 参数:
name
- the name of the HTTP header to checkvalue
- the desired value of the HTTP header- 另请参阅:
RequestPredicates.headers(Predicate)
,RequestPredicates.contentType(MediaType...)
,RequestPredicates.accept(MediaType...)
queryParam
void queryParam(String name, String value)
Receive notification of a query parameter predicate.- 参数:
name
- the name of the query parametervalue
- the desired value of the parameter- 另请参阅:
RequestPredicates.queryParam(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()
.
endNegate
void endNegate()
Receive last notification of a negated predicate.
unknown
void unknown(RequestPredicate predicate)
Receive first notification of an unknown predicate.