org.cdavies.itunes.rendezvous
Class ItunesListener

java.lang.Object
  |
  +--org.cdavies.itunes.rendezvous.ItunesListener
All Implemented Interfaces:
ServiceListener

public class ItunesListener
extends java.lang.Object
implements ServiceListener


Field Summary
static java.lang.String ITUNES_SERVICE_DESC
           
 
Constructor Summary
ItunesListener(AppleRecordsServerControl serverControl, AppleRecordsStatusPanel status)
           
ItunesListener(java.net.InetAddress localhost, AppleRecordsServerControl serverControl, AppleRecordsStatusPanel status)
           
 
Method Summary
 void addService(JmDNS resolver, java.lang.String type, java.lang.String name)
          A service is added.
 void close()
           
 void removeService(JmDNS resolver, java.lang.String type, java.lang.String name)
          A service is removed.
 void resolveService(JmDNS jmdns, java.lang.String type, java.lang.String name, ServiceInfo info)
          A service is resolved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ITUNES_SERVICE_DESC

public static final java.lang.String ITUNES_SERVICE_DESC
See Also:
Constant Field Values
Constructor Detail

ItunesListener

public ItunesListener(java.net.InetAddress localhost,
                      AppleRecordsServerControl serverControl,
                      AppleRecordsStatusPanel status)
               throws java.io.IOException

ItunesListener

public ItunesListener(AppleRecordsServerControl serverControl,
                      AppleRecordsStatusPanel status)
               throws java.io.IOException
Method Detail

close

public void close()

addService

public void addService(JmDNS resolver,
                       java.lang.String type,
                       java.lang.String name)
Description copied from interface: ServiceListener
A service is added.

Specified by:
addService in interface ServiceListener
Parameters:
type - the fully qualified type of the service
name - the fully qualified name of the service

removeService

public void removeService(JmDNS resolver,
                          java.lang.String type,
                          java.lang.String name)
Description copied from interface: ServiceListener
A service is removed.

Specified by:
removeService in interface ServiceListener
Parameters:
type - the fully qualified type of the service
name - the fully qualified name of the service

resolveService

public void resolveService(JmDNS jmdns,
                           java.lang.String type,
                           java.lang.String name,
                           ServiceInfo info)
Description copied from interface: ServiceListener
A service is resolved. Its details are now available in the ServiceInfo record.

Specified by:
resolveService in interface ServiceListener
Parameters:
type - the fully qualified type of the service
name - the fully qualified name of the service
info - the service info record, or null if the service could be be resolved