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
FieldsModifier and TypeFieldDescriptionprivate final ServiceInfoThe service info record, or null if the service could be be resolved.private final StringThe instance name of the service.private final StringThe type name of the service.private static final longFields 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
_type
The type name of the service. -
_name
The instance name of the service. Or null, if the event was fired to a service type listener. -
_info
The service info record, or null if the service could be be resolved. This is also null, if the event was fired to a service type listener.
-
-
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:ServiceEventReturns the JmDNS instance which originated the event.- Specified by:
getDNSin classServiceEvent- Returns:
- JmDNS instance
-
getType
Description copied from class:ServiceEventReturns the fully qualified type of the service.- Specified by:
getTypein classServiceEvent- Returns:
- type of the service.
-
getName
Description copied from class:ServiceEventReturns the instance name of the service. Always returns null, if the event is sent to a service type listener.- Specified by:
getNamein classServiceEvent- Returns:
- name of the service
-
toString
- Overrides:
toStringin classEventObject
-
getInfo
Description copied from class:ServiceEventReturns 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:
getInfoin classServiceEvent- Returns:
- service info record
- See Also:
-
clone
- Overrides:
clonein classServiceEvent
-