Java 类org.xbill.DNS.ExtendedFlags 实例源码

项目:dnssecjava    文件:ValidatingResolver.java   
/**
 * Creates a new instance of this class.
 * 
 * @param headResolver The resolver to which queries for DS, DNSKEY and
 *            referring CNAME records are sent.
 */
public ValidatingResolver(Resolver headResolver) {
    this.headResolver = headResolver;
    headResolver.setEDNS(0, 0, ExtendedFlags.DO, null);
    headResolver.setIgnoreTruncation(false);

    this.keyCache = new KeyCache();
    this.valUtils = new ValUtils();
    this.n3valUtils = new NSEC3ValUtils();
    this.trustAnchors = new TrustAnchorStore();
}
项目:dnssecjava    文件:ValidatingResolver.java   
/**
 * The method is forwarded to the resolver, but always ensure that the level
 * is 0 and the flags contains DO.
 * 
 * @param level unused, always set to 0.
 * @param payloadSize The maximum DNS packet size that this host is capable
 *            of receiving over UDP. If 0 is specified, the default (1280)
 *            is used.
 * @param flags EDNS extended flags to be set in the OPT record,
 *            {@link ExtendedFlags#DO} is always appended.
 * @param options EDNS options to be set in the OPT record, specified as a
 *            List of OPTRecord.Option elements.
 * @see org.xbill.DNS.Resolver#setEDNS(int, int, int, java.util.List)
 */
public void setEDNS(int level, int payloadSize, int flags, @SuppressWarnings("rawtypes") List options) {
    this.headResolver.setEDNS(0, payloadSize, flags | ExtendedFlags.DO, options);
}