private static class HttpHandlerAdapterSupport.CompositeHttpHandler extends java.lang.Object implements HttpHandler
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,HttpHandler> |
handlerMap |
Constructor and Description |
---|
CompositeHttpHandler(java.util.Map<java.lang.String,HttpHandler> handlerMap) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
getPathToUse(ServerHttpRequest request)
Strip the context path from the native request, if any.
|
<any> |
handle(ServerHttpRequest request,
ServerHttpResponse response)
Handle the given request and generate a response.
|
private static java.util.Map<java.lang.String,HttpHandler> |
initHandlerMap(java.util.Map<java.lang.String,HttpHandler> inputMap) |
private static void |
validateContextPath(java.lang.String contextPath) |
private final java.util.Map<java.lang.String,HttpHandler> handlerMap
public CompositeHttpHandler(java.util.Map<java.lang.String,HttpHandler> handlerMap)
private static java.util.Map<java.lang.String,HttpHandler> initHandlerMap(java.util.Map<java.lang.String,HttpHandler> inputMap)
private static void validateContextPath(java.lang.String contextPath)
public <any> handle(ServerHttpRequest request, ServerHttpResponse response)
HttpHandler
handle
in interface HttpHandler
request
- current HTTP requestresponse
- current HTTP responseMono<Void>
to indicate when request handling is completeprivate java.lang.String getPathToUse(ServerHttpRequest request)