类 ToStringVisitor
java.lang.Object
cn.taketoday.web.handler.function.ToStringVisitor
- 所有已实现的接口:
RequestPredicates.Visitor,RouterFunctions.Visitor
Implementation of
RouterFunctions.Visitor that creates a formatted
string representation of router functions.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidand()Receive "middle" notification of a logical AND predicate.voidattributes(Map<String, Object> attributes) Receive notification of a router function with attributes.voidendAnd()Receive last notification of a logical AND predicate.voidReceive last notification of a negated predicate.voidendNested(RequestPredicate predicate) Receive notification of the end of a nested router function.voidendOr()Receive last notification of a logical OR predicate.voidReceive notification of an HTTP header predicate.private voidindent()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.voidresources(Function<ServerRequest, Optional<cn.taketoday.core.io.Resource>> lookupFunction) Receive notification of a resource router function.voidroute(RequestPredicate predicate, HandlerFunction<?> handlerFunction) Receive notification of a standard predicated route to a handler function.voidstartAnd()Receive first notification of a logical AND predicate.voidReceive first notification of a negated predicate.voidstartNested(RequestPredicate predicate) Receive notification of the beginning of a nested router function.voidstartOr()Receive first notification of a logical OR predicate.toString()voidunknown(RequestPredicate predicate) Receive first notification of an unknown predicate.voidunknown(RouterFunction<?> routerFunction) Receive notification of an unknown router function.
-
字段详细资料
-
builder
-
indent
private int indent
-
-
构造器详细资料
-
ToStringVisitor
ToStringVisitor()
-
-
方法详细资料
-
startNested
从接口复制的说明:RouterFunctions.VisitorReceive notification of the beginning of a nested router function.- 指定者:
startNested在接口中RouterFunctions.Visitor- 参数:
predicate- the predicate that applies to the nested router functions- 另请参阅:
-
endNested
从接口复制的说明:RouterFunctions.VisitorReceive notification of the end of a nested router function.- 指定者:
endNested在接口中RouterFunctions.Visitor- 参数:
predicate- the predicate that applies to the nested router functions- 另请参阅:
-
route
从接口复制的说明:RouterFunctions.VisitorReceive notification of a standard predicated route to a handler function.- 指定者:
route在接口中RouterFunctions.Visitor- 参数:
predicate- the predicate that applies to the handler functionhandlerFunction- the handler function.- 另请参阅:
-
resources
public void resources(Function<ServerRequest, Optional<cn.taketoday.core.io.Resource>> lookupFunction) 从接口复制的说明:RouterFunctions.VisitorReceive notification of a resource router function.- 指定者:
resources在接口中RouterFunctions.Visitor- 参数:
lookupFunction- the lookup function for the resources- 另请参阅:
-
attributes
从接口复制的说明:RouterFunctions.VisitorReceive notification of a router function with attributes. The given attributes apply to the router notification that follows this one.- 指定者:
attributes在接口中RouterFunctions.Visitor- 参数:
attributes- the attributes that apply to the following router
-
unknown
从接口复制的说明:RouterFunctions.VisitorReceive notification of an unknown router function. This method is called for router functions that were not created via the variousRouterFunctionsmethods.- 指定者:
unknown在接口中RouterFunctions.Visitor- 参数:
routerFunction- the router function
-
indent
private void indent() -
method
从接口复制的说明:RequestPredicates.VisitorReceive notification of an HTTP method predicate.- 指定者:
method在接口中RequestPredicates.Visitor- 参数:
methods- the HTTP methods that make up the predicate- 另请参阅:
-
path
从接口复制的说明:RequestPredicates.VisitorReceive notification of a path predicate.- 指定者:
path在接口中RequestPredicates.Visitor- 参数:
pattern- the path pattern that makes up the predicate- 另请参阅:
-
pathExtension
从接口复制的说明:RequestPredicates.VisitorReceive notification of a path extension predicate.- 指定者:
pathExtension在接口中RequestPredicates.Visitor- 参数:
extension- the path extension that makes up the predicate- 另请参阅:
-
header
从接口复制的说明:RequestPredicates.VisitorReceive notification of an HTTP header predicate.- 指定者:
header在接口中RequestPredicates.Visitor- 参数:
name- the name of the HTTP header to checkvalue- the desired value of the HTTP header- 另请参阅:
-
param
从接口复制的说明:RequestPredicates.VisitorReceive notification of a parameter predicate.- 指定者:
param在接口中RequestPredicates.Visitor- 参数:
name- the name of the parametervalue- the desired value of the parameter- 另请参阅:
-
startAnd
public void startAnd()从接口复制的说明:RequestPredicates.VisitorReceive first notification of a logical AND predicate. The first subsequent notification will contain the left-hand side of the AND-predicate; followed byRequestPredicates.Visitor.and(), followed by the right-hand side, followed byRequestPredicates.Visitor.endAnd().- 指定者:
startAnd在接口中RequestPredicates.Visitor- 另请参阅:
-
and
public void and()从接口复制的说明:RequestPredicates.VisitorReceive "middle" notification of a logical AND predicate. The following notification contains the right-hand side, followed byRequestPredicates.Visitor.endAnd().- 指定者:
and在接口中RequestPredicates.Visitor- 另请参阅:
-
endAnd
public void endAnd()从接口复制的说明:RequestPredicates.VisitorReceive last notification of a logical AND predicate.- 指定者:
endAnd在接口中RequestPredicates.Visitor- 另请参阅:
-
startOr
public void startOr()从接口复制的说明:RequestPredicates.VisitorReceive 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 byRequestPredicates.Visitor.endOr().- 指定者:
startOr在接口中RequestPredicates.Visitor- 另请参阅:
-
or
public void or()从接口复制的说明:RequestPredicates.VisitorReceive "middle" notification of a logical OR predicate. The following notification contains the right-hand side, followed byRequestPredicates.Visitor.endOr().- 指定者:
or在接口中RequestPredicates.Visitor- 另请参阅:
-
endOr
public void endOr()从接口复制的说明:RequestPredicates.VisitorReceive last notification of a logical OR predicate.- 指定者:
endOr在接口中RequestPredicates.Visitor- 另请参阅:
-
startNegate
public void startNegate()从接口复制的说明:RequestPredicates.VisitorReceive first notification of a negated predicate. The first subsequent notification will contain the negated predicated, followed byRequestPredicates.Visitor.endNegate().- 指定者:
startNegate在接口中RequestPredicates.Visitor- 另请参阅:
-
endNegate
public void endNegate()从接口复制的说明:RequestPredicates.VisitorReceive last notification of a negated predicate.- 指定者:
endNegate在接口中RequestPredicates.Visitor- 另请参阅:
-
unknown
从接口复制的说明:RequestPredicates.VisitorReceive first notification of an unknown predicate.- 指定者:
unknown在接口中RequestPredicates.Visitor
-
toString
-