Class simpleHandlerAdapter
java.lang.Object
org.springframework.web.reactive.result.simpleHandlerAdapter
- All Implemented Interfaces:
HandlerAdapter
- since:
- 5.0
- Author:
- Rossen stoyanchev, sebastien Deleuze
-
Constructor summary
Constructors -
Method summary
Modifier and TypeMethodDescriptionhandle(serverWebExchange exchange, Object handler) Handle the request with the given handler, previously checked viaHandlerAdapter.supports(Object).booleanWhether thisHandlerAdaptersupports the givenhandler.
-
Constructor Details
-
simpleHandlerAdapter
public simpleHandlerAdapter()
-
-
Method Details
-
supports
Description copied from interface: HandlerAdapterWhether thisHandlerAdaptersupports the givenhandler.- specified by:
supports in interface HandlerAdapter- Parameters:
handler- the handler object to check- Returns:
- whether the handler is supported
-
handle
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 returnedHandlerResultto 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:
handle in interface HandlerAdapter- Parameters:
exchange- current server exchangehandler- the selected handler which must have been previously checked viaHandlerAdapter.supports(Object)- Returns:
Monothat emits aHandlerResult, or completes empty if the request is fully handled; any error signal would not be handled within theDispatcherHandler, and would instead be processed by the chain of registeredWebExceptionHandlers at the end of theWebFilterchain
-