Class RemoteTriggerIpHandling
java.lang.Object
com.atlassian.bamboo.trigger.remote.RemoteTriggerIpHandling
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRequestIpAddresses
(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)
-
Constructor Details
-
RemoteTriggerIpHandling
public RemoteTriggerIpHandling()
-
-
Method Details
-
getRequestIpAddresses
Returns all IP addresses involved in a request. -
ipMatchesHost
protected boolean ipMatchesHost(@NotNull @NotNull String testedIp, @NotNull @NotNull String hostOrCidr) throws UnknownHostException - Throws:
UnknownHostException
-
isCidrMatching
-