|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.string.UrlUtils
public class UrlUtils
Various url utilities
Method Summary | |
---|---|
static boolean |
isRelative(String url)
Checks if the url is relative or absolute |
static String |
normalizePath(String path)
Makes sure the path starts with a slash and does not end with a slash. |
static String |
rewriteToContextRelative(String url,
RequestCycle requestCycle)
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 |
---|
public static boolean isRelative(String url)
url
-
true
if url is relative, false
otherwisepublic static String rewriteToContextRelative(String url, RequestCycle requestCycle)
url
- requestCycle
-
public static String normalizePath(String path)
path
- path to normalize
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |