Class Spec11RegistrarThreatMatchesParser

java.lang.Object
google.registry.reporting.spec11.Spec11RegistrarThreatMatchesParser

public class Spec11RegistrarThreatMatchesParser extends Object
Parser to retrieve which registrar-threat matches we should notify via email
  • Constructor Details

    • Spec11RegistrarThreatMatchesParser

      @Inject public Spec11RegistrarThreatMatchesParser(GcsUtils gcsUtils, @Config("reportingBucket") String reportingBucket)
  • Method Details

    • getRegistrarThreatMatches

      public com.google.common.collect.ImmutableSet<RegistrarThreatMatches> getRegistrarThreatMatches(org.joda.time.LocalDate date) throws IOException, org.json.JSONException
      Gets the entire set of registrar:set-of-threat-match pairings from the most recent report file in GCS.
      Throws:
      IOException
      org.json.JSONException
    • getFromFile

      public com.google.common.collect.ImmutableSet<RegistrarThreatMatches> getFromFile(com.google.cloud.storage.BlobId spec11ReportFilename) throws IOException
      Returns registrar:set-of-threat-match pairings from the file, or empty if it doesn't exist.
      Throws:
      IOException
    • getPreviousDateWithMatches

      public Optional<org.joda.time.LocalDate> getPreviousDateWithMatches(org.joda.time.LocalDate date)