Package org.bgerp.app.servlet.util
Class ServletUtils
java.lang.Object
org.bgerp.app.servlet.util.ServletUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getHttpRequestRemoteAddr
(javax.servlet.http.HttpServletRequest httpRequest) Gets IP address of request from HTTP header 'X-Real-IP' or another defined in configuration paramAccessLogValve.PARAM_HEADER_NAME_REMOTE_ADDR
orServletRequest.getRemoteAddr()
static String
getRequestURI
(javax.servlet.http.HttpServletRequest request) Retrieves request URI with support of includes in Tomcat
-
Constructor Details
-
ServletUtils
public ServletUtils()
-
-
Method Details
-
getRequestURI
Retrieves request URI with support of includes in Tomcat- Parameters:
request
-- Returns:
-
getHttpRequestRemoteAddr
Gets IP address of request from HTTP header 'X-Real-IP' or another defined in configuration paramAccessLogValve.PARAM_HEADER_NAME_REMOTE_ADDR
orServletRequest.getRemoteAddr()
- Returns:
-