|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.protocol.ResolverQueryMsg
This class defines the Generic ResolverService message "Query" The default behavior of this abstract class is simply a place holder for the generic resolver query fields. note that no XML processing is performed by this class. The processing of the message is left to the class extending this class.
This message is part of the PeerGroup ResolverService Protocol
<?xml version="1.0"?> <ResolverQuery> <handlername> name </handlername> <credentialServiecUri> uri </credentialServiecUri> <credentialToken> token </credentialToken> <queryid> id </queryid> <query> query </query> </ResolverQuery>Note: queryid is unique to the originating node only, it can be utilized to match queries to responses Tag $Name: $
ResolverResponseMsg
Field Summary | |
int |
queryid
|
Constructor Summary | |
ResolverQueryMsg()
|
Method Summary | |
static java.lang.String |
getAdvertisementType()
All messages have a type (in xml this is !doctype) which identifies the message |
java.lang.String |
getCredentialServieUri()
returns the credentialServiecUri name |
java.lang.String |
getCredentialToken()
returns the credentialToken |
abstract Document |
getDocument(MimeMediaType asMimeType)
Write advertisement into a document. |
java.lang.String |
getHandlerName()
returns the handlername |
java.lang.String |
getQuery()
returns the query |
int |
getQueryId()
returns queryid value |
java.lang.String |
getSrc()
Returns the source of the query |
void |
setCredentialServiceUri(java.lang.String uri)
set the credentialServiecUri |
void |
setCredentialToken(java.lang.String token)
set the value of the credential Token |
void |
setHandlerName(java.lang.String name)
set the handlername |
void |
setQuery(java.lang.String Query)
set the Query string |
void |
setQueryId(int id)
set the query id. |
void |
setSrc(java.lang.String p)
Set the source of the query |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int queryid
Constructor Detail |
public ResolverQueryMsg()
Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.String getHandlerName()
public java.lang.String getCredentialServieUri()
public java.lang.String getCredentialToken()
public int getQueryId()
public java.lang.String getQuery()
public void setHandlerName(java.lang.String name)
name
- handler namepublic void setCredentialServiceUri(java.lang.String uri)
uri
- string representing credentialServiecUripublic void setCredentialToken(java.lang.String token)
token
- string representing the credential Tokenpublic void setQueryId(int id)
id
- int idpublic void setQuery(java.lang.String Query)
Query
- string representing the querypublic void setSrc(java.lang.String p)
src
- is a String containing the peerid of the sourcepublic java.lang.String getSrc()
public abstract Document getDocument(MimeMediaType asMimeType) throws java.lang.Exception
asMimeType
- mime-type requested representation for the returned documentEception
- error creating the document representing the message.
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |