|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.protocol.DiscoveryQueryMsg
public abstract class DiscoveryQueryMsg
This class defines the Discovery Service message "Query". The default behavior of this abstract class is simply a place holder for the generic resolver query fields.
DiscoveryService
,
DiscoveryResponseMsg
Constructor Summary | |
---|---|
DiscoveryQueryMsg()
|
Method Summary | |
---|---|
static String |
getAdvertisementType()
All messages have a type (in xml this is !doctype) which identifies the message |
String |
getAttr()
returns the Attr value |
int |
getDiscoveryType()
Get the response type |
abstract Document |
getDocument(MimeMediaType asMimeType)
Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
String |
getPeerAdv()
Deprecated. Peer Advertisement is available directly via getPeerAdvertisement() . |
PeerAdvertisement |
getPeerAdvertisement()
returns the querying peer's advertisement |
int |
getThreshold()
Get the Threshold for number of responses |
String |
getValue()
returns the value of Attr |
void |
setAttr(String attr)
set the attr |
void |
setDiscoveryType(int type)
set the Response type whether it's peer, or group discovery |
void |
setPeerAdv(String newAdv)
Deprecated. access peer advertisement directly |
void |
setPeerAdvertisement(PeerAdvertisement newAdv)
returns the responding peer's advertisement |
void |
setThreshold(int threshold)
set the threshold |
void |
setValue(String value)
set the query |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscoveryQueryMsg()
Method Detail |
---|
public String getAttr()
public int getDiscoveryType()
public abstract Document getDocument(MimeMediaType asMimeType)
asMimeType
- mime-type format requested
public String getPeerAdv()
getPeerAdvertisement()
.
public void setPeerAdv(String newAdv)
public PeerAdvertisement getPeerAdvertisement()
public void setPeerAdvertisement(PeerAdvertisement newAdv)
newAdv
- peer advertisement of querier.public int getThreshold()
public String getValue()
public void setAttr(String attr)
attr
- attribute of the querypublic void setDiscoveryType(int type)
type
- type of discoverypublic void setThreshold(int threshold)
threshold
- value to be setpublic void setValue(String value)
value
- value of the attribute to querypublic static String getAdvertisementType()
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |