|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.rendezvous.RendezVousPropagateMessage
public class RendezVousPropagateMessage
This class defines the wire format of the Propagation header for messages.
Field Summary | |
---|---|
static String |
DestSNameTag
|
static String |
DestSParamTag
|
static String |
MSG_NAME
|
static String |
MsgIdTag
|
static String |
Name
Description of the Field |
static String |
PathTag
|
static String |
TTLTag
|
Constructor Summary | |
---|---|
RendezVousPropagateMessage()
Constructor for the RendezVousPropagateMessage object |
|
RendezVousPropagateMessage(Element root)
Constructor for the RendezVousPropagateMessage object |
Method Summary | |
---|---|
void |
addVisited(URI location)
Adds a location to the Visited Set |
String |
getDestSName()
|
String |
getDestSParam()
|
Document |
getDocument(MimeMediaType encodeAs)
|
UUID |
getMsgId()
|
URI[] |
getPath()
Returns the path which this message has travelled. |
int |
getTTL()
Gets the TTL attribute of the RendezVousPropagateMessage object |
protected boolean |
handleElement(Element raw)
Process the document |
boolean |
isVisited(URI location)
Returns true if the specified location is in the visited Set. |
void |
setDestSName(String sName)
|
void |
setDestSParam(String sParam)
|
void |
setMsgId(UUID id)
|
void |
setTTL(int ttl)
Sets the TTL attribute of the RendezVousPropagateMessage object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MSG_NAME
public static final String MsgIdTag
public static final String DestSNameTag
public static final String DestSParamTag
public static final String TTLTag
public static final String PathTag
public static final String Name
Constructor Detail |
---|
public RendezVousPropagateMessage()
public RendezVousPropagateMessage(Element root)
root
- The root element of the message.Method Detail |
---|
protected boolean handleElement(Element raw)
raw
- the document
public UUID getMsgId()
public void setMsgId(UUID id)
public String getDestSName()
public void setDestSName(String sName)
public String getDestSParam()
public void setDestSParam(String sParam)
public int getTTL()
public void setTTL(int ttl)
ttl
- The new TTL valuepublic void addVisited(URI location)
location
- which was visited.public boolean isVisited(URI location)
location
- The location to check
public URI[] getPath()
public Document getDocument(MimeMediaType encodeAs)
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |