|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.protocol.LimitedRangeRdvMsg
public class LimitedRangeRdvMsg
The LimitedRangeRdv walk header message.
<xs:simpleType name="WalkDirection">
<xs:restriction base="xs:unsignedInt">
<!-- UP -->
<xs:enumeration value="1" />
<!-- DOWN -->
<xs:enumeration value="2" />
<!-- BOTH -->
<xs:enumeration value="3" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="LimitedRangeRdvMessage">
<xs:sequence>
<xs:element name="TTL" type="xs:unsignedInt" />
<xs:element name="Dir" type="jxta:WalkDirection" />
<xs:element name="SrcPeerID" type="jxta:JXTAID" />
<xs:element name="SrcSvcName" type="xs:string" />
<xs:element name="SrcSvcParams" minOccurs="0" type="xs:string" />
</xs:sequence>
</xs:complexType>
LimitedRangeWalk
,
LimitedRangeWalker
,
LimitedRangeGreeter
Nested Class Summary | |
---|---|
static class |
LimitedRangeRdvMsg.WalkDirection
Enumeration of possible walk directions. |
Constructor Summary | |
---|---|
LimitedRangeRdvMsg()
Constructor |
|
LimitedRangeRdvMsg(Element root)
Construct from a StructuredDocument |
Method Summary | |
---|---|
LimitedRangeRdvMsg |
clone()
|
LimitedRangeRdvMsg.WalkDirection |
getDirection()
Get the direction the message will take |
Document |
getDocument(MimeMediaType mediaType)
|
static String |
getMessageType()
Our DOCTYPE |
ID |
getSrcPeerID()
Get the Source PeerID (walk originiator) |
String |
getSrcSvcName()
Get the Source Service Name (listening for the response) |
String |
getSrcSvcParams()
Get the Source Service Param (listening for the response) |
int |
getTTL()
Get the TTL |
protected boolean |
handleElement(XMLElement elem)
Process an individual element from the document during parse. |
void |
setDirection(LimitedRangeRdvMsg.WalkDirection dir)
Set the direction the message will take |
void |
setSrcPeerID(ID srcPeerID)
Set the Source PeerID (walk originiator) |
void |
setSrcSvcName(String srcSvcName)
Set the Source Service Name (listening for the response) |
void |
setSrcSvcParams(String srcSvcParams)
Set the Source Service Params (listening for the response) |
void |
setTTL(int ttl)
set the TTL |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LimitedRangeRdvMsg()
public LimitedRangeRdvMsg(Element root)
root
- the elementMethod Detail |
---|
public LimitedRangeRdvMsg clone()
clone
in class Object
public int getTTL()
public void setTTL(int ttl)
ttl
- TTLpublic LimitedRangeRdvMsg.WalkDirection getDirection()
public void setDirection(LimitedRangeRdvMsg.WalkDirection dir)
dir
- directionpublic String getSrcSvcName()
public void setSrcSvcName(String srcSvcName)
srcSvcName
- Source Service Namepublic String getSrcSvcParams()
public void setSrcSvcParams(String srcSvcParams)
srcSvcParams
- Source Service Paramspublic ID getSrcPeerID()
public void setSrcPeerID(ID srcPeerID)
srcPeerID
- Source PeerIDpublic static String getMessageType()
protected boolean handleElement(XMLElement elem)
protected boolean handleElement( Element elem ) {
if ( super.handleElement() ) {
// it's been handled.
return true;
}
... handle elements here ...
// we don't know how to handle the element
return false;
}
elem
- the element to be processed.
public Document getDocument(MimeMediaType mediaType)
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |