RouterFunctions
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public default RouterFunction | Returns: a composed function that first routes with this function and then theother function if this function has no resultthe function of type other)T to apply when this function has no resultReturn a composed routing function that first invokes this function,
and then invokes the |
| public default RouterFunction | Returns: a composed function that route torouterFunction if this route does not
match and if predicate appliesthe predicate to test if this route does not match predicate, RouterFunction<T> the router function to route to if this route does not match and
the predicate applies routerFunction)Return a composed routing function that routes to the given router function if this route does not match and the given request predicate applies. |
| public default RouterFunction | Returns: a composed function that first routes with this function and then theother function if this function has no resultthe function to apply when this function has no result other)Return a composed routing function that first invokes this function,
and then invokes the |
| public default RouterFunction | Returns: a composed function that route tohandlerFunction if this route does not
match and if predicate appliesthe predicate to test if this route does not match predicate, HandlerFunction<T> the handler function to route to if this route does not match and
the predicate applies handlerFunction)Return a composed routing function that routes to the given handler function if this route does not match and the given request predicate applies. |
| public default < the filter return type S extends ServerResponse> RouterFunction | Returns: the filtered routing functionthe filter to apply filterFunction)Filter all handler functions routed by this function with the given filter function. |
| public Optional | Returns: anOptional describing the HandlerFunction that matches this request,
or an empty Optional if there is no matchthe request to route request)Return the handler function that matches the given request. |
| public default RouterFunction | Returns: a function that has the specified attributesthe attribute name name, Object the attribute value value)Return a new routing function with the given attribute. |
| public default RouterFunction | Returns: this buildera function that consumes the attributes map attributesConsumer)Return a new routing function with attributes manipulated with the given consumer. |
| accept | back to summary |
|---|---|
| public default void accept(RouterFunctions. Accept the given visitor. Default implementation calls
| |
| and | back to summary |
|---|---|
| public default RouterFunction Return a composed routing function that first invokes this function,
and then invokes the
| |
| andNest | back to summary |
|---|---|
| public default RouterFunction Return a composed routing function that routes to the given router function if this
route does not match and the given request predicate applies. This method is a convenient
combination of
| |
| andOther | back to summary |
|---|---|
| public default RouterFunction Return a composed routing function that first invokes this function,
and then invokes the
| |
| andRoute | back to summary |
|---|---|
| public default RouterFunction Return a composed routing function that routes to the given handler function if this
route does not match and the given request predicate applies. This method is a convenient
combination of
| |
| filter | back to summary |
|---|---|
| public default <S extends ServerResponse> RouterFunction Filter all handler functions routed by this function with the given filter function.
| |
| route | back to summary |
|---|---|
| public Optional Return the handler function that matches the given request.
| |
| withAttribute | back to summary |
|---|---|
| public default RouterFunction Return a new routing function with the given attribute.
| |
| withAttributes | back to summary |
|---|---|
| public default RouterFunction Return a new routing function with attributes manipulated with the given consumer. The map provided to the consumer is "live", so that the consumer can be used
to overwrite existing attributes,
remove attributes, or use any of the other
| |