Package javax.jmdns.impl
Class DNSRecord.HostInformation
java.lang.Object
javax.jmdns.impl.DNSEntry
javax.jmdns.impl.DNSRecord
javax.jmdns.impl.DNSRecord.HostInformation
- Enclosing class:
DNSRecord
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.jmdns.impl.DNSRecord
DNSRecord.Address, DNSRecord.HostInformation, DNSRecord.IPv4Address, DNSRecord.IPv6Address, DNSRecord.Pointer, DNSRecord.Service, DNSRecord.Text -
Field Summary
FieldsFields inherited from class javax.jmdns.impl.DNSEntry
_qualifiedNameMap -
Constructor Summary
ConstructorsConstructorDescriptionHostInformation(String name, DNSRecordClass recordClass, boolean unique, int ttl, String cpu, String os) -
Method Summary
Modifier and TypeMethodDescription(package private) DNSOutgoingaddAnswer(JmDNSImpl dns, DNSIncoming in, InetAddress addr, int port, DNSOutgoing out) Adds this as an answer to the provided outgoing datagram.getServiceEvent(JmDNSImpl dns) Creates and return a service event for this record.getServiceInfo(boolean persistent) Return a service information associated with that record if appropriate.(package private) booleanhandleQuery(JmDNSImpl dns, long expirationTime) Handles a query represented by this record.(package private) booleanhandleResponse(JmDNSImpl dns) Handles a response represented by this record.booleanDetermine if a record can have multiple values in the cache.(package private) booleanTrue if this record has the same value as some other record.protected void(package private) voidWrite this record into an outgoing message.Methods inherited from class javax.jmdns.impl.DNSRecord
equals, getCreated, getExpirationTime, getRecordSource, getRemainingTTL, getServiceInfo, getTTL, incrementRefreshPercentage, isExpired, isStale, isStaleAndShouldBeRefreshed, resetTTL, sameType, setRecordSource, setTTL, setWillExpireSoon, suppressedBy, suppressedByMethods inherited from class javax.jmdns.impl.DNSEntry
compareTo, getKey, getName, getQualifiedNameMap, getRecordClass, getRecordType, getSubtype, getType, hashCode, isDomainDiscoveryQuery, isReverseLookup, isSameEntry, isSameRecordClass, isSameType, isServicesDiscoveryMetaQuery, isUnique, isV4ReverseLookup, isV6ReverseLookup, matchRecordClass, matchRecordType, sameSubtype, toByteArray, toByteArray, toString
-
Field Details
-
Constructor Details
-
HostInformation
public HostInformation(String name, DNSRecordClass recordClass, boolean unique, int ttl, String cpu, String os) - Parameters:
name-recordClass-unique-ttl-cpu-os-
-
-
Method Details
-
addAnswer
DNSOutgoing addAnswer(JmDNSImpl dns, DNSIncoming in, InetAddress addr, int port, DNSOutgoing out) throws IOException Description copied from class:DNSRecordAdds this as an answer to the provided outgoing datagram.- Specified by:
addAnswerin classDNSRecord- Throws:
IOException
-
handleQuery
Description copied from class:DNSRecordHandles a query represented by this record.- Specified by:
handleQueryin classDNSRecord- Returns:
- Returns true if a conflict with one of the services registered with JmDNS or with the hostname occured.
-
handleResponse
Description copied from class:DNSRecordHandles a response represented by this record.- Specified by:
handleResponsein classDNSRecord- Returns:
- Returns true if a conflict with one of the services registered with JmDNS or with the hostname occured.
-
sameValue
Description copied from class:DNSRecordTrue if this record has the same value as some other record. -
isSingleValued
public boolean isSingleValued()Description copied from class:DNSRecordDetermine if a record can have multiple values in the cache.- Specified by:
isSingleValuedin classDNSRecord- Returns:
falseif this record can have multiple values in the cache,trueotherwise.
-
write
Description copied from class:DNSRecordWrite this record into an outgoing message. -
getServiceInfo
Description copied from class:DNSRecordReturn a service information associated with that record if appropriate.- Specified by:
getServiceInfoin classDNSRecord- Parameters:
persistent- iftrueServiceListener.resolveService will be called whenever new new information is received.- Returns:
- service information
-
getServiceEvent
Description copied from class:DNSRecordCreates and return a service event for this record.- Specified by:
getServiceEventin classDNSRecord- Parameters:
dns- DNS serviced by this event- Returns:
- service event
-
toString
-