static final class RouterFunctions.FilteredRouterFunction<T extends ServerResponse,S extends ServerResponse> extends java.lang.Object implements RouterFunction<S>
Modifier and Type | Field and Description |
---|---|
private HandlerFilterFunction<T,S> |
filterFunction |
private RouterFunction<T> |
routerFunction |
Constructor and Description |
---|
FilteredRouterFunction(RouterFunction<T> routerFunction,
HandlerFilterFunction<T,S> filterFunction) |
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.
|
java.lang.String |
toString() |
private final RouterFunction<T extends ServerResponse> routerFunction
private final HandlerFilterFunction<T extends ServerResponse,S extends ServerResponse> filterFunction
public FilteredRouterFunction(RouterFunction<T> routerFunction, HandlerFilterFunction<T,S> filterFunction)
public <any> route(ServerRequest request)
RouterFunction
route
in interface RouterFunction<S extends ServerResponse>
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 functionaccept
in interface RouterFunction<S extends ServerResponse>
visitor
- the visitor to acceptpublic java.lang.String toString()
toString
in class java.lang.Object