HttpHandler delegating requests to one of several HttpHandler's
based on simple, prefix-based mappings.
This is intended as a coarse-grained mechanism for delegating requests to
one of several applications -- each represented by an HttpHandler, with
the application "context path" (the prefix-based mapping) exposed via
ServerHttpRequest#getPath().
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public Mono | handle(ServerHttpRequest
current request request, ServerHttpResponse current response response)Implements org. Handle the given request and write to the response. |
| private static Map |
| handlerMap | back to summary |
|---|---|
| private final Map<String, HttpHandler> handlerMap | |
| ContextPathCompositeHandler | back to summary |
|---|---|
| public ContextPathCompositeHandler(Map<String, ? extends HttpHandler> handlerMap) | |
| assertValidContextPath | back to summary |
|---|---|
| private static void assertValidContextPath(String contextPath) | |
| handle | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Handle the given request and write to the response.
| |
| initHandlers | back to summary |
|---|---|
| private static Map | |