net.sbbi.upnp.jmx
Class UPNPDiscoveryNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by net.sbbi.upnp.jmx.UPNPDiscoveryNotification
All Implemented Interfaces:
Serializable

public class UPNPDiscoveryNotification
extends javax.management.Notification

Discovery notification sent when a new set of UPNPServiceMBean for a given discovered UPNP device is registered within the server. The same notification is also sent when a device is leaving the network.

Version:
1.0
Author:
SuperBonBon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
UPNPDiscoveryNotification(String type, Object source, long sequenceNumber, long timeStamp)
           
 
Method Summary
 URL getLocation()
          The Device descriptor location only provided when an ssdp alive notification is recieved
 String getNt()
          The device type
 String getUdn()
          The device Identifier
 javax.management.ObjectName[] getUPNPServiceMBeans()
          The registered UPNPServiceMBeans object names bound to this device joining or leaving the network
 String getUsn()
          The device id + ":" + type
protected  void setLocation(URL location)
           
protected  void setNt(String nt)
           
protected  void setUdn(String udn)
           
protected  void setUPNPServiceMBeans(javax.management.ObjectName[] serviceMBeans)
           
protected  void setUsn(String usn)
           
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UPNPDiscoveryNotification

public UPNPDiscoveryNotification(String type,
                                 Object source,
                                 long sequenceNumber,
                                 long timeStamp)
Method Detail

getLocation

public URL getLocation()
The Device descriptor location only provided when an ssdp alive notification is recieved

Returns:
the device descriptor location

setLocation

protected void setLocation(URL location)

getNt

public String getNt()
The device type

Returns:
the device type

setNt

protected void setNt(String nt)

getUdn

public String getUdn()
The device Identifier

Returns:
the device ID

setUdn

protected void setUdn(String udn)

getUsn

public String getUsn()
The device id + ":" + type

Returns:
the device USN

setUsn

protected void setUsn(String usn)

getUPNPServiceMBeans

public javax.management.ObjectName[] getUPNPServiceMBeans()
The registered UPNPServiceMBeans object names bound to this device joining or leaving the network

Returns:
UPNPServiceMBeans object names array

setUPNPServiceMBeans

protected void setUPNPServiceMBeans(javax.management.ObjectName[] serviceMBeans)


Copyright © 2010. All Rights Reserved.