Package me.folf.podns4j
Class PronounRecordParser
java.lang.Object
me.folf.podns4j.PronounRecordParser
Parser for pronoun records according to the Pronouns over DNS specification.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PronounRecordParses a pronoun record from a DNS TXT record string.static voidvalidateRecords(List<PronounRecord> records) Validates that a list of records is valid according to the specification.
-
Constructor Details
-
PronounRecordParser
public PronounRecordParser()
-
-
Method Details
-
parse
Parses a pronoun record from a DNS TXT record string.- Parameters:
record- the record string to parse- Returns:
- the parsed pronoun record
- Throws:
PronounParseException- if the record is invalid
-
validateRecords
Validates that a list of records is valid according to the specification. This checks that if a NONE record is present, it must be the only record.- Parameters:
records- the records to validate- Throws:
PronounParseException- if the records are invalid
-