public class HandlerResult extends Object
| Constructor and Description | 
|---|
| HandlerResult(Object handler,
             Object returnValue,
             MethodParameter returnType)Create a new  HandlerResult. | 
| HandlerResult(Object handler,
             Object returnValue,
             MethodParameter returnType,
             BindingContext context)Create a new  HandlerResult. | 
| Modifier and Type | Method and Description | 
|---|---|
| reactor.core.publisher.Mono<HandlerResult> | applyExceptionHandler(Throwable failure)Apply the exception handler and return the alternative result. | 
| BindingContext | getBindingContext()Return the BindingContext used for request handling. | 
| Object | getHandler()Return the handler that handled the request. | 
| Model | getModel()Return the model used for request handling. | 
| ResolvableType | getReturnType()Return the type of the value returned from the handler -- e.g. | 
| MethodParameter | getReturnTypeSource()Return the  MethodParameterfrom whichreturnTypewas created. | 
| Object | getReturnValue()Return the value returned from the handler, if any. | 
| boolean | hasExceptionHandler()Whether there is an exception handler. | 
| HandlerResult | setExceptionHandler(Function<Throwable,reactor.core.publisher.Mono<HandlerResult>> function)Configure an exception handler that may be used to produce an alternative
 result when result handling fails. | 
public HandlerResult(Object handler, @Nullable Object returnValue, MethodParameter returnType)
HandlerResult.handler - the handler that handled the requestreturnValue - the return value from the handler possibly nullreturnType - the return value typepublic HandlerResult(Object handler, @Nullable Object returnValue, MethodParameter returnType, @Nullable BindingContext context)
HandlerResult.handler - the handler that handled the requestreturnValue - the return value from the handler possibly nullreturnType - the return value typecontext - the binding context used for request handlingpublic Object getHandler()
@Nullable public Object getReturnValue()
public ResolvableType getReturnType()
getReturnTypeSource() to obtain the underlying
 MethodParameter for the return type.public MethodParameter getReturnTypeSource()
MethodParameter from which returnType was created.public BindingContext getBindingContext()
public Model getModel()
getBindingContext().getModel().public HandlerResult setExceptionHandler(Function<Throwable,reactor.core.publisher.Mono<HandlerResult>> function)
function - the error handlerpublic boolean hasExceptionHandler()
public reactor.core.publisher.Mono<HandlerResult> applyExceptionHandler(Throwable failure)
failure - the exception