|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.util.UrlUtils
public class UrlUtils
Contains url utility methods.
Constructor Summary | |
---|---|
UrlUtils()
|
Method Summary | |
---|---|
static java.lang.String |
addContextPath(java.lang.String url,
ContextPathHolder contextPathHolder)
Adds the context path to the given url, if required. |
static boolean |
isAbsoluteUrl(java.lang.String url)
Checks if the given URL is absolute. |
static boolean |
isSameOrigin(java.net.URL url,
java.net.URL origin)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlUtils()
Method Detail |
---|
public static boolean isSameOrigin(java.net.URL url, java.net.URL origin)
url
- the url to checkorigin
- the origin to check against.
public static java.lang.String addContextPath(java.lang.String url, ContextPathHolder contextPathHolder)
url
- the url to add the context path to.contextPathHolder
- the holder for the context path to add.
public static boolean isAbsoluteUrl(java.lang.String url)
url
- the URL to check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |