Package org.xbill.DNS
Class SPFRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.SPFRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Sender Policy Framework (discontinued in RFC 7208)
- Author:
- Brian Wellington
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the text stringsList<byte[]> Returns the text stringsprotected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected Stringconverts to a Stringprotected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Field Details
-
strings
-
-
Constructor Details
-
SPFRecord
Creates a SPF Record from the given data- Parameters:
strings- The text strings- Throws:
IllegalArgumentException- One of the strings has invalid escapes
-
SPFRecord
Creates a SPF Record from the given data- Parameters:
string- One text string- Throws:
IllegalArgumentException- The string has invalid escapes
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
converts to a String- Specified by:
rrToStringin classRecord
-
getStrings
Returns the text strings- Returns:
- A list of Strings corresponding to the text strings.
-
getStringsAsByteArrays
Returns the text strings- Returns:
- A list of byte arrays corresponding to the text strings.
-
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-