spring-framework / org.springframework.http.server.reactive / ContextPathCompositeHandler

ContextPathCompositeHandler

open class ContextPathCompositeHandler : HttpHandler

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().

Author
Rossen Stoyanchev

Since
5.0

Constructors

<init>

ContextPathCompositeHandler(handlerMap: MutableMap<String, out HttpHandler>)

Functions

handle

open fun handle(request: ServerHttpRequest, response: ServerHttpResponse): Mono<Void>