|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.document.Advertisement | +--net.jxta.protocol.ServiceAdvertisement
This abstract class defines a Service Advertisement. Service advertisement
describe an implementation of a peer group service or a peer service. The
service advertisement describes the necessary information to a peer to
download a version of the service on the peer and to configure the service
as a peer group service or as a peer service.
Note: ServiceAdvertisement is also used to describe the main Application
of a PeerGroup.
A service advertisement is part of a Peer or PeerGroup Advertisement
<?xml version="1.0"?> <ServiceAdvertisement> <Name> name </Name> <Version> version </Version> <Uri> Uri </Uri> <Provider> provider </Provider> <Security> security </Security> <Code> implementation code </Code> </ServiceAdvertisement>
PeerGroupAdvertisement
,
PeerAdvertisement
,
ServiceAdvertisement
Constructor Summary | |
ServiceAdvertisement()
|
Method Summary | |
static java.lang.String |
getAdvertisementType()
returns the advertisement type |
java.lang.String |
getCode()
returns the service implementation |
java.lang.String |
getKeywords()
returns the service search keywords |
java.lang.String |
getName()
returns the name of the service |
java.util.Vector |
getParams()
returns the service params |
PipeAdvertisement |
getPipe()
returns the pipe advertisment for this service |
java.lang.String |
getProvider()
returns the provider information for the service |
java.lang.String |
getSecurity()
returns the security service advertisement |
java.lang.String |
getUri()
returns the uri |
java.lang.String |
getVersion()
returns the service version number |
void |
setCode(java.lang.String code)
sets the service implementation |
void |
setKeywords(java.lang.String keywords)
sets the the service seach keywords |
void |
setName(java.lang.String name)
sets the name |
void |
setParams(java.util.Vector params)
sets the service params |
void |
setPipe(PipeAdvertisement pipe)
sets the pipe advertisement for the service |
void |
setProvider(java.lang.String provider)
sets the service provider information |
void |
setSecurity(java.lang.String security)
sets the security service name for this service |
void |
setUri(java.lang.String uri)
sets the uri |
void |
setVersion(java.lang.String version)
sets the version of the service |
Methods inherited from class net.jxta.document.Advertisement |
getDocument |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceAdvertisement()
Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.String getName()
public void setName(java.lang.String name)
string
- namepublic java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- version numberpublic java.lang.String getProvider()
public void setProvider(java.lang.String provider)
provider
- informationpublic java.lang.String getUri()
public void setUri(java.lang.String uri)
uri
- string uripublic java.lang.String getCode()
public void setCode(java.lang.String code)
code
- string service implementationpublic java.lang.String getSecurity()
public void setSecurity(java.lang.String security)
security
- security servicepublic PipeAdvertisement getPipe()
public void setPipe(PipeAdvertisement pipe)
pipe
- advertisment pipe for the servicepublic java.lang.String getKeywords()
public void setKeywords(java.lang.String keywords)
keywords
- string keywords associated with the plocypublic java.util.Vector getParams()
public void setParams(java.util.Vector params)
params
- vector of service params
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |