Package org.xbill.DNS
Class SVCBBase
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.SVCBBase
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
- Direct Known Subclasses:
HTTPSRecord,SVCBRecord
Implements common functionality for SVCB and HTTPS records
- Since:
- 3.3
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classDeprecated.static classstatic classstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intDeprecated.useECHstatic final intstatic final intstatic final intstatic final intstatic final intprotected final Map<Integer, SVCBBase.ParameterBase> protected intprotected Name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleangetSvcParamValue(int key) intprotected 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 the type-specific RR to text format - must be overridden.protected 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
-
svcPriority
protected int svcPriority -
targetName
-
svcParams
-
MANDATORY
public static final int MANDATORY- See Also:
-
ALPN
public static final int ALPN- See Also:
-
NO_DEFAULT_ALPN
public static final int NO_DEFAULT_ALPN- See Also:
-
PORT
public static final int PORT- See Also:
-
IPV4HINT
public static final int IPV4HINT- See Also:
-
ECH
public static final int ECH- See Also:
-
IPV6HINT
public static final int IPV6HINT- See Also:
-
ECHCONFIG
Deprecated.useECHPre-RFC constant for theECHSVC parameter.- See Also:
-
-
Constructor Details
-
SVCBBase
protected SVCBBase() -
SVCBBase
-
SVCBBase
protected SVCBBase(Name name, int type, int dclass, long ttl, int priority, Name domain, List<SVCBBase.ParameterBase> params)
-
-
Method Details
-
getSvcPriority
public int getSvcPriority() -
getTargetName
-
getSvcParamKeys
-
getSvcParamValue
-
checkMandatoryParams
protected boolean checkMandatoryParams() -
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rrToString
Description copied from class:RecordConverts the type-specific RR to text format - must be overridden.- Specified by:
rrToStringin classRecord
-
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
-
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-
SVCBBase.ParameterEch