Class ContextPathCompositeHandler
java.lang.Object
org.springframework.http.server.reactive.ContextPathCompositeHandler
- All Implemented Interfaces:
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().
- since:
- 5.0
- Author:
- Rossen stoyanchev
-
Constructor summary
ConstructorsConstructorDescriptionContextPathCompositeHandler(Map<string, ? extends HttpHandler> handlerMap) -
Method summary
Modifier and TypeMethodDescriptionhandle(serverHttpRequest request, serverHttpResponse response) Handle the given request and write to the response.
-
Constructor Details
-
ContextPathCompositeHandler
-
-
Method Details
-
handle
public Mono<Void> handle(serverHttpRequest request, serverHttpResponse response) Description copied from interface: HttpHandlerHandle the given request and write to the response.- specified by:
handle in interface HttpHandler- Parameters:
request- current requestresponse- current response- Returns:
- indicates completion of request handling
-