Class NonResettingRestartException

  • All Implemented Interfaces:
    Serializable

    public class NonResettingRestartException
    extends org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
    Causes Wicket to interrupt current request processing and immediately respond with the specified page. Does not reset the header meta data (e.g. cookies).
    See Also:
    RestartResponseException, Serialized Form
    • Constructor Detail

      • NonResettingRestartException

        public NonResettingRestartException​(Class<? extends Page> pageClass)
        Constructor.
        Parameters:
        pageClass - the class of the new page that should be rendered
      • NonResettingRestartException

        public NonResettingRestartException​(Class<? extends Page> pageClass,
                                            org.apache.wicket.request.mapper.parameter.PageParameters params)
        Constructor.
        Parameters:
        pageClass - the class of the new page that should be rendered
        params - the page parameters to use for the new page
      • NonResettingRestartException

        public NonResettingRestartException​(Class<? extends Page> pageClass,
                                            org.apache.wicket.request.mapper.parameter.PageParameters params,
                                            RenderPageRequestHandler.RedirectPolicy redirectPolicy)
        Constructor.
        Parameters:
        pageClass - the class of the new page that should be rendered
        params - the page parameters to use for the new page
        redirectPolicy - the policy that mandates whether to do a redirect
      • NonResettingRestartException

        public NonResettingRestartException​(String redirectUrl)
        Constructor.
        Parameters:
        redirectUrl - URL to redirect to.
      • NonResettingRestartException

        public NonResettingRestartException​(org.apache.wicket.request.IRequestHandler handler,
                                            boolean removeAll)
        Constructor.
        Parameters:
        handler - the IRequestHandler to use
        removeScheduled - a flag indicating whether to remove already a scheduled IRequestHandler