Class ServletUtils

java.lang.Object
org.bgerp.app.servlet.util.ServletUtils

public class ServletUtils extends Object
  • Constructor Details

    • ServletUtils

      public ServletUtils()
  • Method Details

    • getRequestURI

      public static String getRequestURI(javax.servlet.http.HttpServletRequest request)
      Retrieves request URI with support of includes in Tomcat
      Parameters:
      request -
      Returns:
    • getHttpRequestRemoteAddr

      public static String getHttpRequestRemoteAddr(javax.servlet.http.HttpServletRequest httpRequest)
      Gets IP address of request from HTTP header 'X-Real-IP' or another defined in configuration param AccessLogValve.PARAM_HEADER_NAME_REMOTE_ADDR or ServletRequest.getRemoteAddr()
      Returns: