Class VirtualHostHelper
java.lang.Object
org.nuxeo.ecm.platform.web.common.vh.VirtualHostHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getBaseURL
(javax.servlet.ServletRequest request) static String
getContextPath
(javax.servlet.ServletRequest request) Returns the context path of the application.static String
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 Details
-
getWebAppName
- Returns:
- WebApp name : ie : nuxeo
-
getServerURL
- Returns:
- Server URL as : protocol://serverName:port/
-
getServerURL
- Returns:
- Server URL as : protocol://serverName:port/
-
getBaseURL
- Returns:
- base URL as protocol://serverName:port/webappName/
-
getContextPath
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
-
getRedirectUrl
Computes the url to be redirected when logging out- Returns:
- redirect URL as protocol://serverName:port/webappName/...
- Since:
- 9.1
-