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