Class ServiceEvent
java.lang.Object
java.util.EventObject
javax.jmdns.ServiceEvent
- All Implemented Interfaces:
Serializable, Cloneable
- Direct Known Subclasses:
ServiceEventImpl
- See Also:
-
Field Summary
FieldsFields inherited from class EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()abstract JmDNSgetDNS()Returns the JmDNS instance which originated the event.abstract ServiceInfogetInfo()Returns the service info record, or null if the service could not be resolved.abstract StringgetName()Returns the instance name of the service.abstract StringgetType()Returns the fully qualified type of the service.Methods inherited from class EventObject
getSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ServiceEvent
Constructs a Service Event.- Parameters:
eventSource- The object on which the Event initially occurred.- Throws:
IllegalArgumentException- if source is null.
-
-
Method Details
-
getDNS
Returns the JmDNS instance which originated the event.- Returns:
- JmDNS instance
-
getType
Returns the fully qualified type of the service.- Returns:
- type of the service.
-
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
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
-