Class DataDomeRequestConsumer

java.lang.Object
co.datadome.api.common.DataDomeRequestConsumer

public class DataDomeRequestConsumer extends Object
  • Constructor Details

  • Method Details

    • getRegex

      public Pattern getRegex()
    • getExclusionRegex

      public Pattern getExclusionRegex()
    • convertToSubnet

      protected static List<org.springframework.security.web.util.matcher.IpAddressMatcher> convertToSubnet(Collection<String> subnets)
    • matchSubnets

      protected static boolean matchSubnets(String ip, List<org.springframework.security.web.util.matcher.IpAddressMatcher> subnetMatchers)
    • accept

      public void accept(HttpRequest httpRequest) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • isRegexMatched

      protected boolean isRegexMatched(String uri)
    • buildDataDomeRequest

      public DataDomeRequest buildDataDomeRequest(HttpRequest request)
    • getRequestBuilder

      public DataDomeRequest.Builder getRequestBuilder()
    • getRequestTimeStampInMicro

      public long getRequestTimeStampInMicro()
    • getSubnetMatchers

      public List<org.springframework.security.web.util.matcher.IpAddressMatcher> getSubnetMatchers()