136137138139140141142143144145146
while(iterator.hasNext()){ RRset rRset = (RRset) iterator.next(); Iterator<?> rrSetIterator = rRset.rrs(); while(rrSetIterator.hasNext()){ Record record = (Record) rrSetIterator.next();
193194195196197198199200201202203
RRset rs2 = new RRset( m_rs ); assertEquals(2, rs2.size()); assertEquals(m_a1, rs2.first()); Iterator itr = rs2.rrs(); assertEquals(m_a1, itr.next()); assertEquals(m_a2, itr.next()); assertFalse(itr.hasNext()); itr = rs2.sigs();
195196197198199200201202203204205
135136137138139140141142143144145
303304305306307308309310311312313
private final void addCacheNS(Message response, Cache cache, Name name) { SetResponse sr = cache.lookupRecords(name, Type.NS, Credibility.HINT); if (!sr.isDelegation()) return; RRset nsRecords = sr.getNS(); Iterator it = nsRecords.rrs(); while (it.hasNext()) { Record r = (Record) it.next(); response.addRecord(r, Section.AUTHORITY); } }