Class ServletUtils

java.lang.Object
io.goobi.viewer.servlets.utils.ServletUtils

public final class ServletUtils extends Object

ServletUtils class.

  • 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 - a HttpServletRequest 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 - a HttpServletRequest object.
      Returns:
      complete url as string