接口 HandlerMapping

    • 方法详细资料

      • getHandler

        HandlerExecutionChain getHandler​(PortletRequest request)
                                  throws Exception
        Return a handler and any interceptors for this request. The choice may be made on portlet mode, 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 DispatcherPortlet will query all registered HandlerMapping beans to find a match, and only decide there is an error if none can find a handler.

        参数:
        request - current portlet request
        返回:
        a HandlerExecutionChain instance containing handler object and any interceptors, or null if no mapping found
        抛出:
        Exception - if there is an internal error