Class VirtualHostHelper
java.lang.Object
org.nuxeo.ecm.platform.web.common.vh.VirtualHostHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBaseURL(javax.servlet.ServletRequest request) static StringgetContextPath(javax.servlet.ServletRequest request) Returns the context path of the application.static Stringprotected static intgetForwardedPort(javax.servlet.http.HttpServletRequest httpRequest) static StringgetRedirectUrl(javax.servlet.http.HttpServletRequest request) Computes the url to be redirected when logging outstatic StringgetServerURL(javax.servlet.ServletRequest request) static StringgetServerURL(javax.servlet.ServletRequest request, boolean local) static StringgetWebAppName(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/
-
getForwardedPort
protected static int getForwardedPort(javax.servlet.http.HttpServletRequest httpRequest) -
getBaseURL
- Returns:
- base URL as protocol://serverName:port/webappName/
-
getContextPath
Returns the context path of the application. Try to get it from theServletRequestand then from theorg.nuxeo.ecm.contextPathsystem 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
-