|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSDPListener
An SSDP Event Listener interface
This interface should be implemented by all objects that are interested in being notified of SSDP events
Method Summary | |
---|---|
void |
deviceRemoved(java.lang.String uuid)
The device was removed from the network |
void |
newDeviceAnnounced(java.lang.String uuid,
java.lang.String type,
java.lang.String descriptionURL,
int max_age)
A new device was announced on the network. |
void |
newServiceAnnounced(java.lang.String uuid,
java.lang.String type,
java.lang.String descriptionURL)
A new service was announced on the network |
void |
searchResult(boolean isUDI,
java.lang.String uuid,
java.lang.String descriptionURL)
Search results where found |
void |
serviceRemoved(java.lang.String uuid,
java.lang.String type)
The service was removed from the network |
void |
setSearching(boolean is_searching)
Sets whether or not we are in an asynchronous search |
Method Detail |
---|
void newDeviceAnnounced(java.lang.String uuid, java.lang.String type, java.lang.String descriptionURL, int max_age)
This event is generated
on an interval by UPnP devices and can be used as
a) Heartbeat
b) capture any changes the device (such as change in the IP)
uuid
- - the uuid of the devicetype
- - the type of device (UPnP types)descriptionURL
- - the URL where the description of the device
may be foundmax_age
- - maximum age when after which we can consider device
dead or inoperablevoid deviceRemoved(java.lang.String uuid)
uuid
- - the uuid of the device removedvoid newServiceAnnounced(java.lang.String uuid, java.lang.String type, java.lang.String descriptionURL)
uuid
- - the uuid of the service (device/service combination)type
- - the type of the servicedescriptionURL
- - the URL where the description of the service
may be foundvoid serviceRemoved(java.lang.String uuid, java.lang.String type)
uuid
- - the uuid of the service removedtype
- - the type of the service removedvoid searchResult(boolean isUDI, java.lang.String uuid, java.lang.String descriptionURL)
An asynchronous search resulted in a discovered device which is notified, through this method, to the listener
isUDI
- - whether or not the discovered device is an ISYuuid
- - the uuid of the devicedescriptionURL
- - the URL where the description of the device may be
foundvoid setSearching(boolean is_searching)
If in we are already performing another asynch search another search request shall not be obliged
is_searching
- - true if we are already searching, false otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |