public class Url extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
LOCALHOSTS |
| Constructor and Description |
|---|
Url() |
| Modifier and Type | Method and Description |
|---|---|
static String |
appendServerNameIfNeeded(JCRNodeWrapper node,
String nodeURL,
javax.servlet.http.HttpServletRequest request) |
static String |
decodeUrlParam(String inputString)
Decode facet filter URL parameter
|
static String |
encodeUrlParam(String inputString)
Encode facet filter URL parameter
|
static String |
getServer(javax.servlet.http.HttpServletRequest request)
Returns the server URL, including scheme, host and port.
|
static String |
getServer(javax.servlet.http.HttpServletRequest request,
String servername) |
static String |
getServer(String scheme,
String host,
int port) |
static boolean |
isLocalhost(String host) |
public static String encodeUrlParam(String inputString)
inputString - facet filter parameterpublic static String decodeUrlParam(String inputString)
inputString - enocded facet filter URL query parameterpublic static boolean isLocalhost(String host)
public static String appendServerNameIfNeeded(JCRNodeWrapper node, String nodeURL, javax.servlet.http.HttpServletRequest request) throws javax.jcr.RepositoryException, MalformedURLException
javax.jcr.RepositoryExceptionMalformedURLExceptionpublic static String getServer(javax.servlet.http.HttpServletRequest request)
: ,
e.g. http://www.jahia.org:8080. The port is omitted in case
of standard HTTP (80) and HTTPS (443) ports.public static String getServer(javax.servlet.http.HttpServletRequest request, String servername)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.