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

Method toStringWithRcode

src/main/java/core/org/xbill/DNS/Header.java:267–282  ·  view source on GitHub ↗
(int newrcode)

Source from the content-addressed store, hash-verified

265}
266
267String
268toStringWithRcode(int newrcode) {
269 StringBuffer sb = new StringBuffer();
270
271 sb.append(";; ->>HEADER<<- ");
272 sb.append("opcode: " + Opcode.string(getOpcode()));
273 sb.append(", status: " + Rcode.string(newrcode));
274 sb.append(", id: " + getID());
275 sb.append("\n");
276
277 sb.append(";; flags: " + printFlags());
278 sb.append("; ");
279 for (int i = 0; i < 4; i++)
280 sb.append(Section.string(i) + ": " + getCount(i) + " ");
281 return sb.toString();
282}
283
284/** Converts the header into a String */
285public String

Callers 2

toStringMethod · 0.95
toStringMethod · 0.80

Calls 9

stringMethod · 0.95
getOpcodeMethod · 0.95
stringMethod · 0.95
getIDMethod · 0.95
printFlagsMethod · 0.95
stringMethod · 0.95
getCountMethod · 0.95
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected