|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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.
DiscoveryService
,
DiscoveryQueryMsg
Field Summary | |
protected List |
advertisements
values are Advertisement
|
protected String |
attr
attribute used by the query |
protected List |
expirations
Expirations |
protected PeerAdvertisement |
peerAdvertisement
Responding peer's advertisement |
protected List |
responses
values are String or InputStream
|
protected int |
type
Advertisement type used by the query FIXME 20040514 bondolo@jxta.org not a great default... |
protected String |
value
Value used by the query |
Constructor Summary | |
DiscoveryResponseMsg()
|
Method Summary | |
abstract Enumeration |
getAdvertisements()
returns the response advertisement objects |
static String |
getAdvertisementType()
All messages have a type(in xml this is ! |
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. |
Enumeration |
getExpirations()
Gets the expirations attribute of the DiscoveryResponseMsg object |
String |
getPeerAdv()
Deprecated. access peer advertisement directly |
PeerAdvertisement |
getPeerAdvertisement()
returns the responding peer's advertisement |
String |
getQueryAttr()
returns the attributes used by the query |
String |
getQueryValue()
returns the value used by the query |
int |
getResponseCount()
Get the response count |
Enumeration |
getResponses()
returns the response(s) |
void |
setDiscoveryType(int type)
set the Response type whether it's peer, or group discovery |
void |
setExpirations(Vector expirations)
set the expirations for this query |
void |
setPeerAdv(String newAdv)
Deprecated. access peer advertisement directly |
void |
setPeerAdvertisement(PeerAdvertisement newAdv)
Sets the responding peer's advertisement |
void |
setQueryAttr(String attr)
set the attribute used by the query |
void |
setQueryValue(String value)
set the value used by the query |
void |
setResponseCount(int count)
Deprecated. Response count is now derived from responses. This call is ignored. |
void |
setResponses(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 |
protected String attr
protected PeerAdvertisement peerAdvertisement
protected List responses
String
or InputStream
protected List advertisements
Advertisement
protected List expirations
protected int type
protected String value
Constructor Detail |
public DiscoveryResponseMsg()
Method Detail |
public static String getAdvertisementType()
public abstract Enumeration getAdvertisements()
public int getDiscoveryType()
public void setDiscoveryType(int type)
type
- int representing the typepublic abstract Document getDocument(MimeMediaType asMimeType)
asMimeType
- mime-type requested
public String getPeerAdv()
public void setPeerAdv(String newAdv)
public PeerAdvertisement getPeerAdvertisement()
public void setPeerAdvertisement(PeerAdvertisement newAdv)
newAdv
- the responding Peer's advertisementpublic String getQueryAttr()
public String getQueryValue()
public int getResponseCount()
public void setResponseCount(int count)
count
- number of response in this messagepublic Enumeration getExpirations()
public void setExpirations(Vector expirations)
expirations
- the expirations for this querypublic Enumeration getResponses()
public void setResponses(Vector responses)
responses
- public void setQueryAttr(String attr)
attr
- public void setQueryValue(String value)
value
-
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |