Type.check(type); DClass.check(dclass); if (!Type.isRR(type) && type != Type.ANY) throw new IllegalArgumentException("Cannot query for " + "meta-types other than ANY");
Type.check(type); DClass.check(dclass); if (!Type.isRR(type) && type != Type.ANY) throw new IllegalArgumentException("Cannot query for " + "meta-types other than ANY");
Type.check(type); DClass.check(dclass); if (!Type.isRR(type) && type != Type.ANY) throw new IllegalArgumentException("Cannot query for " + "meta-types other than ANY");
Type.check(type); DClass.check(dclass); if (!Type.isRR(type) && type != Type.ANY) throw new IllegalArgumentException("Cannot query for " + "meta-types other than ANY");
/** * Adds a record to the Cache. * @param r The record to be added * @param cred The credibility of the record * @param o The source of the record (this could be a Message, for example) * @see Record */ public synchronized void addRecord(Record r, int cred, Object o) { Name name = r.getName(); int type = r.getRRsetType(); if (!Type.isRR(type)) return; Element element = findElement(name, type, cred); if (element == null) { CacheRRset crrset = new CacheRRset(r, cred, maxcache); addRRset(crrset, cred); } else if (element.compareCredibility(cred) == 0) { if (element instanceof CacheRRset) { CacheRRset crrset = (CacheRRset) element; crrset.addRR(r); } } }
/** * Adds a record to the Cache. * @param r The record to be added * @param cred The credibility of the record * @param o The source of the record (this could be a Message, for example) * @see Record */ public synchronized void addRecord(Record r, int cred, Object o) { Name name = r.getName(); int type = r.getRRsetType(); if (!Type.isRR(type)) return; Element element = findElement(name, type, cred); if (element == null) { CacheRRset crrset = new CacheRRset(r, cred, maxcache); addRRset(crrset, cred); } else if (element.compareCredibility(cred) == 0) { if (element instanceof CacheRRset) { CacheRRset crrset = (CacheRRset) element; crrset.addRR(r); } } }
/** * Adds a record to the Cache. * @param r The record to be added * @param cred The credibility of the record * @param o The source of the record (this could be a Message, for example) * @see Record */ public synchronized void addRecord(Record r, int cred, Object o) { Name name = r.getName(); int type = r.getRRsetType(); if (!Type.isRR(type)) return; Element element = findElement(name, type, cred); if (element == null) { CacheRRset crrset = new CacheRRset(r, cred, maxcache); addRRset(crrset, cred); } else if (element.compareCredibility(cred) == 0) { if (element instanceof CacheRRset) { CacheRRset crrset = (CacheRRset) element; crrset.addRR(r); } } }
/** * Adds a record to the Cache. * @param r The record to be added * @param cred The credibility of the record * @param o The source of the record (this could be a Message, for example) * @see Record */ public synchronized void addRecord(Record r, int cred, Object o) { Name name = r.getName(); int type = r.getRRsetType(); if (!Type.isRR(type)) return; Element element = findElement(name, type, cred); if (element == null) { CacheRRset crrset = new CacheRRset(r, cred, maxcache); addRRset(crrset, cred); } else if (element.compareCredibility(cred) == 0) { if (element instanceof CacheRRset) { CacheRRset crrset = (CacheRRset) element; crrset.addRR(r); } } }
if ((type == Type.AXFR || type == Type.IXFR) && s != null) return doAXFR(name, query, tsig, queryTSIG, s); if (!Type.isRR(type) && type != Type.ANY) return errorMessage(query, Rcode.NOTIMP);
if (type == Type.AXFR && s != null) return doAXFR(name, query, tsig, queryTSIG, s); if (!Type.isRR(type) && type != Type.ANY) return errorMessage(query, Rcode.NOTIMP);
return doAXFR(name, query, null, queryTSIG, s); if (!Type.isRR(type) && type != Type.ANY) { return errorMessage(query, Rcode.NOTIMP);
return doAXFR(name, query, tsig, queryTSIG, socket); if (!Type.isRR(type) && type != Type.ANY) { return errorMessage(query, Rcode.NOTIMP);
return doAXFR(name, query, tsig, queryTSIG, s); if (!Type.isRR(type) && type != Type.ANY) { return errorMessage(query, Rcode.NOTIMP);