/** * Add an answer if it is not suppressed. * * @param in * @param rec * @exception IOException */ public void addAnswer(DNSIncoming in, DNSRecord rec) throws IOException { if ((in == null) || !rec.suppressedBy(in)) { this.addAnswer(rec, 0); } }
/** * Add an answer if it is not suppressed. * * @param in * @param rec * @exception IOException */ public void addAnswer(DNSIncoming in, DNSRecord rec) throws IOException { if ((in == null) || !rec.suppressedBy(in)) { this.addAnswer(rec, 0); } }
/** * Add an answer if it is not suppressed. * * @param in * @param rec * @exception IOException */ public void addAnswer(DNSIncoming in, DNSRecord rec) throws IOException { if ((in == null) || !rec.suppressedBy(in)) { this.addAnswer(rec, 0); } }
/** * Add an answer if it is not suppressed. * * @param in * @param rec * @exception IOException */ public void addAnswer(DNSIncoming in, DNSRecord rec) throws IOException { if ((in == null) || !rec.suppressedBy(in)) { this.addAnswer(rec, 0); } }
/** * True if this record is suppressed by the answers in a message. */ boolean suppressedBy(DNSIncoming msg) { try { for (DNSRecord answer : msg.getAllAnswers()) { if (suppressedBy(answer)) { return true; } } return false; } catch (ArrayIndexOutOfBoundsException e) { logger.warn("suppressedBy() message " + msg + " exception ", e); // msg.print(true); return false; } }
/** * True if this record is suppressed by the answers in a message. */ boolean suppressedBy(DNSIncoming msg) { try { for (DNSRecord answer : msg.getAllAnswers()) { if (suppressedBy(answer)) { return true; } } return false; } catch (ArrayIndexOutOfBoundsException e) { logger.log(Level.WARNING, "suppressedBy() message " + msg + " exception ", e); // msg.print(true); return false; } }
/** * True if this record is suppressed by the answers in a message. */ boolean suppressedBy(DNSIncoming msg) { try { for (DNSRecord answer : msg.getAllAnswers()) { if (suppressedBy(answer)) { return true; } } return false; } catch (ArrayIndexOutOfBoundsException e) { logger.log(Level.WARNING, "suppressedBy() message " + msg + " exception ", e); // msg.print(true); return false; } }
/** * True if this record is suppressed by the answers in a message. */ boolean suppressedBy(DNSIncoming msg) { try { for (DNSRecord answer : msg.getAllAnswers()) { if (suppressedBy(answer)) { return true; } } return false; } catch (ArrayIndexOutOfBoundsException e) { logger.log(Level.WARNING, "suppressedBy() message " + msg + " exception ", e); // msg.print(true); return false; } }