Package org.apache.wicket.ng.request

Examples of org.apache.wicket.ng.request.Url


    // Get the relative URL we need for loading the resource from
    // the servlet context
    // NOTE: we NEED to put the '/' in front as otherwise some versions
    // of application servers (e.g. Jetty 5.1.x) will fail for requests
    // like '/mysubdir/myfile.css'
    Url url = new Url(requestCycle.getRequest().getUrl());
    if (!url.isAbsolute())
    {
      url.makeAbsolute();
    }
    return new WebExternalResourceRequestTarget(url.toString());
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.ng.request.Url

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.