Package javax.jmdns.impl
Class ServiceEventImpl
java.lang.Object
java.util.EventObject
javax.jmdns.ServiceEvent
javax.jmdns.impl.ServiceEventImpl
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionServiceEventImpl
(JmDNSImpl jmDNS, String type, String name, ServiceInfo info) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionclone()
getDNS()
Returns the JmDNS instance which originated the event.getInfo()
Returns the service info record, or null if the service could not be resolved.getName()
Returns the instance name of the service.getType()
Returns the fully qualified type of the service.toString()
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
ServiceEventImpl
Creates a new instance.- Parameters:
jmDNS
- 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 Details
-
getDNS
Description copied from class:ServiceEvent
Returns the JmDNS instance which originated the event.- Specified by:
getDNS
in classServiceEvent
- Returns:
- JmDNS instance
-
getType
Description copied from class:ServiceEvent
Returns the fully qualified type of the service.- Specified by:
getType
in classServiceEvent
- Returns:
- type of the service.
-
getName
Description copied from class:ServiceEvent
Returns the instance name of the service. Always returns null, if the event is sent to a service type listener.- Specified by:
getName
in classServiceEvent
- Returns:
- name of the service
-
toString
- Overrides:
toString
in classEventObject
-
getInfo
Description copied from class:ServiceEvent
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.- Specified by:
getInfo
in classServiceEvent
- Returns:
- service info record
- See Also:
-
clone
- Overrides:
clone
in classServiceEvent
-