Class TypeResolver
java.lang.Object
java.util.TimerTask
javax.jmdns.impl.tasks.DNSTask
javax.jmdns.impl.tasks.resolver.DNSResolverTask
javax.jmdns.impl.tasks.resolver.TypeResolver
- All Implemented Interfaces:
Runnable
Helper class to resolve service types.
The TypeResolver queries three times consecutively for service types, and then removes itself from the timer.
The TypeResolver will run only if JmDNS is in state ANNOUNCED.
-
Field Summary
Fields inherited from class DNSResolverTask
_count -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DNSOutgoingaddAnswers(DNSOutgoing out) Overridden by subclasses to add questions to the message.
Note: Because of message size limitation the returned message may be different than the message parameter.protected DNSOutgoingaddQuestions(DNSOutgoing out) Overridden by subclasses to add questions to the message.
Note: Because of message size limitation the returned message may be different than the message parameter.protected StringReturns a description of the resolver for debugginggetName()Return this task name.Methods inherited from class DNSResolverTask
run, start, toStringMethods inherited from class DNSTask
addAdditionalAnswer, addAnswer, addAnswer, addAuthoritativeAnswer, addQuestion, getDnsMethods inherited from class TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
TypeResolver
- Parameters:
jmDNSImpl-
-
-
Method Details
-
getName
-
addAnswers
Description copied from class:DNSResolverTaskOverridden by subclasses to add questions to the message.
Note: Because of message size limitation the returned message may be different than the message parameter.- Specified by:
addAnswersin classDNSResolverTask- Parameters:
out- outgoing message- Returns:
- the outgoing message.
- Throws:
IOException
-
addQuestions
Description copied from class:DNSResolverTaskOverridden by subclasses to add questions to the message.
Note: Because of message size limitation the returned message may be different than the message parameter.- Specified by:
addQuestionsin classDNSResolverTask- Parameters:
out- outgoing message- Returns:
- the outgoing message.
- Throws:
IOException
-
description
Description copied from class:DNSResolverTaskReturns a description of the resolver for debugging- Specified by:
descriptionin classDNSResolverTask- Returns:
- resolver description
-