| Modifier and Type | Field and Description |
|---|---|
| private final BindingContext | |
| private DispatchExceptionHandler | |
| private Function | |
| private final Object | |
| private final ResolvableType | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | HandlerResult(Object
the handler that handled the request handler, Object the return value from the handler possibly returnValue, MethodParameter nullthe return value type returnType)Create a new |
| public | HandlerResult(Object
the handler that handled the request handler, Object the return value from the handler possibly returnValue, MethodParameter nullthe return value type returnType, BindingContext the binding context used for request handling context)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public Mono | Returns: the new result or the same error if there is no exception handlerthe exception failure)
Deprecated
for removal since 6.0. without a replacement; for internal invocation only, not used as of 6.0
Apply the exception handler and return the alternative result. |
| public BindingContext | |
| public DispatchExceptionHandler | |
| public Object | |
| public Model | |
| public ResolvableType | getReturnType()
Return the type of the value returned from the handler -- e.g. the return type declared on a controller method's signature. |
| public MethodParameter | |
| public Object | |
| public boolean | hasExceptionHandler()
Deprecated
for removal since 6.0. in favor of checking via
getExceptionHandler()
Whether there is an exception handler. |
| public HandlerResult | setExceptionHandler(DispatchExceptionHandler
the exception handler to use exceptionHandler)
|
| public HandlerResult | Returns: the current instancethe error handler function)
Deprecated
for removal since 6.0. in favor of
setExceptionHandler(DispatchExceptionHandler)
|
| bindingContext | back to summary |
|---|---|
| private final BindingContext bindingContext | |
| exceptionHandler | back to summary |
|---|---|
| private DispatchExceptionHandler exceptionHandler
| |
| exceptionHandlerFunction | back to summary |
|---|---|
| private Function<Throwable, Mono<HandlerResult>> exceptionHandlerFunction
| |
| handler | back to summary |
|---|---|
| private final Object handler | |
| returnType | back to summary |
|---|---|
| private final ResolvableType returnType | |
| returnValue | back to summary |
|---|---|
| private final Object returnValue
| |
| HandlerResult | back to summary |
|---|---|
| public HandlerResult(Object handler, Object returnValue, MethodParameter returnType) Create a new
| |
| HandlerResult | back to summary |
|---|---|
| public HandlerResult(Object handler, Object returnValue, MethodParameter returnType, BindingContext context) Create a new
| |
| applyExceptionHandler | back to summary |
|---|---|
| public Mono Deprecated for removal since 6.0. without a replacement; for internal invocation only, not used as of 6.0 Apply the exception handler and return the alternative result.
| |
| getBindingContext | back to summary |
|---|---|
| public BindingContext getBindingContext() Return the BindingContext used for request handling. | |
| getExceptionHandler | back to summary |
|---|---|
| public DispatchExceptionHandler getExceptionHandler() Return the
| |
| getHandler | back to summary |
|---|---|
| public Object getHandler() Return the handler that handled the request. | |
| getModel | back to summary |
|---|---|
| public Model getModel() Return the model used for request handling. This is a shortcut for
| |
| getReturnType | back to summary |
|---|---|
| public ResolvableType getReturnType() Return the type of the value returned from the handler -- e.g. the return
type declared on a controller method's signature. Also see
| |
| getReturnTypeSource | back to summary |
|---|---|
| public MethodParameter getReturnTypeSource() Return the | |
| getReturnValue | back to summary |
|---|---|
| public Object getReturnValue() Return the value returned from the handler, if any.
| |
| hasExceptionHandler | back to summary |
|---|---|
| public boolean hasExceptionHandler()
Whether there is an exception handler.
| |
| setExceptionHandler | back to summary |
|---|---|
| public HandlerResult setExceptionHandler(DispatchExceptionHandler exceptionHandler)
| |
| setExceptionHandler | back to summary |
|---|---|
| public HandlerResult setExceptionHandler(Function<Throwable, Mono<HandlerResult>> function)
| |