126127128129130131132133134135
InterceptData data = InterceptData.get(); if (data != null) { data.continueOk = true; String url = RequestCycle.get().getUrlRenderer().renderUrl(data.originalUrl); RequestCycle.get().replaceCurrentRequestHandler(new RedirectRequestHandler(url)); return true; } return false; }
165166167168169170171172173174
InterceptData data = InterceptData.get(); if (data != null) { data.continueOk = true; String url = RequestCycle.get().getUrlRenderer().renderUrl(data.originalUrl); RequestCycle.get().replaceAllRequestHandlers(new RedirectRequestHandler(url)); return true; } return false; }
InterceptData data = InterceptData.get(); if (data != null) { data.continueOk = true; String url = RequestCycle.get().getUrlRenderer().renderUrl(data.originalUrl); RequestCycle.get().scheduleRequestHandlerAfterCurrent(new RedirectRequestHandler(url)); return true; } return false; }
163164165166167168169
*/ protected final void continueToPrevious() { // continue to original destination RequestCycle.get().scheduleRequestHandlerAfterCurrent( new RedirectRequestHandler(continueTo)); }
155156157158159160161
39404142434445
this(redirectUrl, HttpServletResponse.SC_MOVED_TEMPORARILY); } public RedirectToUrlException(final String redirectUrl, final int statusCode) { super(new RedirectRequestHandler(redirectUrl, statusCode), true); }
540541542543544545546547548
} public static IRequestHandler redirectHandler(final Object value) { if(value instanceof java.net.URL) { java.net.URL url = (java.net.URL) value; return new RedirectRequestHandler(url.toString()); } return null; }
151152153154155156157158159160
127128129130131132133
return new RenderPageRequestHandler(new PageProvider(pageClass, params), redirectPolicy); } private static IRequestHandler createUrlRequestHandler(final String redirectUrl) { return new RedirectRequestHandler(redirectUrl, HttpServletResponse.SC_MOVED_TEMPORARILY); }
169170171172173174175176
InterceptData data = InterceptData.get(); if (data != null) { data.continueOk = true; String url = RequestCycle.get().getUrlRenderer().renderUrl(data.originalUrl); RequestCycle.get().replaceAllRequestHandlers(new RedirectRequestHandler(url)); } }