类 ContextPathCompositeHandler
- java.lang.Object
- org.springframework.http.server.reactive.ContextPathCompositeHandler
- 所有已实现的接口:
HttpHandler
public class ContextPathCompositeHandler extends Object implements HttpHandler
HttpHandler
delegating requests to one of severalHttpHandler
'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 viaServerHttpRequest.getPath()
.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 ContextPathCompositeHandler(Map<String,? extends HttpHandler> handlerMap)
构造器详细资料
ContextPathCompositeHandler
public ContextPathCompositeHandler(Map<String,? extends HttpHandler> handlerMap)
方法详细资料
handle
public reactor.core.publisher.Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response)
从接口复制的说明:HttpHandler
Handle the given request and write to the response.- 指定者:
handle
在接口中HttpHandler
- 参数:
request
- current requestresponse
- current response- 返回:
- indicates completion of request handling