
Classes | |
| class | AllRecords |
| class | DNS4Address |
| class | DNS6Address |
| class | HostInformation |
| class | Pointer |
| class | Service |
| class | Text |
Public Member Functions | |
| void | addAnswers (JmDNSImpl jmDNSImpl, Set< DNSRecord > answers) |
| boolean | iAmTheOnlyOne (JmDNSImpl jmDNSImpl) |
| boolean | isExpired (long now) |
| boolean | isStale (long now) |
| void | toString (StringBuilder aLog) |
Static Public Member Functions | |
| static DNSQuestion | newQuestion (String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique) |
Protected Member Functions | |
| void | addAnswersForServiceInfo (JmDNSImpl jmDNSImpl, Set< DNSRecord > answers, ServiceInfoImpl info) |
Package Functions | |
| boolean | answeredBy (DNSEntry rec) |
| DNSQuestion (String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique) | |
Static Private Attributes | |
| static Logger | logger = Logger.getLogger(DNSQuestion.class.getName()) |
A DNS question.
Definition at line 24 of file DNSQuestion.java.
| javax.jmdns.impl.DNSQuestion.DNSQuestion | ( | String | name, |
| DNSRecordType | type, | ||
| DNSRecordClass | recordClass, | ||
| boolean | unique | ||
| ) | [inline, package] |
Definition at line 219 of file DNSQuestion.java.
| void javax.jmdns.impl.DNSQuestion.addAnswers | ( | JmDNSImpl | jmDNSImpl, |
| Set< DNSRecord > | answers | ||
| ) | [inline] |
Adds answers to the list for our question.
| jmDNSImpl | DNS holding the records |
| answers | List of previous answer to append. |
Reimplemented in javax.jmdns.impl.DNSQuestion.AllRecords, javax.jmdns.impl.DNSQuestion.Text, javax.jmdns.impl.DNSQuestion.Service, javax.jmdns.impl.DNSQuestion.Pointer, javax.jmdns.impl.DNSQuestion.DNS6Address, and javax.jmdns.impl.DNSQuestion.DNS4Address.
Definition at line 274 of file DNSQuestion.java.
| void javax.jmdns.impl.DNSQuestion.addAnswersForServiceInfo | ( | JmDNSImpl | jmDNSImpl, |
| Set< DNSRecord > | answers, | ||
| ServiceInfoImpl | info | ||
| ) | [inline, protected] |
Definition at line 278 of file DNSQuestion.java.
| boolean javax.jmdns.impl.DNSQuestion.answeredBy | ( | DNSEntry | rec | ) | [inline, package] |
Check if this question is answered by a given DNS record.
Definition at line 262 of file DNSQuestion.java.
| boolean javax.jmdns.impl.DNSQuestion.iAmTheOnlyOne | ( | JmDNSImpl | jmDNSImpl | ) | [inline] |
Checks if we are the only to be able to answer that question.
| jmDNSImpl | DNS holding the records |
true if we are the only one with the answer to the question, false otherwise. Reimplemented in javax.jmdns.impl.DNSQuestion.AllRecords, javax.jmdns.impl.DNSQuestion.Text, javax.jmdns.impl.DNSQuestion.Service, javax.jmdns.impl.DNSQuestion.DNS6Address, and javax.jmdns.impl.DNSQuestion.DNS4Address.
Definition at line 315 of file DNSQuestion.java.
| boolean javax.jmdns.impl.DNSQuestion.isExpired | ( | long | now | ) | [inline, virtual] |
Check if the record is expired.
| now | update date |
true is the record is expired, false otherwise. Implements javax.jmdns.impl.DNSEntry.
Definition at line 304 of file DNSQuestion.java.
| boolean javax.jmdns.impl.DNSQuestion.isStale | ( | long | now | ) | [inline, virtual] |
Check if the record is stale, i.e. it has outlived more than half of its TTL.
| now | update date |
true is the record is stale, false otherwise. Implements javax.jmdns.impl.DNSEntry.
Definition at line 295 of file DNSQuestion.java.
| static DNSQuestion javax.jmdns.impl.DNSQuestion.newQuestion | ( | String | name, |
| DNSRecordType | type, | ||
| DNSRecordClass | recordClass, | ||
| boolean | unique | ||
| ) | [inline, static] |
Create a question.
| name | DNS name to be resolved |
| type | Record type to resolve |
| recordClass | Record class to resolve |
| unique | Request unicast response (Currently not supported in this implementation) |
Definition at line 236 of file DNSQuestion.java.
| void javax.jmdns.impl.DNSQuestion.toString | ( | StringBuilder | aLog | ) | [inline] |
| aLog |
Reimplemented from javax.jmdns.impl.DNSEntry.
Definition at line 324 of file DNSQuestion.java.
Logger javax.jmdns.impl.DNSQuestion.logger = Logger.getLogger(DNSQuestion.class.getName()) [static, private] |
Definition at line 25 of file DNSQuestion.java.