RouterFunctions.Visitor that changes the
PathPatternParser on path-related request predicates
(i.e. RequestPredicates.PathPatternPredicate.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ChangePathPatternParserVisitor.
Interface implemented by predicates that can change the parser. |
| Modifier and Type | Field and Description |
|---|---|
| private final PathPatternParser |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| private void | |
| 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 | 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 | 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 | unknown(RouterFunction<?>
the router function routerFunction)Implements org. Receive notification of an unknown router function. |
| parser | back to summary |
|---|---|
| private final PathPatternParser parser | |
| ChangePathPatternParserVisitor | back to summary |
|---|---|
| public ChangePathPatternParserVisitor(PathPatternParser parser) | |
| 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. | |
| changeParser | back to summary |
|---|---|
| private void changeParser(RequestPredicate 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.
| |
| 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.
| |
| startNested | back to summary |
|---|---|
| public void startNested(RequestPredicate predicate) Implements org. Doc from org. Receive notification of the beginning of a nested router function.
| |
| 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
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| changeParser | back to summary |
|---|---|
| public void changeParser(PathPatternParser parser) | |