Class NonResettingRestartException

  • All Implemented Interfaces:
    java.io.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
    • Method Summary

      • Methods inherited from class org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException

        fillInStackTrace, getRemoveScheduled, getReplacementRequestHandler
      • Methods inherited from class java.lang.Throwable

        addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NonResettingRestartException

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

        public NonResettingRestartException​(java.lang.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​(java.lang.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​(java.lang.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