Class VirtualHostHelper
java.lang.Object
org.nuxeo.ecm.platform.web.common.vh.VirtualHostHelper
- 
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBaseURL(jakarta.servlet.ServletRequest request) static StringgetContextPath(jakarta.servlet.ServletRequest request) Returns the context path of the application.static Stringprotected static intgetForwardedPort(jakarta.servlet.http.HttpServletRequest httpRequest) static StringgetRedirectUrl(jakarta.servlet.http.HttpServletRequest request) Computes the url to be redirected when logging outstatic StringgetServerURL(jakarta.servlet.ServletRequest request) static StringgetServerURL(jakarta.servlet.ServletRequest request, boolean local) static StringgetWebAppName(jakarta.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(jakarta.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
 
 
 -