public class UrlUtils extends Object
Modifier | Constructor and Description |
---|---|
protected |
UrlUtils()
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean isRelative(String url)
url
- true
if url is relative, false
otherwisepublic static String rewriteToContextRelative(String url, IRequestCycle requestCycle)
url
- requestCycle
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.