Class RemoteTriggerIpHandling

java.lang.Object
com.atlassian.bamboo.trigger.remote.RemoteTriggerIpHandling

public class RemoteTriggerIpHandling extends Object
  • Constructor Details

    • RemoteTriggerIpHandling

      public RemoteTriggerIpHandling()
  • Method Details

    • 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
    • isCidrMatching

      public static boolean isCidrMatching(String testedIp, String prefix, String maskStr)