|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.jxta.protocol.ResolverResponseMsg
This class defines the Generic ResolverServiceImpl message "Response" The default behavior of this abstract class is simply a place holder for the generic resolver response 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"?> <jxta:ResolverResponse> <Handlername> name </Handlername> <Credential> credential </Credential> <QueryID> id </QueryID> <Response> response </Response> </jxta:ResolverResponse>
Note: queryid is unique to the originating node only, it can be utilized to match queries to responses
ResolverQueryMsg| Field Summary | |
int |
queryid
|
| Constructor Summary | |
ResolverResponseMsg()
|
|
| Method Summary | |
static java.lang.String |
getAdvertisementType()
All messages have a type (in xml this is !doctype) which identifies the message |
StructuredDocument |
getCredential()
returns the credential |
abstract Document |
getDocument(MimeMediaType asMimeType)
Write advertisement into a document. |
java.lang.String |
getHandlerName()
returns the handlername |
int |
getQueryId()
returns queryid value |
java.lang.String |
getResponse()
returns the query |
void |
setCredential(StructuredDocument cred)
set the credential |
void |
setHandlerName(java.lang.String name)
set the handlername |
void |
setQueryId(int id)
set the query id |
void |
setResponse(java.lang.String response)
set the reponse |
| 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 ResolverResponseMsg()
| Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.String getHandlerName()
public StructuredDocument getCredential()
public int getQueryId()
public java.lang.String getResponse()
public void setHandlerName(java.lang.String name)
name - string handlernamepublic void setCredential(StructuredDocument cred)
cred - string credentialpublic void setQueryId(int id)
public void setResponse(java.lang.String response)
response - response Stringpublic abstract Document getDocument(MimeMediaType asMimeType)
asMimeType - mime-type representation requested for that document
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||