Service Discovery API

Class ServiceDescriptor

Object
   |
   +--ServiceDescriptor

class ServiceDescriptor


Metadata for a service

A service is an application that exposes itself through a Web interface and allows users to view it or interact with it programatically. Objects of this class give you access to information such as the name and description of a service and which URL it is exposed on. This says nothing of the capabilities of the service, so other services will need to know about the internal workings of the service in order to communicate with it.

Services are exposed in a ServiceList object through the DeviceDescriptor.services property.


Defined in service-discovery.js


Field Summary
 String description
          Human-redable description of this service.
 DeviceDescriptor device
          The device this service belongs to.
 String id
          Unique identifier for this service.
 Boolean isUniteService
          Whether this service is an Opera Unite service.
 String name
          Human-redable name of this service.
 int OFFLINE
          Constant for whether a service is offline.
 int ONLINE
          Constant for whether a service is online.
 int status
          The availability status of this service.
 String url
          URL this service is exposed on.
 
Constructor Summary
ServiceDescriptor()
            This class has no public constructor.
 

Field Detail

description

String description

device

DeviceDescriptor device

id

String id

isUniteService

Boolean isUniteService

name

String name

OFFLINE

int OFFLINE

ONLINE

int ONLINE

status

int status

url

String url

Constructor Detail

ServiceDescriptor

ServiceDescriptor()

Service Discovery API

Documentation generated by JSDoc on Fri Aug 14 11:46:31 2009