|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--pawn.messages.AppResponseMsg
An example query response, which will be wrapped by a Resolver response message to send the response to the query. The response contains the answer to the simple math question posed by the query.
| Constructor Summary | |
AppResponseMsg(java.io.InputStream stream)
Creates a response object by parsing the given input stream. |
|
AppResponseMsg(java.lang.String appID,
java.lang.String clientID,
int qt,
java.lang.String msg,
java.lang.String anAnswer)
Creates a response object using the given answer value. |
|
| Method Summary | |
java.lang.String |
getAnswer()
Returns the answer for the response. |
java.lang.String |
getAppId()
|
java.lang.String |
getClientId()
|
net.jxta.document.Document |
getDocument(net.jxta.document.MimeMediaType asMimeType)
Returns a Document representation of the response. |
java.lang.String |
getQueryMsg()
|
int |
getQueryType()
|
java.lang.String |
toString()
Returns an XML String representation of the response. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AppResponseMsg(java.lang.String appID,
java.lang.String clientID,
int qt,
java.lang.String msg,
java.lang.String anAnswer)
anAnswer - the answer for the response.
public AppResponseMsg(java.io.InputStream stream)
throws java.lang.Exception
stream - the InputStream source of the response data.
java.lang.Exception - if the message can't be parsed from the stream.| Method Detail |
public java.lang.String getAnswer()
public java.lang.String getAppId()
public java.lang.String getClientId()
public int getQueryType()
public java.lang.String getQueryMsg()
public net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType asMimeType)
throws java.lang.Exception
asMimeType - the desired MIME type representation for
the response.
java.lang.Exception - if the document can't be created.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||