Package org.apache.wicket.request.http.handler

Examples of org.apache.wicket.request.http.handler.RedirectRequestHandler

@author igor.vaynberg @author jcompagner

    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;
  }
View Full Code Here


    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;
  }
View Full Code Here

    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;
  }
View Full Code Here

   */
  protected final void continueToPrevious()
  {
    // continue to original destination
    RequestCycle.get().scheduleRequestHandlerAfterCurrent(
      new RedirectRequestHandler(continueTo));
  }
View Full Code Here

   */
  protected final void continueToPrevious()
  {
    // continue to original destination
    RequestCycle.get().scheduleRequestHandlerAfterCurrent(
      new RedirectRequestHandler(continueTo));
  }
View Full Code Here

    this(redirectUrl, HttpServletResponse.SC_MOVED_TEMPORARILY);
  }

  public RedirectToUrlException(final String redirectUrl, final int statusCode)
  {
    super(new RedirectRequestHandler(redirectUrl, statusCode), true);
  }
View Full Code Here

    }

    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;
    }
View Full Code Here

    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;
  }
View Full Code Here

    return new RenderPageRequestHandler(new PageProvider(pageClass, params), redirectPolicy);
  }

  private static IRequestHandler createUrlRequestHandler(final String redirectUrl)
  {
      return new RedirectRequestHandler(redirectUrl, HttpServletResponse.SC_MOVED_TEMPORARILY);
  }
View Full Code Here

    InterceptData data = InterceptData.get();
    if (data != null)
    {
      data.continueOk = true;
      String url = RequestCycle.get().getUrlRenderer().renderUrl(data.originalUrl);
      RequestCycle.get().replaceAllRequestHandlers(new RedirectRequestHandler(url));
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.http.handler.RedirectRequestHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.