JmDNS 3.4.1

javax.jmdns.impl.tasks
Class Responder

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

public class Responder
extends DNSTask

The Responder sends a single answer for the specified service infos and for the host name.


Constructor Summary
Responder(JmDNSImpl jmDNSImpl, DNSIncoming in, int port)
           
 
Method Summary
 String getName()
          Return this task name.
 void run()
           
 void start(Timer timer)
          Start this task.
 String 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

Responder

public Responder(JmDNSImpl jmDNSImpl,
                 DNSIncoming in,
                 int port)
Method Detail

getName

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

Specified by:
getName in class DNSTask
Returns:
task name

toString

public String toString()
Overrides:
toString in class DNSTask

start

public void start(Timer timer)
Description copied from class: DNSTask
Start this task.

Specified by:
start in class DNSTask
Parameters:
timer - task timer.

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class TimerTask

Last updated 2011-08-25 12:40

Copyright © 2002-2011 JmDNS. All Rights Reserved.