Package com.logicaldoc.web.util
Class VirtualHostHelper
java.lang.Object
com.logicaldoc.web.util.VirtualHostHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getBaseURL
(javax.servlet.ServletRequest request) Gets the base URLstatic String
getServerURL
(javax.servlet.ServletRequest request) Gets the server's URLstatic String
getServerURL
(javax.servlet.ServletRequest request, boolean local) Gets the server's URLstatic String
getWebAppName
(javax.servlet.ServletRequest request) Gets the name of the web application
-
Method Details
-
getWebAppName
Gets the name of the web application- Parameters:
request
- the HTTP request- Returns:
- WebApp name : ie : logicaldoc
-
getServerURL
Gets the server's URL- Parameters:
request
- the HTTP request- Returns:
- Server URL as : protocol://serverName:port/
-
getServerURL
Gets the server's URL- Parameters:
request
- the HTTP requestlocal
- if the url must be local- Returns:
- Server URL as : protocol://serverName:port/
-
getBaseURL
Gets the base URL- Parameters:
request
- the HTTP request- Returns:
- base URL as protocol://serverName:port/webappName/
-