org.xbill.DNS
Class SPFRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.SPFRecord
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class SPFRecord
- extends Record
Sender Policy Framework (RFC 4408, experimental)
- Author:
- Brian Wellington
- See Also:
- Serialized Form
Field Summary |
protected java.util.List |
strings
|
Constructor Summary |
SPFRecord(Name name,
int dclass,
long ttl,
java.util.List strings)
Creates a SPF Record from the given data |
SPFRecord(Name name,
int dclass,
long ttl,
java.lang.String string)
Creates a SPF Record from the given data |
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, toString, toWire, toWireCanonical, unknownToString, withName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
strings
protected java.util.List strings
SPFRecord
public SPFRecord(Name name,
int dclass,
long ttl,
java.util.List strings)
- Creates a SPF Record from the given data
- Parameters:
strings
- The text strings
- Throws:
java.lang.IllegalArgumentException
- One of the strings has invalid escapes
SPFRecord
public SPFRecord(Name name,
int dclass,
long ttl,
java.lang.String string)
- Creates a SPF Record from the given data
- Parameters:
string
- One text string
- Throws:
java.lang.IllegalArgumentException
- The string has invalid escapes
getStrings
public java.util.List getStrings()
- Returns the text strings
- Returns:
- A list of Strings corresponding to the text strings.
getStringsAsByteArrays
public java.util.List getStringsAsByteArrays()
- Returns the text strings
- Returns:
- A list of byte arrays corresponding to the text strings.