Class VirtualHostHelper
- java.lang.Object
-
- org.nuxeo.ecm.platform.web.common.vh.VirtualHostHelper
-
public class VirtualHostHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getBaseURL(javax.servlet.ServletRequest request)
static String
getContextPath(javax.servlet.ServletRequest request)
Returns the context path of the application.static String
getContextPathProperty()
static String
getRedirectUrl(javax.servlet.http.HttpServletRequest request)
Computes the url to be redirected when logging outstatic String
getServerURL(javax.servlet.ServletRequest request)
static String
getServerURL(javax.servlet.ServletRequest request, boolean local)
static String
getWebAppName(javax.servlet.ServletRequest request)
-
-
-
Method Detail
-
getWebAppName
public static String getWebAppName(javax.servlet.ServletRequest request)
- Returns:
- WebApp name : ie : nuxeo
-
getServerURL
public static String getServerURL(javax.servlet.ServletRequest request)
- Returns:
- Server URL as : protocol://serverName:port/
-
getServerURL
public static String getServerURL(javax.servlet.ServletRequest request, boolean local)
- Returns:
- Server URL as : protocol://serverName:port/
-
getBaseURL
public static String getBaseURL(javax.servlet.ServletRequest request)
- Returns:
- base URL as protocol://serverName:port/webappName/
-
getContextPath
public static String getContextPath(javax.servlet.ServletRequest request)
Returns the context path of the application. Try to get it from theServletRequest
and then from theorg.nuxeo.ecm.contextPath
system property. Fallback on default context path/nuxeo
.
-
getContextPathProperty
public static String getContextPathProperty()
-
getRedirectUrl
public static String getRedirectUrl(javax.servlet.http.HttpServletRequest request)
Computes the url to be redirected when logging out- Returns:
- redirect URL as protocol://serverName:port/webappName/...
- Since:
- 9.1
-
-