|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.protocol.ResolverQueryMsg
public abstract class ResolverQueryMsg
Generic Resolver Service message "Query".
ResolverService
,
ResolverResponseMsg
,
JXTA Protocols Specification : Peer Resolver ProtocolField Summary | |
---|---|
protected int |
hopcount
Number of times a message has been forwarded, not propagated or walked |
protected int |
queryid
Query ID of this query. |
Constructor Summary | |
---|---|
ResolverQueryMsg()
|
Method Summary | |
---|---|
static String |
getAdvertisementType()
All messages have a type (in xml this is ! |
StructuredDocument |
getCredential()
returns the credential |
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 |
getHandlerName()
returns the handlername |
int |
getHopCount()
returns the hop count |
String |
getQuery()
returns the query |
int |
getQueryId()
returns queryid value |
String |
getSrc()
Deprecated. Use getSrcPeer() instead. |
ID |
getSrcPeer()
Returns the source of the query |
RouteAdvertisement |
getSrcPeerRoute()
Returns the source route of the query |
void |
incrementHopCount()
increment hop count |
abstract ResolverResponseMsg |
makeResponse()
Create a ResolverResponse from a ResolverQuery message. |
void |
setCredential(StructuredDocument cred)
set the credential |
void |
setHandlerName(String name)
set the handlername |
void |
setHopCount(int newCount)
Set hop count |
void |
setQuery(String Query)
set the Query string |
void |
setQueryId(int id)
set the query id. |
void |
setSrc(String src)
Deprecated. Use setSrcPeer(ID) instead. |
void |
setSrcPeer(ID srcPeer)
Set the source of the query |
void |
setSrcPeerRoute(RouteAdvertisement route)
set the source route of the query |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int hopcount
protected int queryid
Constructor Detail |
---|
public ResolverQueryMsg()
Method Detail |
---|
public StructuredDocument getCredential()
public abstract Document getDocument(MimeMediaType asMimeType)
asMimeType
- mime-type requested representation for the returned
document
public String getHandlerName()
public int getHopCount()
public void incrementHopCount()
public void setHopCount(int newCount)
newCount
- hop countpublic String getQuery()
public int getQueryId()
@Deprecated public String getSrc()
getSrcPeer()
instead.
public ID getSrcPeer()
public RouteAdvertisement getSrcPeerRoute()
public void setCredential(StructuredDocument cred)
cred
- string representing credentialpublic void setHandlerName(String name)
name
- handler namepublic void setQuery(String Query)
Query
- string representing the querypublic void setQueryId(int id)
id
- int idpublic void setSrcPeerRoute(RouteAdvertisement route)
route
- route advertisement of the source peer@Deprecated public void setSrc(String src)
setSrcPeer(ID)
instead.
src
- is a containing the peerid of the sourcepublic void setSrcPeer(ID srcPeer)
srcPeer
- the peerid of the sourcepublic static String getAdvertisementType()
public abstract ResolverResponseMsg makeResponse()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |