Package io.goobi.viewer.servlets.utils
Class ServletUtils
java.lang.Object
io.goobi.viewer.servlets.utils.ServletUtils
ServletUtils class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getServletPathWithHostAsUrlFromRequest
(javax.servlet.http.HttpServletRequest request) retrieve complete Servlet url from servlet context, including Url, Port, Servletname etc. callable without jsf contextstatic String
getServletPathWithoutHostAsUrlFromRequest
(javax.servlet.http.HttpServletRequest request) retrieve complete Servlet url from servlet context, including Url, Port, callable without jsf servletName
-
Method Details
-
getServletPathWithHostAsUrlFromRequest
public static String getServletPathWithHostAsUrlFromRequest(javax.servlet.http.HttpServletRequest request) retrieve complete Servlet url from servlet context, including Url, Port, Servletname etc. callable without jsf context- Parameters:
request
- aHttpServletRequest
object.- Returns:
- complete url as string
-
getServletPathWithoutHostAsUrlFromRequest
public static String getServletPathWithoutHostAsUrlFromRequest(javax.servlet.http.HttpServletRequest request) retrieve complete Servlet url from servlet context, including Url, Port, callable without jsf servletName- Parameters:
request
- aHttpServletRequest
object.- Returns:
- complete url as string
-