|
||||||||||
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 to create 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 describing parameters 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. |
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 |
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)
type
- the service typedescriptionUri
- the service description uriowner
- the owner of the servicedescription
- the textual service descriptionsdProtocol
- the sd protocol that discovered the servicelocation
- the location of the servicename
- the name of the serviceserviceURI
- the service invocation 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 service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |