接口 RequestPredicates.Visitor
- 所有已知实现类:
ToStringVisitor
- 封闭类:
- RequestPredicates
public static interface RequestPredicates.Visitor
Receives notifications from the logical structure of request predicates.
-
方法概要
修饰符和类型方法说明voidand()Receive "middle" notification of a logical AND predicate.voidendAnd()Receive last notification of a logical AND predicate.voidReceive last notification of a negated predicate.voidendOr()Receive last notification of a logical OR predicate.voidReceive 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.voidReceive notification of a parameter predicate.voidReceive notification of a path predicate.voidpathExtension(String extension) Receive notification of a path extension predicate.voidstartAnd()Receive first notification of a logical AND predicate.voidReceive 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
Receive notification of an HTTP method predicate.- 参数:
methods- the HTTP methods that make up the predicate- 另请参阅:
-
path
Receive notification of a path predicate.- 参数:
pattern- the path pattern that makes up the predicate- 另请参阅:
-
pathExtension
Receive notification of a path extension predicate.- 参数:
extension- the path extension that makes up the predicate- 另请参阅:
-
header
Receive notification of an HTTP header predicate.- 参数:
name- the name of the HTTP header to checkvalue- the desired value of the HTTP header- 另请参阅:
-
param
Receive notification of a parameter predicate.- 参数:
name- the name of the parametervalue- the desired value of the parameter- 另请参阅:
-
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
Receive first notification of an unknown predicate.
-