RouterFunctions.Visitor that creates a formatted
string representation of router functions.
| Modifier and Type | Field and Description |
|---|---|
| private final StringBuilder | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | and()
Implements org. Receive "middle" notification of a logical AND predicate. |
| public void | attributes(Map<String, Object>
the attributes that apply to the following router attributes)Implements org. Receive notification of a router function with attributes. |
| public void | endAnd()
Implements org. Receive last notification of a logical AND predicate. |
| public void | endNegate()
Implements org. Receive last notification of a negated predicate. |
| public void | endNested(RequestPredicate
the predicate that applies to the nested router functions predicate)Implements org. Receive notification of the end of a nested router function. |
| public void | endOr()
Implements org. Receive last notification of a logical OR predicate. |
| public void | header(String
the name of the HTTP header to check name, String the desired value of the HTTP header value)Implements org. Receive notification of an HTTP header predicate. |
| private void | |
| public void | method(Set<HttpMethod>
the HTTP methods that make up the predicate methods)Implements org. Receive notification of an HTTP method predicate. |
| public void | or()
Implements org. Receive "middle" notification of a logical OR predicate. |
| public void | param(String
the name of the parameter name, String the desired value of the parameter value)Implements org. Receive notification of a parameter predicate. |
| public void | path(String
the path pattern that makes up the predicate pattern)Implements org. Receive notification of a path predicate. |
| public void | pathExtension(String
the path extension that makes up the predicate extension)Implements org. Receive notification of a path extension predicate. |
| public void | resources(Function<ServerRequest, Optional<Resource>>
the lookup function for the resources lookupFunction)Implements org. Receive notification of a resource router function. |
| public void | route(RequestPredicate
the predicate that applies to the handler function predicate, HandlerFunction<?> the handler function. handlerFunction)Implements org. Receive notification of a standard predicated route to a handler function. |
| public void | startAnd()
Implements org. Receive first notification of a logical AND predicate. |
| public void | startNegate()
Implements org. Receive first notification of a negated predicate. |
| public void | startNested(RequestPredicate
the predicate that applies to the nested router functions predicate)Implements org. Receive notification of the beginning of a nested router function. |
| public void | startOr()
Implements org. Receive first notification of a logical OR predicate. |
| public String | |
| public void | unknown(RouterFunction<?>
the router function routerFunction)Implements org. Receive notification of an unknown router function. |
| public void | unknown(RequestPredicate predicate)
Implements org. Receive first notification of an unknown predicate. |
| builder | back to summary |
|---|---|
| private final StringBuilder builder | |
| indent | back to summary |
|---|---|
| private int indent | |
| ToStringVisitor | back to summary |
|---|---|
| pack-priv ToStringVisitor() | |
| and | back to summary |
|---|---|
| public void and() Implements org. Doc from org. Receive "middle" notification of a logical AND predicate.
The following notification contains the right-hand side, followed by
| |
| attributes | back to summary |
|---|---|
| public void attributes(Map<String, Object> attributes) Implements org. Doc from org. Receive notification of a router function with attributes. The given attributes apply to the router notification that follows this one. | |
| endAnd | back to summary |
|---|---|
| public void endAnd() Implements org. Doc from org. Receive last notification of a logical AND predicate.
| |
| endNegate | back to summary |
|---|---|
| public void endNegate() Implements org. Doc from org. Receive last notification of a negated predicate.
| |
| endNested | back to summary |
|---|---|
| public void endNested(RequestPredicate predicate) Implements org. Doc from org. Receive notification of the end of a nested router function.
| |
| endOr | back to summary |
|---|---|
| public void endOr() Implements org. Doc from org. Receive last notification of a logical OR predicate.
| |
| header | back to summary |
|---|---|
| public void header(String name, String value) Implements org. Doc from org. Receive notification of an HTTP header predicate. | |
| indent | back to summary |
|---|---|
| private void indent() | |
| method | back to summary |
|---|---|
| public void method(Set<HttpMethod> methods) Implements org. Doc from org. Receive notification of an HTTP method predicate.
| |
| or | back to summary |
|---|---|
| public void or() Implements org. Doc from org. Receive "middle" notification of a logical OR predicate.
The following notification contains the right-hand side, followed by
| |
| param | back to summary |
|---|---|
| public void param(String name, String value) Implements org. Doc from org. Receive notification of a parameter predicate. | |
| path | back to summary |
|---|---|
| public void path(String pattern) Implements org. Doc from org. Receive notification of a path predicate. | |
| pathExtension | back to summary |
|---|---|
| public void pathExtension(String extension) Implements org. Doc from org. Receive notification of a path extension predicate. | |
| resources | back to summary |
|---|---|
| public void resources(Function<ServerRequest, Optional<Resource>> lookupFunction) Implements org. Doc from org. Receive notification of a resource router function.
| |
| route | back to summary |
|---|---|
| public void route(RequestPredicate predicate, HandlerFunction<?> handlerFunction) Implements org. Doc from org. Receive notification of a standard predicated route to a handler function.
| |
| startAnd | back to summary |
|---|---|
| public void startAnd() Implements org. Doc from org. Receive first notification of a logical AND predicate.
The first subsequent notification will contain the left-hand side of the AND-predicate;
followed by
| |
| startNegate | back to summary |
|---|---|
| public void startNegate() Implements org. Doc from org. Receive first notification of a negated predicate.
The first subsequent notification will contain the negated predicated, followed
by
| |
| startNested | back to summary |
|---|---|
| public void startNested(RequestPredicate predicate) Implements org. Doc from org. Receive notification of the beginning of a nested router function.
| |
| startOr | back to summary |
|---|---|
| public void startOr() Implements org. Doc from org. 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 by
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unknown | back to summary |
|---|---|
| public void unknown(RouterFunction<?> routerFunction) Implements org. Doc from org. Receive notification of an unknown router function. This method is called for router
functions that were not created via the various
| |
| unknown | back to summary |
|---|---|
| public void unknown(RequestPredicate predicate) Implements org. Doc from org. Receive first notification of an unknown predicate.
| |