Package com.atlassian.bamboo.utils
Class ServletUtils
- java.lang.Object
-
- com.atlassian.bamboo.utils.ServletUtils
-
public class ServletUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ServletUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
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.
-
-