net.jxta.impl.protocol
Class DiscoveryQuery
java.lang.Object
|
+--net.jxta.protocol.DiscoveryQueryMsg
|
+--net.jxta.impl.protocol.DiscoveryQuery
- public class DiscoveryQuery
- extends net.jxta.protocol.DiscoveryQueryMsg
DiscoveryQuery
- Since:
- 1.0
Fields inherited from class net.jxta.protocol.DiscoveryQueryMsg |
type |
Constructor Summary |
DiscoveryQuery(java.io.InputStream stream)
Construct a doc from InputStream |
DiscoveryQuery(int type,
java.lang.String peeradv,
java.lang.String attr,
java.lang.String value,
int threshold)
Construct a doc from strings |
DiscoveryQuery(net.jxta.document.TextElement doc)
Construct from a StructuredDocument |
Method Summary |
net.jxta.document.Document |
getDocument(net.jxta.document.MimeMediaType asMimeType)
return a Document represetation of this object |
void |
readIt(net.jxta.document.TextElement doc)
|
java.lang.String |
toString()
return the string representaion of this doc |
Methods inherited from class net.jxta.protocol.DiscoveryQueryMsg |
getAdvertisementType,
getAttr,
getDiscoveryType,
getPeerAdv,
getThreshold,
getValue,
setAttr,
setDiscoveryType,
setPeerAdv,
setThreshold,
setValue |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DiscoveryQuery
public DiscoveryQuery(java.io.InputStream stream)
throws java.lang.Exception
- Construct a doc from InputStream
DiscoveryQuery
public DiscoveryQuery(net.jxta.document.TextElement doc)
- Construct from a StructuredDocument
DiscoveryQuery
public DiscoveryQuery(int type,
java.lang.String peeradv,
java.lang.String attr,
java.lang.String value,
int threshold)
- Construct a doc from strings
readIt
public void readIt(net.jxta.document.TextElement doc)
getDocument
public net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType asMimeType)
throws java.lang.Exception
- return a Document represetation of this object
- Overrides:
- getDocument in class net.jxta.protocol.DiscoveryQueryMsg
toString
public java.lang.String toString()
- return the string representaion of this doc
- Overrides:
- toString in class java.lang.Object