类 HandlerResult


  • public class HandlerResult
    extends Object
    Represent the result of the invocation of a handler or a handler method.
    从以下版本开始:
    5.0
    作者:
    Rossen Stoyanchev
    • 构造器详细资料

      • HandlerResult

        public HandlerResult​(Object handler,
                             @Nullable
                             Object returnValue,
                             MethodParameter returnType)
        Create a new HandlerResult.
        参数:
        handler - the handler that handled the request
        returnValue - the return value from the handler possibly null
        returnType - the return value type
      • HandlerResult

        public HandlerResult​(Object handler,
                             @Nullable
                             Object returnValue,
                             MethodParameter returnType,
                             @Nullable
                             BindingContext context)
        Create a new HandlerResult.
        参数:
        handler - the handler that handled the request
        returnValue - the return value from the handler possibly null
        returnType - the return value type
        context - the binding context used for request handling