类 ExceptionHandlingWebHandler
- java.lang.Object
- org.springframework.web.server.handler.WebHandlerDecorator
- org.springframework.web.server.handler.ExceptionHandlingWebHandler
- 所有已实现的接口:
WebHandler
public class ExceptionHandlingWebHandler extends WebHandlerDecorator
WebHandler decorator that invokes one or moreWebExceptionHandlersafter the delegateWebHandler.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 ExceptionHandlingWebHandler(WebHandler delegate, List<WebExceptionHandler> handlers)Create anExceptionHandlingWebHandlerfor the given delegate.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<WebExceptionHandler>getExceptionHandlers()Return a read-only list of the configured exception handlers.reactor.core.publisher.Mono<Void>handle(ServerWebExchange exchange)Handle the web server exchange.从类继承的方法 org.springframework.web.server.handler.WebHandlerDecorator
getDelegate, toString
构造器详细资料
ExceptionHandlingWebHandler
public ExceptionHandlingWebHandler(WebHandler delegate, List<WebExceptionHandler> handlers)
Create anExceptionHandlingWebHandlerfor the given delegate.- 参数:
delegate- the WebHandler delegatehandlers- the WebExceptionHandlers to apply
方法详细资料
getExceptionHandlers
public List<WebExceptionHandler> getExceptionHandlers()
Return a read-only list of the configured exception handlers.
handle
public reactor.core.publisher.Mono<Void> handle(ServerWebExchange exchange)
从接口复制的说明:WebHandlerHandle the web server exchange.- 指定者:
handle在接口中WebHandler- 覆盖:
handle在类中WebHandlerDecorator- 参数:
exchange- the current server exchange- 返回:
Mono<Void>to indicate when request handling is complete