Package org.apache.wicket

Examples of org.apache.wicket.RequestCycle.urlFor()


    this(pageClass, null);
  }

  public <C extends Page> GitblitRedirectException(Class<C> pageClass, PageParameters params) {
    RequestCycle cycle = RequestCycle.get();
    String relativeUrl = cycle.urlFor(pageClass, params).toString();
    String absoluteUrl = RequestUtils.toAbsolutePath(relativeUrl);
    cycle.setRequestTarget(new RedirectRequestTarget(absoluteUrl));
    cycle.setRedirect(true);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.