Package org.bgerp.app.servlet.util

# Class ServletUtils

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

public class ServletUtils extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ServletUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `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()`
  `static String`
  `getRequestURI(javax.servlet.http.HttpServletRequest request)`
  Retrieves request URI with support of includes in Tomcat

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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: