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

Method validate

src/main/java/core/org/xbill/DNS/Zone.java:95–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95private void
96validate() throws IOException {
97 originNode = exactName(origin);
98 if (originNode == null)
99 throw new IOException(origin + ": no data specified");
100
101 RRset rrset = oneRRset(originNode, Type.SOA);
102 if (rrset == null || rrset.size() != 1)
103 throw new IOException(origin +
104 ": exactly 1 SOA must be specified");
105 Iterator it = rrset.rrs();
106 SOA = (SOARecord) it.next();
107
108 NS = oneRRset(originNode, Type.NS);
109 if (NS == null)
110 throw new IOException(origin + ": no NS set specified");
111}
112
113private final void
114maybeAddRecord(Record record) throws IOException {

Callers 2

ZoneMethod · 0.95
fromXFRMethod · 0.95

Calls 5

exactNameMethod · 0.95
oneRRsetMethod · 0.95
sizeMethod · 0.95
rrsMethod · 0.95
nextMethod · 0.80

Tested by

no test coverage detected