Interface HandlerMapping

    • Method Detail

      • 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.

        Parameters:
        request - current portlet request
        Returns:
        a HandlerExecutionChain instance containing handler object and any interceptors, or null if no mapping found
        Throws:
        Exception - if there is an internal error