Package com.logicaldoc.web.util
Class VirtualHostHelper
java.lang.Object
com.logicaldoc.web.util.VirtualHostHelper
- 
Method SummaryModifier 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- 
getWebAppNameGets the name of the web application- Parameters:
- request- the HTTP request
- Returns:
- WebApp name : ie : logicaldoc
 
- 
getServerURLGets the server's URL- Parameters:
- request- the HTTP request
- Returns:
- Server URL as : protocol://serverName:port/
 
- 
getServerURLGets the server's URL- Parameters:
- request- the HTTP request
- local- if the url must be local
- Returns:
- Server URL as : protocol://serverName:port/
 
- 
getBaseURLGets the base URL- Parameters:
- request- the HTTP request
- Returns:
- base URL as protocol://serverName:port/webappName/
 
 
-