Package javax.jmdns

Class ServiceEvent

java.lang.Object
java.util.EventObject
javax.jmdns.ServiceEvent
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
ServiceEventImpl

public abstract class ServiceEvent extends EventObject implements Cloneable
See Also:
  • Field Details

  • Constructor Details

    • ServiceEvent

      public ServiceEvent(Object eventSource)
      Constructs a Service Event.
      Parameters:
      eventSource - The object on which the Event initially occurred.
      Throws:
      IllegalArgumentException - if source is null.
  • Method Details

    • getDNS

      public abstract JmDNS getDNS()
      Returns the JmDNS instance which originated the event.
      Returns:
      JmDNS instance
    • getType

      public abstract String getType()
      Returns the fully qualified type of the service.
      Returns:
      type of the service.
    • getName

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

      public abstract 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:
      service info record
      See Also:
    • clone

      public ServiceEvent clone()
      Overrides:
      clone in class Object