程序包 cn.taketoday.web

接口 HttpRequestHandler

所有已知子接口:
Controller
所有已知实现类:
AbstractController, AbstractHandlerMapping.PreFlightHandler, AbstractUrlViewController, ActionMappingAnnotationHandler, DefaultServletHttpRequestHandler, HandlerExecutionChain, InterceptableRequestHandler, NotFoundHandler, ParameterizableViewController, ResourceHttpRequestHandler, ServletForwardingController, ServletWrappingController, SingletonActionMappingAnnotationHandler, SuppliedActionMappingAnnotationHandler, UrlFilenameViewController
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface HttpRequestHandler
Plain handler interface for components that process HTTP requests
从以下版本开始:
2019-12-21 17:37
作者:
Harry Yang
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final Object
    This value indicates that the handler did not return a value, or the result has been processed
  • 方法概要

    修饰符和类型
    方法
    说明
    Process the request and return a result object which the DispatcherHandler will handle.
  • 字段详细资料

    • NONE_RETURN_VALUE

      static final Object NONE_RETURN_VALUE
      This value indicates that the handler did not return a value, or the result has been processed
  • 方法详细资料

    • handleRequest

      @Nullable Object handleRequest(RequestContext request) throws Throwable
      Process the request and return a result object which the DispatcherHandler will handle. A null return value is not an error: it indicates that this handler completed request processing itself and that there is therefore no explicit result to handle. a NONE_RETURN_VALUE indicates that no result to handle by ReturnValueHandler
      参数:
      request - Current request context
      返回:
      Result to be handled by ReturnValueHandler
      抛出:
      Throwable - If any exception occurred
      另请参阅: