MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / Update

Method Update

src/main/java/core/org/xbill/DNS/Update.java:24–35  ·  view source on GitHub ↗

Creates an update message. @param zone The name of the zone being updated. @param dclass The class of the zone being updated.

(Name zone, int dclass)

Source from the content-addressed store, hash-verified

22 * @param dclass The class of the zone being updated.
23 */
24public
25Update(Name zone, int dclass) {
26 super();
27 if (!zone.isAbsolute())
28 throw new RelativeNameException(zone);
29 DClass.check(dclass);
30 getHeader().setOpcode(Opcode.UPDATE);
31 Record soa = Record.newRecord(zone, Type.SOA, DClass.IN);
32 addRecord(soa, Section.QUESTION);
33 this.origin = zone;
34 this.dclass = dclass;
35}
36
37/**
38 * Creates an update message. The class is assumed to be IN.

Callers

nothing calls this directly

Calls 6

checkMethod · 0.95
newRecordMethod · 0.95
isAbsoluteMethod · 0.80
setOpcodeMethod · 0.80
getHeaderMethod · 0.45
addRecordMethod · 0.45

Tested by

no test coverage detected