|
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.ModuleSpecAdvertisement
A ModuleSpecAdvertisement describes a module specification.
Its main purpose is to provide references to the documentation
needed in order to create conforming implementations of that
specification. A secondary use is, optionaly, to make running instances
usable remotely, by publishing any or all of the following:
Note that the Standard PeerGroup implementation of the java reference implementation does not support replacing a group service with a pipe to a remote instance. However, nothing prevents a particular implementation of a group from using a proxy module in place of the fully version; provided that the API (and therefore the ClassIDs) of the proxy and local versions are identical.
Note also that in the case of the local+proxy style, it is up to the implementation of both sides to figure-out which pipe to listen to or connect to. The safest method is probably for the full version to seek its own ModuleSpecAdvertisement, and for the proxy version to accept the full version's ModuleSpecAdvertisement as a paramter. Alternatively if the proxy version is completely dedicated to the specification that it proxies, both sides may have the PipeID and type hardcoded.
ModuleSpecID,
PipeAdvertisement,
ModuleImplAdvertisement,
Advertisement| Constructor Summary | |
ModuleSpecAdvertisement()
|
|
| Method Summary | |
java.lang.Object |
clone()
Clone this ModuleSpecAdvertisement |
static java.lang.String |
getAdvertisementType()
returns the advertisement type |
ModuleSpecID |
getAuthSpecID()
returns the specID of an authenticator module. |
java.lang.String |
getCreator()
Returns the creator of the module spec, in case someone cares. |
java.lang.String |
getDescription()
returns the keywords/description associated with this class |
ID |
getID()
returns a unique id for that adv for the purpose of indexation. |
ModuleSpecID |
getModuleSpecID()
returns the id of the spec |
java.lang.String |
getName()
returns the name of the module spec |
StructuredDocument |
getParam()
returns the param element. |
PipeAdvertisement |
getPipeAdvertisement()
returns the embedded pipe advertisement if any. |
ModuleSpecID |
getProxySpecID()
returns the specID of a proxy module. |
java.lang.String |
getSpecURI()
returns the uri. |
java.lang.String |
getVersion()
returns the specification version number |
void |
setAuthSpecID(ModuleSpecID authSpecID)
sets an authenticator module specID |
void |
setCreator(java.lang.String creator)
Sets the creator of this module spec. |
void |
setDescription(java.lang.String description)
sets the description associated with this class |
void |
setModuleSpecID(ModuleSpecID id)
sets the id of the class |
void |
setName(java.lang.String name)
sets the name of the module spec |
void |
setParam(StructuredDocument param)
sets the param element. |
void |
setPipeAdvertisement(PipeAdvertisement pipeAdv)
sets an embedded pipe advertisement. |
void |
setProxySpecID(ModuleSpecID proxySpecID)
sets a proxy module specID |
void |
setSpecURI(java.lang.String uri)
sets the uri |
void |
setVersion(java.lang.String version)
sets the version of the module |
| Methods inherited from class net.jxta.document.Advertisement |
getDocument |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ModuleSpecAdvertisement()
| Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.Object clone()
clone in class Advertisementpublic ModuleSpecID getModuleSpecID()
public void setModuleSpecID(ModuleSpecID id)
id - The id of the specpublic ID getID()
getID in class Advertisementpublic java.lang.String getName()
public void setName(java.lang.String name)
name - name of the module spec to be setpublic java.lang.String getCreator()
public void setCreator(java.lang.String creator)
creator - name of the creator of the modulepublic java.lang.String getSpecURI()
public void setSpecURI(java.lang.String uri)
uri - string uripublic java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - version numberpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - public StructuredDocument getParam()
public void setParam(StructuredDocument param)
param - Element of an unspecified content.public PipeAdvertisement getPipeAdvertisement()
public void setPipeAdvertisement(PipeAdvertisement pipeAdv)
pipeAdv - the Pipe Advertisement. null is authorized.public ModuleSpecID getProxySpecID()
public void setProxySpecID(ModuleSpecID proxySpecID)
proxySpecID - The spec idpublic ModuleSpecID getAuthSpecID()
public void setAuthSpecID(ModuleSpecID authSpecID)
authSpecID - The spec id
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||