01: // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
02:
03: package org.xbill.DNS;
04:
05: /**
06: * Constants relating to the credibility of cached data, which is based on
07: * the data's source. The constants NORMAL and ANY should be used by most
08: * callers.
09: * @see Cache
10: * @see Section
11: *
12: * @author Brian Wellington
13: */
14:
15: public final class Credibility {
16:
17: private Credibility() {
18: }
19:
20: /** A hint or cache file on disk. */
21: public static final int HINT = 0;
22:
23: /** The additional section of a response. */
24: public static final int ADDITIONAL = 1;
25:
26: /** The additional section of a response. */
27: public static final int GLUE = 2;
28:
29: /** The authority section of a nonauthoritative response. */
30: public static final int NONAUTH_AUTHORITY = 3;
31:
32: /** The answer section of a nonauthoritative response. */
33: public static final int NONAUTH_ANSWER = 3;
34:
35: /** The authority section of an authoritative response. */
36: public static final int AUTH_AUTHORITY = 4;
37:
38: /** The answer section of a authoritative response. */
39: public static final int AUTH_ANSWER = 4;
40:
41: /** A zone. */
42: public static final int ZONE = 5;
43:
44: /** Credible data. */
45: public static final int NORMAL = 3;
46:
47: /** Data not required to be credible. */
48: public static final int ANY = 1;
49:
50: }
|