private static class RouterFunctions.ResourcesRouterFunction extends RouterFunctions.AbstractRouterFunction<ServerResponse>
Modifier and Type | Field and Description |
---|---|
private java.util.function.Function<ServerRequest,<any>> |
lookupFunction |
Constructor and Description |
---|
ResourcesRouterFunction(java.util.function.Function<ServerRequest,<any>> lookupFunction) |
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 java.util.function.Function<ServerRequest,<any>> lookupFunction
public ResourcesRouterFunction(java.util.function.Function<ServerRequest,<any>> lookupFunction)
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