org.xbill.DNS
public class OPTRecord extends Record
Message
,
Resolver
,
Serialized FormConstructor and Description |
---|
OPTRecord(int payloadSize,
int xrcode,
int version)
Creates an OPT Record with no data.
|
OPTRecord(int payloadSize,
int xrcode,
int version,
int flags)
Creates an OPT Record with no data.
|
OPTRecord(int payloadSize,
int xrcode,
int version,
int flags,
java.util.List options)
Creates an OPT Record.
|
Modifier and Type | Method and Description |
---|---|
int |
getExtendedRcode()
Returns the extended Rcode
|
int |
getFlags()
Returns the EDNS flags
|
java.util.List |
getOptions()
Gets all options in the OPTRecord.
|
java.util.List |
getOptions(int code)
Gets all options in the OPTRecord with a specific code.
|
int |
getPayloadSize()
Returns the maximum allowed payload size.
|
int |
getVersion()
Returns the highest supported EDNS version
|
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
public OPTRecord(int payloadSize, int xrcode, int version, int flags, java.util.List options)
payloadSize
- The size of a packet that can be reassembled on the
sending host.xrcode
- The value of the extended rcode field. This is the upper
16 bits of the full rcode.flags
- Additional message flags.version
- The EDNS version that this DNS implementation supports.
This should be 0 for dnsjava.options
- The list of options that comprise the data field. There
are currently no defined options.ExtendedFlags
public OPTRecord(int payloadSize, int xrcode, int version, int flags)
payloadSize
- The size of a packet that can be reassembled on the
sending host.xrcode
- The value of the extended rcode field. This is the upper
16 bits of the full rcode.flags
- Additional message flags.version
- The EDNS version that this DNS implementation supports.
This should be 0 for dnsjava.ExtendedFlags
public OPTRecord(int payloadSize, int xrcode, int version)
public int getPayloadSize()
public int getExtendedRcode()
Rcode
public int getVersion()
public int getFlags()
public java.util.List getOptions()
public java.util.List getOptions(int code)