Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.zeroconf.jmdns
Class ServiceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.impl.protocol.zeroconf.jmdns.ServiceEvent
All Implemented Interfaces:
Serializable

public class ServiceEvent
extends EventObject

ServiceEvent.

Version:
%I%, %G%
Author:
Werner Randelshofer, Rick Blair
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServiceEvent(JmDNS source, String type, String name, ServiceInfo info)
          Creates a new instance.
 
Method Summary
 JmDNS getDNS()
          Returns the JmDNS instance which originated the event.
 ServiceInfo getInfo()
          Returns the service info record, or null if the service could not be resolved.
 String getName()
          Returns the instance name of the service.
 String getType()
          Returns the fully qualified type of the service.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceEvent

public ServiceEvent(JmDNS source,
                    String type,
                    String name,
                    ServiceInfo info)
Creates a new instance.

Parameters:
source - the JmDNS instance which originated the event.
type - the type name of the service.
name - the instance name of the service.
info - the service info record, or null if the service could be be resolved.
Method Detail

getDNS

public JmDNS getDNS()
Returns the JmDNS instance which originated the event.

Returns:
Returns the JmDNS instance which originated the event.

getType

public String getType()
Returns the fully qualified type of the service.

Returns:
Returns the fully qualified type of the service.

getName

public String getName()
Returns the instance name of the service. Always returns null, if the event is sent to a service type listener.

Returns:
Returns the instance name of the service.

getInfo

public ServiceInfo getInfo()
Returns the service info record, or null if the service could not be resolved. Always returns null, if the event is sent to a service type listener.

Returns:
Returns the service info record.

toString

public String toString()
Overrides:
toString in class EventObject

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.