public class ServiceEventImpl extends ServiceEvent
Constructor and Description |
---|
ServiceEventImpl(JmDNSImpl jmDNS,
java.lang.String type,
java.lang.String name,
ServiceInfo info)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
ServiceEventImpl |
clone() |
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.
|
java.lang.String |
getName()
Returns the instance name of the service.
|
java.lang.String |
getType()
Returns the fully qualified type of the service.
|
java.lang.String |
toString() |
public ServiceEventImpl(JmDNSImpl jmDNS, java.lang.String type, java.lang.String name, ServiceInfo info)
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.public JmDNS getDNS()
ServiceEvent
getDNS
in class ServiceEvent
public java.lang.String getType()
ServiceEvent
getType
in class ServiceEvent
public java.lang.String getName()
ServiceEvent
getName
in class ServiceEvent
public java.lang.String toString()
toString
in class java.util.EventObject
public ServiceInfo getInfo()
ServiceEvent
getInfo
in class ServiceEvent
ServiceEvent.getInfo()
public ServiceEventImpl clone()
clone
in class ServiceEvent