org.apache.wicket.util.string
Class UrlUtils

java.lang.Object
  extended by org.apache.wicket.util.string.UrlUtils

public class UrlUtils
extends java.lang.Object

Various url utilities

Author:
igor.vaynberg

Method Summary
static boolean isRelative(java.lang.String url)
          Checks if the url is relative or absolute
static java.lang.String rewriteToContextRelative(java.lang.String url, Request request)
          Rewrites a relative url to be context relative, leaves absolute urls same.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isRelative

public static boolean isRelative(java.lang.String url)
Checks if the url is relative or absolute

Parameters:
url -
Returns:
true if url is relative, false otherwise

rewriteToContextRelative

public static java.lang.String rewriteToContextRelative(java.lang.String url,
                                                        Request request)
Rewrites a relative url to be context relative, leaves absolute urls same.

Parameters:
url -
request -
Returns:
rewritten url


Copyright © 2004-2009 Apache Software Foundation. All Rights Reserved.