Class RemoteTriggerIpHandling
- java.lang.Object
-
- com.atlassian.bamboo.trigger.remote.RemoteTriggerIpHandling
-
public class RemoteTriggerIpHandling extends Object
-
-
Constructor Summary
Constructors Constructor Description RemoteTriggerIpHandling()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
getRequestIpAddresses(javax.servlet.http.HttpServletRequest request)
Returns all IP addresses involved in a request.protected boolean
ipMatchesHost(@NotNull String testedIp, @NotNull String hostOrCidr)
static boolean
isCidrMatching(String testedIp, String prefix, String maskStr)
-
-
-
Method Detail
-
getRequestIpAddresses
protected List<String> getRequestIpAddresses(javax.servlet.http.HttpServletRequest request)
Returns all IP addresses involved in a request.
-
ipMatchesHost
protected boolean ipMatchesHost(@NotNull @NotNull String testedIp, @NotNull @NotNull String hostOrCidr) throws UnknownHostException
- Throws:
UnknownHostException
-
-