/** * Redirects browser to an intermediate page such as a sign-in page. The current request's URL * is saved exactly as it was requested for future use by continueToOriginalDestination(); Only * use this method when you plan to continue to the current URL at some later time; otherwise * just use setResponsePage or, when you are in a constructor, redirectTo. * * @param pageClazz * The page clazz to temporarily redirect to */ public final <T extends Page> void redirectToInterceptPage(final Class<T> pageClazz) { final RequestCycle cycle = RequestCycle.get(); setUpRedirect(cycle); cycle.setResponsePage(pageClazz); }
/** * Redirects browser to an intermediate page such as a sign-in page. The current request's URL * is saved exactly as it was requested for future use by continueToOriginalDestination(); Only * use this method when you plan to continue to the current URL at some later time; otherwise * just use setResponsePage or, when you are in a constructor, redirectTo. * * @param page * The page to temporarily redirect to */ public final void redirectToInterceptPage(final Page page) { final RequestCycle cycle = RequestCycle.get(); setUpRedirect(cycle); cycle.setResponsePage(page); }
/** * Redirects browser to an intermediate page such as a sign-in page. The current request's URL * is saved exactly as it was requested for future use by continueToOriginalDestination(); Only * use this method when you plan to continue to the current URL at some later time; otherwise * just use setResponsePage or, when you are in a constructor, redirectTo. * * @param pageClazz * The page clazz to temporarily redirect to */ public final void redirectToInterceptPage(final Class pageClazz) { final RequestCycle cycle = RequestCycle.get(); setUpRedirect(cycle); cycle.setResponsePage(pageClazz); }
/** * Redirects browser to an intermediate page such as a sign-in page. The current request's URL * is saved exactly as it was requested for future use by continueToOriginalDestination(); Only * use this method when you plan to continue to the current URL at some later time; otherwise * just use setResponsePage or, when you are in a constructor, redirectTo. * * @param page * The page to temporarily redirect to */ public final void redirectToInterceptPage(final Page page) { final RequestCycle cycle = RequestCycle.get(); setUpRedirect(cycle); cycle.setResponsePage(page); }