|
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.PipeAdvertisement
This class defines the PipeServiceImpl Advertisement
The default behavior of this abstract class is to simple be a place holder for the PipeServiceImpl Id and its name. No XML document is processed. That has to be done in the class that implements PipeAdvertisement. Pipes are named with their XML advertisement. The generation of the PipeServiceImpl Advertisements is let to the application. A Jxta PipeServiceImpl advertisement is an XML document (non validated) which contains at least the following structure (but can be extended).
<?xml version="1.0"?>
<jxta:PipeAdvertisement;>
<Id> UUID </Id>
<Type> type of the pipe </Type>
<Name> optional symbolic name than can be used by
any search engine </Name>
</jxta:PipeAdvertisement;>
Note that other tags can be provided by the application for its own profit. Those extra tags are not interpreted by the PipeService.
The UUID needs to be a unique String (unique in time and space).
| Field Summary | |
static java.lang.String |
IdTag
XML tag to store the PipeID |
static java.lang.String |
NameTag
XML tag to store the name of the Pipe |
static java.lang.String |
TypeTag
XML tag to store the Pipe Type |
| Constructor Summary | |
PipeAdvertisement()
|
|
| Method Summary | |
java.lang.Object |
clone()
Clone this PipeAdvertisement |
static java.lang.String |
getAdvertisementType()
get the pipe type |
ID |
getID()
get an ID for indexing purposes. |
java.lang.String |
getName()
get the symbolic name associated with the pipe |
ID |
getPipeID()
get the pipe id |
java.lang.String |
getType()
get the pipe type |
void |
setName(java.lang.String n)
set the symbolic name associated with the pipe |
void |
setPipeID(ID pipeId)
set the pipe Id |
void |
setType(java.lang.String type)
set the pipe type |
| 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 |
| Field Detail |
public static final java.lang.String IdTag
public static final java.lang.String TypeTag
public static final java.lang.String NameTag
| Constructor Detail |
public PipeAdvertisement()
| Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.Object clone()
clone in class Advertisementpublic ID getID()
getID in class Advertisementpublic ID getPipeID()
public void setPipeID(ID pipeId)
id - The PipeId to be set.public java.lang.String getType()
public void setType(java.lang.String type)
type - The type to be set.public java.lang.String getName()
public void setName(java.lang.String n)
n - the name this pipe adv should have.
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||