spring 5.0 webflux HTTP请求处理 时序图
2021-06-08 09:24:12 2 举报
Spring 5.0 Webflux HTTP请求处理 时序图
作者其他创作
大纲/内容
handle
HttpServerHandle
1.RouterFunctionMapping2.RequestMappingHandlerMapping3.WebFluxConfigurationSupport$EmptyHandlerMapping
ExceptionHandlingWebHandler
- exceptionHandlers:List<WebExceptionHandler>
+ handle(exchange)+ getExceptionHandlers()
onStateChange
MonoOnErrorResume
HttpHandler
defer mono
WebHandler
+ handle( exchange)
ApplicationContextAware
+ setApplicationContext( applicationContext)
WebHandlerDecorator
- delegate:WebHandler
+ getDelegate()+ handle(exchange)
XXXExceptionHandler
1.ResponseEntityResultHandler2.ServerResponseResultHandler3.ResponseBodyResultHandler4.ViewResolutionResultHandler
XXXFilter
DispatcherHandler
- handlerMappings:List<HandlerMapping>- handlerAdapters:List<HandlerAdapter>- resultHandlers:List<HandlerResultHandler>
mono
defer mono
FilteringWebHandler
- chain:DefaultWebFilterChain
+ getFilters()+ handle(exchange)
apply
AbstractErrorWebExceptionHandler
handle(exchange)
HttpWebHandlerAdapter
- sessionManager:WebSessionManager- codecConfigurer:ServerCodecConfigurer- localeContextResolver:LocaleContextResolver- forwardedHeaderTransformer:ForwardedHeaderTransformer- applicationContext ApplicationContext
ReactiveWebServerApplicationContext$ServerManager
ReactorHttpHandlerAdapter
1.RequestMappingHandlerAdapter2.HandlerFunctionAdapter3.SimpleHandlerAdapter
mono
filter(exchange)
DefaultWebFilterChain
mono.subscribe(connection)
0 条评论
下一页