Package com.logicaldoc.web.util
Class BaseURL
java.lang.Object
com.logicaldoc.web.util.BaseURL
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringgetBaseURL(jakarta.servlet.ServletRequest request) Gets the base URLstatic StringgetLocalBaseURL(jakarta.servlet.http.HttpServletRequest request) static StringgetServerURL(jakarta.servlet.ServletRequest request, boolean local) Gets the server's URLstatic StringgetWebAppName(jakarta.servlet.http.HttpServletRequest request) Gets the name od the application
- 
Method Details- 
getServerURLGets the server's URL- Parameters:
- request- the HTTP request
- local- if the URL must be local
- Returns:
- Server URL as protocol://serverName:port/
 
- 
getWebAppNameGets the name od the application- Parameters:
- request- the HTTP request
- Returns:
- WebApp name, i.e.: logicaldoc
 
- 
getBaseURLGets the base URL- Parameters:
- request- the HTTP request
- Returns:
- base URL as protocol://serverName:port/webappName/
 
- 
getLocalBaseURL
 
-