Package javax.jmdns.impl
Class DNSQuestion.Text
- java.lang.Object
-
- javax.jmdns.impl.DNSEntry
-
- javax.jmdns.impl.DNSQuestion
-
- javax.jmdns.impl.DNSQuestion.Text
-
- Enclosing class:
- DNSQuestion
private static class DNSQuestion.Text extends DNSQuestion
Text question.
-
-
Field Summary
-
Fields inherited from class javax.jmdns.impl.DNSEntry
_qualifiedNameMap
-
-
Constructor Summary
Constructors Constructor Description Text(java.lang.String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnswers(JmDNSImpl jmDNSImpl, java.util.Set<DNSRecord> answers)Adds answers to the list for our question.booleaniAmTheOnlyOne(JmDNSImpl jmDNSImpl)Checks if we are the only to be able to answer that question.-
Methods inherited from class javax.jmdns.impl.DNSQuestion
addAnswersForServiceInfo, answeredBy, isExpired, isStale, newQuestion, toString
-
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, matchRecordClass, matchRecordType, sameSubtype, toByteArray, toByteArray, toString
-
-
-
-
Constructor Detail
-
Text
Text(java.lang.String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique)
-
-
Method Detail
-
addAnswers
public void addAnswers(JmDNSImpl jmDNSImpl, java.util.Set<DNSRecord> answers)
Description copied from class:DNSQuestionAdds answers to the list for our question.- Overrides:
addAnswersin classDNSQuestion- Parameters:
jmDNSImpl- DNS holding the recordsanswers- List of previous answer to append.
-
iAmTheOnlyOne
public boolean iAmTheOnlyOne(JmDNSImpl jmDNSImpl)
Description copied from class:DNSQuestionChecks if we are the only to be able to answer that question.- Overrides:
iAmTheOnlyOnein classDNSQuestion- Parameters:
jmDNSImpl- DNS holding the records- Returns:
trueif we are the only one with the answer to the question,falseotherwise.
-
-