public class RequestUtilities extends Object
HttpServletRequest.| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_X_FORWARDED_FOR
The name of header set by proxy server, alternative source of IP address
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getIP(javax.servlet.http.HttpServletRequest httpServletRequest)
Retrieve ip address for (origin of) request.
|
public static final String HEADER_X_FORWARDED_FOR
public static String getIP(javax.servlet.http.HttpServletRequest httpServletRequest)
In descending order:
HEADER_X_FORWARDED_FOR
httpServletRequest - requestCopyright © 2025 European Spallation Source. All rights reserved.