接口的使用
org.springframework.http.server.reactive.HttpHandler
使用HttpHandler的程序包 程序包 说明 org.springframework.http.server.reactive Abstractions for reactive HTTP server support including aServerHttpRequest
andServerHttpResponse
along with anHttpHandler
for processing.org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient
.org.springframework.web.reactive.function.server Provides the types that make up Spring's functional web framework for Reactive environments.org.springframework.web.server.adapter Implementations to adapt to the underlyingorg.springframework.http.client.reactive
reactive HTTP adapter andHttpHandler
.org.springframework.http.server.reactive中HttpHandler的使用
实现HttpHandler的org.springframework.http.server.reactive中的类 修饰符和类型 类 说明 class
ContextPathCompositeHandler
HttpHandler
delegating requests to one of severalHttpHandler
's based on simple, prefix-based mappings.参数类型为HttpHandler的org.springframework.http.server.reactive中的构造器 构造器 说明 JettyHttpHandlerAdapter(HttpHandler httpHandler)
ReactorHttpHandlerAdapter(HttpHandler httpHandler)
ServletHttpHandlerAdapter(HttpHandler httpHandler)
TomcatHttpHandlerAdapter(HttpHandler httpHandler)
UndertowHttpHandlerAdapter(HttpHandler httpHandler)
类型变量类型为HttpHandler的org.springframework.http.server.reactive中的构造器参数 构造器 说明 ContextPathCompositeHandler(Map<String,? extends HttpHandler> handlerMap)
org.springframework.test.web.reactive.server中HttpHandler的使用
参数类型为HttpHandler的org.springframework.test.web.reactive.server中的构造器 构造器 说明 HttpHandlerConnector(HttpHandler handler)
Constructor with theHttpHandler
to handle requests with.org.springframework.web.reactive.function.server中HttpHandler的使用
返回HttpHandler的org.springframework.web.reactive.function.server中的方法 修饰符和类型 方法 说明 static HttpHandler
RouterFunctions. toHttpHandler(RouterFunction<?> routerFunction)
Convert the given router function into aHttpHandler
.static HttpHandler
RouterFunctions. toHttpHandler(RouterFunction<?> routerFunction, HandlerStrategies strategies)
Convert the given router function into aHttpHandler
, using the given strategies.org.springframework.web.server.adapter中HttpHandler的使用
实现HttpHandler的org.springframework.web.server.adapter中的类 修饰符和类型 类 说明 class
HttpWebHandlerAdapter
Default adapter ofWebHandler
to theHttpHandler
contract.返回HttpHandler的org.springframework.web.server.adapter中的方法 修饰符和类型 方法 说明 HttpHandler
WebHttpHandlerBuilder. build()
Build theHttpHandler
.