|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PocketDiscoveryService
An interface for the Pocket Discovery Service.
Pocket Discovery Service is a lightweight version of the Discovery Service designed to run on a pocket pc or similar device.
Except from the registerDiscoveryService(String url) -method, the service does no job on its own, and instead forwards all requests to a Discovery Service.
The url of the Discovery Service to forward to is read from a config file at startup, but can also be set at runtime via the registerDiscoveryService(String url) -method.
no.ubicollab.osgi.service.discovery.DiscoveryService
Method Summary | |
---|---|
java.lang.String[] |
getInfoAboutService(java.lang.String url)
Gets all registered information about the specified service. |
java.lang.String |
getService(java.lang.String searchString)
Searches for services in the database, and returns any matches. |
boolean |
registerDiscoveryService(java.lang.String url)
Sets the url of the Discovery Service to forward requests to. |
boolean |
registerService(java.lang.String url)
Registers a service. |
boolean |
registerService(java.lang.String tagId,
java.lang.String url)
Registers a service. |
boolean |
registerService(java.lang.String tagId,
java.lang.String uuId,
java.lang.String name,
java.lang.String type,
java.lang.String protocol,
java.lang.String descriptionUrl,
java.lang.String serviceUrl,
java.lang.String owner)
Registers a service. |
boolean |
removeService(java.lang.String removeString)
Removes all services matching the removeString. |
Method Detail |
---|
boolean registerDiscoveryService(java.lang.String url)
url
- Url of the Discovery Service to forward requests to.
boolean registerService(java.lang.String tagId, java.lang.String url)
tagId
- The id of the RFID tag scanned to get the service.url
- The descriptionUrl of the service.
boolean registerService(java.lang.String url)
url
- The descriptionUrl of the service.
boolean registerService(java.lang.String tagId, java.lang.String uuId, java.lang.String name, java.lang.String type, java.lang.String protocol, java.lang.String descriptionUrl, java.lang.String serviceUrl, java.lang.String owner)
tagId
- The id of the RFID tag scanned to get the service.uuId
- The id of the UPnP device providing the service.name
- The name of the service.type
- The service type.protocol
- The service protocol.descriptionUrl
- The URL describing the service (ie. the URL to a WSDL-file).serviceUrl
- The service URL of the service (ie. http://abc.com/axis/services/ubiService)owner
- The person owning the service.
java.lang.String getService(java.lang.String searchString)
searchString
- tagId:<tagId> uuId:<uuId> name:<name> type:<type> protocol:<protocol>
descriptionUrl:<descriptionUrl> serviceUrl:<serviceUrl>
Any number of these flags may be present, but they must come
in the right order. Example: "name:My Service type:no.ubicollab.service"
boolean removeService(java.lang.String removeString)
removeString
- tagId:<tagId> uuId:<uuId> name:<name> type:<type> protocol:<protocol>
descriptionUrl:<descriptionUrl> serviceUrl:<serviceUrl>
Any number of these flags may be present, but they must come
in the right order. Example: "name:My Service type:no.ubicollab.service"
java.lang.String[] getInfoAboutService(java.lang.String url)
url
- Either the descriptionUrl or the serviceUrl of the service.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |