| 
 | JmDNS 3.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.jmdns.impl.DNSEntry
javax.jmdns.impl.DNSQuestion
public class DNSQuestion
A DNS question.
| Method Summary | |
|---|---|
|  void | addAnswers(JmDNSImpl jmDNSImpl,
           Set<DNSRecord> answers)Adds answers to the list for our question. | 
| protected  void | addAnswersForServiceInfo(JmDNSImpl jmDNSImpl,
                         Set<DNSRecord> answers,
                         ServiceInfoImpl info) | 
|  boolean | iAmTheOnlyOne(JmDNSImpl jmDNSImpl)Checks if we are the only to be able to answer that question. | 
|  boolean | isExpired(long now)Check if the record is expired. | 
|  boolean | isStale(long now)Check if the record is stale, i.e. | 
| static DNSQuestion | newQuestion(String name,
            DNSRecordType type,
            DNSRecordClass recordClass,
            boolean unique)Create a question. | 
|  void | toString(StringBuilder aLog) | 
| Methods inherited from class javax.jmdns.impl.DNSEntry | 
|---|
| compareTo, equals, getKey, getName, getQualifiedNameMap, getRecordClass, getRecordType, getSubtype, getType, hashCode, isDomainDiscoveryQuery, isReverseLookup, isSameEntry, isSameRecordClass, isSameType, isServicesDiscoveryMetaQuery, isUnique, isV4ReverseLookup, isV6ReverseLookup, sameSubtype, toByteArray, toByteArray, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Method Detail | 
|---|
public static DNSQuestion newQuestion(String name,
                                      DNSRecordType type,
                                      DNSRecordClass recordClass,
                                      boolean unique)
name - DNS name to be resolvedtype - Record type to resolverecordClass - Record class to resolveunique - Request unicast response (Currently not supported in this implementation)
public void addAnswers(JmDNSImpl jmDNSImpl,
                       Set<DNSRecord> answers)
jmDNSImpl - DNS holding the recordsanswers - List of previous answer to append.
protected void addAnswersForServiceInfo(JmDNSImpl jmDNSImpl,
                                        Set<DNSRecord> answers,
                                        ServiceInfoImpl info)
public boolean isStale(long now)
DNSEntry
isStale in class DNSEntrynow - update date
true is the record is stale, false otherwise.public boolean isExpired(long now)
DNSEntry
isExpired in class DNSEntrynow - update date
true is the record is expired, false otherwise.public boolean iAmTheOnlyOne(JmDNSImpl jmDNSImpl)
jmDNSImpl - DNS holding the records
true if we are the only one with the answer to the question, false otherwise.public void toString(StringBuilder aLog)
toString in class DNSEntry| 
 | Last updated 2011-08-25 12:40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||