|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ubicollab.osgi.Service
public class Service
The Service Class is intended to be a general class to hold information about a service which have been found and registered by a plugin.
Constructor Summary | |
---|---|
Service()
Constructor for creating an empty Service object. |
|
Service(java.lang.String name,
java.lang.String serviceURI,
java.lang.String location,
java.lang.String sdProtocol,
java.lang.String owner,
java.lang.String descriptionUri,
java.lang.String type,
java.lang.String description)
Constructor for creating an Service object and setting the variables at the same time. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Gets the description attribute for the service. |
java.lang.String |
getDescriptionURI()
Gets the description URI. |
java.lang.String |
getLocation()
Gets the location attribute for the service. |
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getOwner()
Gets the owner attribute. |
java.lang.String |
getSdProtocol()
Gets the Service Discovery protocol attribute for the service. |
int |
getServiceID()
Gets the service ID. |
java.lang.String |
getServiceURI()
Gets the service URI. |
java.lang.String |
getType()
Gets the service type attribute. |
java.lang.String |
getXML()
Gets the XML represenatation for the service. |
void |
setDescription(java.lang.String description)
Sets the description attribute for the service. |
void |
setDescriptionURI(java.lang.String descriptionURI)
Sets the description URI. |
void |
setLocation(java.lang.String location)
Sets the location attribute for the service. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setOwner(java.lang.String owner)
Sets the service owner attribute. |
void |
setSdProtocol(java.lang.String sdProtocol)
Sets the Service Discovery protocol attribute for the service. |
void |
setServiceID(int serviceID)
Sets the service ID. |
void |
setServiceURI(java.lang.String serviceURI)
Sets the service URI. |
void |
setType(java.lang.String type)
Sets the service type attribute. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Service()
public Service(java.lang.String name, java.lang.String serviceURI, java.lang.String location, java.lang.String sdProtocol, java.lang.String owner, java.lang.String descriptionUri, java.lang.String type, java.lang.String description)
spaceID
- the space IDspace
- the spacename
- the namebundleID
- the bundle IDserviceURI
- the service URIMethod Detail |
---|
public java.lang.String getXML()
The format of the returned xml-document contained in a
String
is as follows:
<Service Protocol="String" Name="String" ServiceUri="String" Location="String" Owner="String" DescriptionUri="String" Type="String" Description="String"/>
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the namepublic java.lang.String getServiceURI()
public void setServiceURI(java.lang.String serviceURI)
serviceURI
- the service URIpublic java.lang.String getDescriptionURI()
public void setDescriptionURI(java.lang.String descriptionURI)
descriptionURI
- the description URIpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- the service type attributepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description attribute for the servicepublic java.lang.String getSdProtocol()
public void setSdProtocol(java.lang.String sdProtocol)
sdProtocol
- the Service Discovery protocol attribute for the servicepublic java.lang.String getLocation()
public void setLocation(java.lang.String location)
location
- the location attribute for the servicepublic java.lang.String getOwner()
public void setOwner(java.lang.String owner)
owner
- the owner of the servicepublic int getServiceID()
public void setServiceID(int serviceID)
serviceID
- the service ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |