java.lang.Object | |
↳ | org.ocast.discovery.SSDPManager |
SSDPManager provides a high level API to discover services with Simple Service Discovery Protocol
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | SSDPManager.DiscoveryListener | Interface for listening SSDP service discovery |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SSDPManager(String searchTarget, SSDPManager.DiscoveryListener listener)
Instanciate a SSDPManager to discover a given search target
| |||||||||||
SSDPManager(Set<String> searchTargetList, SSDPManager.DiscoveryListener listener)
Instanciate a SSDPManager to discover a given set of search target
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
changeReliability(DiscoveryReliability reliability)
Change the DiscoveryReliability of the discovery
| ||||||||||
void |
discoverServices(DiscoveryReliability reliability)
Starts actively polling the network to scan devices by sending a "M-SEARCH discover"
| ||||||||||
List<DialDevice> |
getDeviceDescriptions()
Get a list of devices discovered during latest network scan
| ||||||||||
void |
resolve(URI location)
Execute a Http Request on the given address in order to retrieve a cast device's description
| ||||||||||
void |
stopDiscovery()
Stops scanning to discover devices
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SSDPSocket |
createSocket()
Allow subclass to customize the socket creation
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Instanciate a SSDPManager to discover a given search target
searchTarget | the search target corresponding to devices of interest |
---|---|
listener | a listener interested in discovery events |
Instanciate a SSDPManager to discover a given set of search target
Change the DiscoveryReliability of the discovery
Starts actively polling the network to scan devices by sending a "M-SEARCH discover"
reliability | timeout/retries after we consider no device responded |
---|
Get a list of devices discovered during latest network scan
Execute a Http Request on the given address in order to retrieve a cast device's description
location | of the device description xml file |
---|
Stops scanning to discover devices
Allow subclass to customize the socket creation
IOException |
---|