Examples of PrependingStringBuffer


Examples of org.apache.wicket.util.string.PrependingStringBuffer

    if (url != null)
    {
      // Add the actual URL. This will be relative to the Wicket
      // Servlet/Filter, with no leading '/'.
      PrependingStringBuffer prepender = new PrependingStringBuffer(url.toString());

      // Prepend prefix to the URL to make it relative to the current
      // request.
      prepender.prepend(requestCycle.getRequest().getRelativePathPrefixToWicketHandler());

      String result = prepender.toString();
      // We need to special-case links to the home page if we're at the
      // same level.
      if (result.length() == 0)
      {
        result = "./";
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.