JmDNS 3.4.1

javax.jmdns.impl.tasks.resolver
Class TypeResolver

java.lang.Object
  extended by java.util.TimerTask
      extended by javax.jmdns.impl.tasks.DNSTask
          extended by javax.jmdns.impl.tasks.resolver.DNSResolverTask
              extended by javax.jmdns.impl.tasks.resolver.TypeResolver
All Implemented Interfaces:
Runnable

public class TypeResolver
extends DNSResolverTask

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 javax.jmdns.impl.tasks.resolver.DNSResolverTask
_count
 
Constructor Summary
TypeResolver(JmDNSImpl jmDNSImpl)
           
 
Method Summary
protected  DNSOutgoing addAnswers(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  DNSOutgoing addQuestions(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  String description()
          Returns a description of the resolver for debugging
 String getName()
          Return this task name.
 
Methods inherited from class javax.jmdns.impl.tasks.resolver.DNSResolverTask
run, start, toString
 
Methods inherited from class javax.jmdns.impl.tasks.DNSTask
addAdditionalAnswer, addAnswer, addAnswer, addAuthoritativeAnswer, addQuestion, getDns
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeResolver

public TypeResolver(JmDNSImpl jmDNSImpl)
Parameters:
jmDNSImpl -
Method Detail

getName

public String getName()
Description copied from class: DNSTask
Return this task name.

Specified by:
getName in class DNSTask
Returns:
task name

addAnswers

protected DNSOutgoing addAnswers(DNSOutgoing out)
                          throws IOException
Description copied from class: DNSResolverTask
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.

Specified by:
addAnswers in class DNSResolverTask
Parameters:
out - outgoing message
Returns:
the outgoing message.
Throws:
IOException

addQuestions

protected DNSOutgoing addQuestions(DNSOutgoing out)
                            throws IOException
Description copied from class: DNSResolverTask
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.

Specified by:
addQuestions in class DNSResolverTask
Parameters:
out - outgoing message
Returns:
the outgoing message.
Throws:
IOException

description

protected String description()
Description copied from class: DNSResolverTask
Returns a description of the resolver for debugging

Specified by:
description in class DNSResolverTask
Returns:
resolver description

Last updated 2011-08-25 12:40

Copyright © 2002-2011 JmDNS. All Rights Reserved.