Class SimpleHandlerAdapter
java.lang.Object
org.springframework.web.reactive.result.SimpleHandlerAdapter
- All Implemented Interfaces:
- HandlerAdapter
- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Sebastien Deleuze
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<HandlerResult>handle(ServerWebExchange exchange, Object handler) Handle the request with the given handler, previously checked viaHandlerAdapter.supports(Object).booleanWhether thisHandlerAdaptersupports the givenhandler.
- 
Constructor Details- 
SimpleHandlerAdapterpublic SimpleHandlerAdapter()
 
- 
- 
Method Details- 
supportsDescription copied from interface:HandlerAdapterWhether thisHandlerAdaptersupports the givenhandler.- Specified by:
- supportsin interface- HandlerAdapter
- Parameters:
- handler- the handler object to check
- Returns:
- whether the handler is supported
 
- 
handlepublic reactor.core.publisher.Mono<HandlerResult> handle(ServerWebExchange exchange, Object handler) Description copied from interface:HandlerAdapterHandle the request with the given handler, previously checked viaHandlerAdapter.supports(Object).Implementations should consider the following for exception handling: - Handle invocation exceptions within this method.
- Set an exception handleron the returned- HandlerResultto handle deferred exceptions from asynchronous return values, and to handle exceptions from response rendering.
- Implement DispatchExceptionHandlerto extend exception handling to exceptions that occur before a handler is selected.
 - Specified by:
- handlein interface- HandlerAdapter
- Parameters:
- exchange- current server exchange
- handler- the selected handler which must have been previously checked via- HandlerAdapter.supports(Object)
- Returns:
- Monothat emits a- HandlerResult, or completes empty if the request is fully handled; any error signal would not be handled within the- DispatcherHandler, and would instead be processed by the chain of registered- WebExceptionHandlers at the end of the- WebFilterchain
 
 
-