类 ContextPathCompositeHandler
java.lang.Object
cn.taketoday.http.server.reactive.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().
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static voidassertValidContextPath(String contextPath) reactor.core.publisher.Mono<Void>handle(ServerHttpRequest request, ServerHttpResponse response) Handle the given request and write to the response.private static LinkedHashMap<String,HttpHandler> initHandlers(Map<String, ? extends HttpHandler> map)
-
字段详细资料
-
handlerMap
-
-
构造器详细资料
-
ContextPathCompositeHandler
-
-
方法详细资料
-
initHandlers
private static LinkedHashMap<String,HttpHandler> initHandlers(Map<String, ? extends HttpHandler> map) -
assertValidContextPath
-
handle
public reactor.core.publisher.Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response) 从接口复制的说明:HttpHandlerHandle the given request and write to the response.- 指定者:
handle在接口中HttpHandler- 参数:
request- current requestresponse- current response- 返回:
- indicates completion of request handling
-