|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.jxta.protocol.DiscoveryResponseMsg
This class defines the DiscoveryService message "Response" The default behavior of this abstract class is simply a place holder for the generic resolver query fields. This message is the response to the DiscoveryQueryMsg.
This message is part of the Peer DiscoveryService protocol
<?xml version="1.0"?>
<jxta:DiscoveryResponse>
<Count>int<Count>
<Type>int</Type>
<PeerAdv> adv </PeerAdv>
<Attr> attribute </Attr>
<Value> value </Aalue>
<Response Expiration="expiration" >adv</Response>
......
<Response Expiration="expiration" >adv</Response>
</jxta:DiscoveryResponse>
DiscoveryQueryMsg| Field Summary | |
int |
count
|
int |
type
|
| Constructor Summary | |
DiscoveryResponseMsg()
|
|
| Method Summary | |
static java.lang.String |
getAdvertisementType()
All messages have a type (in xml this is !doctype) which identifies the message |
int |
getDiscoveryType()
Get the response type |
abstract Document |
getDocument(MimeMediaType asMimeType)
Write advertisement into a document. |
java.util.Enumeration |
getExpirations()
|
java.lang.String |
getPeerAdv()
returns the responding's peer advertisement |
java.lang.String |
getQueryAttr()
returns the attributes used by the query |
java.lang.String |
getQueryValue()
returns the value used by the query |
int |
getResponseCount()
Get the reponse count |
java.util.Enumeration |
getResponses()
returns the response(s) |
void |
setDiscoveryType(int type)
set the Response type whether it's peer, or group dsicovery |
void |
setExpirations(java.util.Vector expirations)
|
void |
setPeerAdv(java.lang.String peer)
set the response peer advertisement |
void |
setQueryAttr(java.lang.String attr)
set the attribute used by the query |
void |
setQueryValue(java.lang.String value)
set the value used by the query |
void |
setResponseCount(int count)
set the response count in this message |
void |
setResponses(java.util.Vector responses)
set the responses to the query |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int type
public int count
| Constructor Detail |
public DiscoveryResponseMsg()
| Method Detail |
public static java.lang.String getAdvertisementType()
public int getResponseCount()
public int getDiscoveryType()
public java.lang.String getPeerAdv()
public java.lang.String getQueryAttr()
public java.lang.String getQueryValue()
public java.util.Enumeration getResponses()
public java.util.Enumeration getExpirations()
public void setResponseCount(int count)
count - number of response in this messagepublic void setDiscoveryType(int type)
type - int representing the typepublic void setPeerAdv(java.lang.String peer)
peer - public void setQueryAttr(java.lang.String attr)
attr - public void setQueryValue(java.lang.String value)
value - public void setResponses(java.util.Vector responses)
responses - public void setExpirations(java.util.Vector expirations)
public abstract Document getDocument(MimeMediaType asMimeType)
asMimeType - mime-typ requested
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||