Package com.atlassian.bamboo.utils
Class ServletUtils
java.lang.Object
com.atlassian.bamboo.utils.ServletUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<InetAddress>
getAllRequestIpAddresses
(@NotNull javax.servlet.http.HttpServletRequest httpServletRequest) Retrieves all sender IP addresses from a HTTP request, including source address and proxy addresses if present.
-
Constructor Details
-
ServletUtils
public ServletUtils()
-
-
Method Details
-
getAllRequestIpAddresses
public static List<InetAddress> getAllRequestIpAddresses(@NotNull @NotNull javax.servlet.http.HttpServletRequest httpServletRequest) Retrieves all sender IP addresses from a HTTP request, including source address and proxy addresses if present. This method handles both IPv4 and IPv6.- Returns:
- List of IP addresses from request. First IP address on the returned list will be the request remote address, optionally followed by detected proxy IPs.
-