|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.UrlUtils
public class UrlUtils
Various url utilities
| Constructor Summary | |
|---|---|
protected |
UrlUtils()
Constructor |
| 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,
IRequestCycle 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 |
| Constructor Detail |
|---|
protected UrlUtils()
| Method Detail |
|---|
public static boolean isRelative(String url)
url -
true if url is relative, false otherwise
public static String rewriteToContextRelative(String url,
IRequestCycle 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 | |||||||||