类 HandlerRegistries

java.lang.Object
cn.taketoday.web.handler.HandlerRegistries
所有已实现的接口:
HandlerMapping

public class HandlerRegistries extends Object implements HandlerMapping
Composite HandlerMapping
作者:
TODAY 2019-12-08 23:15
  • 字段详细资料

    • handlerRegistries

      private final HandlerMapping[] handlerRegistries
  • 构造器详细资料

  • 方法详细资料

    • getHandler

      public Object getHandler(RequestContext request) throws Exception
      从接口复制的说明: HandlerMapping
      Return a handler and any interceptors for this request. The choice may be made on request URL, session state, or any factor the implementing class chooses.

      The returned HandlerExecutionChain contains a handler Object, rather than even a tag interface, so that handlers are not constrained in any way. For example, a HandlerAdapter could be written to allow another framework's handler objects to be used.

      Returns null if no match was found. This is not an error. The DispatcherServlet will query all registered HandlerMapping beans to find a match, and only decide there is an error if none can find a handler.

      指定者:
      getHandler 在接口中 HandlerMapping
      参数:
      request - Current request context
      返回:
      a fgA instance containing handler object and any interceptors, or null if no mapping found
      抛出:
      Exception - if there is an internal error