Class MVCApplication

java.lang.Object
fr.paris.lutece.portal.util.mvc.xpage.MVCApplication
All Implemented Interfaces:
XPageApplication, Serializable

public abstract class MVCApplication extends Object implements XPageApplication
MVC XPage Application
See Also:
  • Constructor Details

    • MVCApplication

      public MVCApplication()
  • Method Details

    • getPage

      public XPage getPage(jakarta.servlet.http.HttpServletRequest request, int nMode, Plugin plugin) throws SiteMessageException, UserNotSignedException
      Returns the content of the XPage based on the current HTTP request.

      This method is the entry point for the Lutece MVCXPage system. It delegates the request to the appropriate controller method (action or view) using processController, which handles annotation-based dispatching.

      Specified by:
      getPage in interface XPageApplication
      Parameters:
      request - the incoming HttpServletRequest
      nMode - the current portal mode (e.g., normal, admin)
      plugin - the plugin from which this XPage originates
      Returns:
      the resolved XPage object to be rendered
      Throws:
      SiteMessageException - if a site message needs to be displayed instead of the standard page content
      UserNotSignedException - if a view requires authentication and the user is not currently signed in
    • getRealClass

      public Class<?> getRealClass()