Package google.registry.reporting.spec11
Class Spec11RegistrarThreatMatchesParser
java.lang.Object
google.registry.reporting.spec11.Spec11RegistrarThreatMatchesParser
Parser to retrieve which registrar-threat matches we should notify via email
-
Constructor Summary
ConstructorDescriptionSpec11RegistrarThreatMatchesParser
(GcsUtils gcsUtils, String reportingBucket) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet
<RegistrarThreatMatches> getFromFile
(com.google.cloud.storage.BlobId spec11ReportFilename) Returns registrar:set-of-threat-match pairings from the file, or empty if it doesn't exist.Optional
<org.joda.time.LocalDate> getPreviousDateWithMatches
(org.joda.time.LocalDate date) com.google.common.collect.ImmutableSet
<RegistrarThreatMatches> getRegistrarThreatMatches
(org.joda.time.LocalDate date) Gets the entire set of registrar:set-of-threat-match pairings from the most recent report file in GCS.
-
Constructor Details
-
Spec11RegistrarThreatMatchesParser
-
-
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
-