Class RestartResponseException

  • All Implemented Interfaces:
    Serializable

    public class RestartResponseException
    extends org.apache.wicket.request.flow.ResetResponseException
    Causes Wicket to interrupt current request processing and immediately respond with the specified page.
    Author:
    Igor Vaynberg (ivaynberg)
    See Also:
    NonResettingRestartException, Serialized Form
    • Constructor Detail

      • RestartResponseException

        public RestartResponseException​(Class<C> pageClass)
        Redirects to the specified bookmarkable page
        Type Parameters:
        C - The page type
        Parameters:
        pageClass - class of bookmarkable page
      • RestartResponseException

        public RestartResponseException​(Class<C> pageClass,
                                        org.apache.wicket.request.mapper.parameter.PageParameters params)
        Redirects to the specified bookmarkable page with the given page parameters
        Type Parameters:
        C - The page type
        Parameters:
        pageClass - class of bookmarkable page
        params - bookmarkable page parameters
      • RestartResponseException

        public RestartResponseException​(IRequestablePage page)
        Redirects to the specified page
        Parameters:
        page - redirect page
      • RestartResponseException

        public RestartResponseException​(IPageProvider pageProvider,
                                        RenderPageRequestHandler.RedirectPolicy redirectPolicy)
        Redirects to the page provided by the passed pageProvider using the explicit redirectPolicy
        Parameters:
        pageProvider - the provider for the page
        redirectPolicy - the redirect policy to use