Package com.logicaldoc.web.util
Class VirtualHostHelper
java.lang.Object
com.logicaldoc.web.util.VirtualHostHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBaseURL(jakarta.servlet.ServletRequest request) Gets the base URLstatic StringgetServerURL(jakarta.servlet.ServletRequest request) Gets the server's URLstatic StringgetServerURL(jakarta.servlet.ServletRequest request, boolean local) Gets the server's URLstatic StringgetWebAppName(jakarta.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/
-