T
- the server response typestatic final class RouterFunctions.SameComposedRouterFunction<T extends ServerResponse> extends RouterFunctions.AbstractRouterFunction<T>
T
) if this route had
no result.Modifier and Type | Field and Description |
---|---|
private RouterFunction<T> |
first |
private RouterFunction<T> |
second |
Constructor and Description |
---|
SameComposedRouterFunction(RouterFunction<T> first,
RouterFunction<T> second) |
Modifier and Type | Method and Description |
---|---|
void |
accept(RouterFunctions.Visitor visitor)
Accept the given visitor.
|
<any> |
route(ServerRequest request)
Return the handler function that matches the given request.
|
toString
private final RouterFunction<T extends ServerResponse> first
private final RouterFunction<T extends ServerResponse> second
public SameComposedRouterFunction(RouterFunction<T> first, RouterFunction<T> second)
public <any> route(ServerRequest request)
RouterFunction
request
- the request to routeMono
describing the HandlerFunction
that matches this request,
or an empty Mono
if there is no matchpublic void accept(RouterFunctions.Visitor visitor)
RouterFunction
RouterFunctions.Visitor.unknown(RouterFunction)
; composed RouterFunction
implementations are expected to call accept
for all components that make up this
router function.visitor
- the visitor to accept