/** * Appends answers to this Incoming. * * @exception IllegalArgumentException * If not a query or if Truncated. */ void append(DNSIncoming that) { if (this.isQuery() && this.isTruncated() && that.isQuery()) { this._questions.addAll(that.getQuestions()); this._answers.addAll(that.getAnswers()); this._authoritativeAnswers.addAll(that.getAuthorities()); this._additionals.addAll(that.getAdditionals()); } else { throw new IllegalArgumentException(); } }
/** * Appends answers to this Incoming. * * @exception IllegalArgumentException * If not a query or if Truncated. */ void append(DNSIncoming that) { if (this.isQuery() && this.isTruncated() && that.isQuery()) { this._questions.addAll(that.getQuestions()); this._answers.addAll(that.getAnswers()); this._authoritativeAnswers.addAll(that.getAuthorities()); this._additionals.addAll(that.getAdditionals()); } else { throw new IllegalArgumentException(); } }
/** * Appends answers to this Incoming. * * @exception IllegalArgumentException * If not a query or if Truncated. */ void append(DNSIncoming that) { if (this.isQuery() && this.isTruncated() && that.isQuery()) { this._questions.addAll(that.getQuestions()); this._answers.addAll(that.getAnswers()); this._authoritativeAnswers.addAll(that.getAuthorities()); this._additionals.addAll(that.getAdditionals()); } else { throw new IllegalArgumentException(); } }
/** * Appends answers to this Incoming. * * @exception IllegalArgumentException * If not a query or if Truncated. */ void append(DNSIncoming that) { if (this.isQuery() && this.isTruncated() && that.isQuery()) { this._questions.addAll(that.getQuestions()); this._answers.addAll(that.getAnswers()); this._authoritativeAnswers.addAll(that.getAuthorities()); this._additionals.addAll(that.getAdditionals()); } else { throw new IllegalArgumentException(); } }
@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append(isQuery() ? "dns[query," : "dns[response,"); if (_packet.getAddress() != null) { sb.append(_packet.getAddress().getHostAddress());
@Override public String toString() { StringBuilder buf = new StringBuilder(); buf.append(isQuery() ? "dns[query," : "dns[response,"); if (_packet.getAddress() != null) { buf.append(_packet.getAddress().getHostAddress());
@Override public String toString() { StringBuilder buf = new StringBuilder(); buf.append(isQuery() ? "dns[query," : "dns[response,"); if (_packet.getAddress() != null) { buf.append(_packet.getAddress().getHostAddress());
@Override public String toString() { StringBuilder buf = new StringBuilder(); buf.append(isQuery() ? "dns[query," : "dns[response,"); if (_packet.getAddress() != null) { buf.append(_packet.getAddress().getHostAddress());
logger.finest(this.getName() + ".run() JmDNS in:" + msg.print(true)); if (msg.isQuery()) { if (packet.getPort() != DNSConstants.MDNS_PORT) { this._jmDNSImpl.handleQuery(msg, packet.getAddress(), packet.getPort());
logger.finest(this.getName() + ".run() JmDNS in:" + msg.print(true)); if (msg.isQuery()) { if (packet.getPort() != DNSConstants.MDNS_PORT) { this._jmDNSImpl.handleQuery(msg, packet.getAddress(), packet.getPort());
logger.finest(this.getName() + ".run() JmDNS in:" + msg.print(true)); if (msg.isQuery()) { if (packet.getPort() != DNSConstants.MDNS_PORT) { this._jmDNSImpl.handleQuery(msg, packet.getAddress(), packet.getPort());
logger.trace( "{}.run() JmDNS in:{}", this.getName(), msg.print(true)); if (msg.isQuery()) { if (packet.getPort() != DNSConstants.MDNS_PORT) { this._jmDNSImpl.handleQuery(msg, packet.getAddress(), packet.getPort());