|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--pawn.messages.InitiateChatResponseMessage
|
+--pawn.messages.InitiateChatResponse
An implementation of the InitiateChatResponseMessage abstract class. This class is responsible for parsing and formatting the XML document used to define a response to a request to initiate a chat session.
| Constructor Summary | |
InitiateChatResponse()
Creates new response object. |
|
InitiateChatResponse(java.io.InputStream stream)
Creates a new Initiate Chat Response Message by parsing the given stream. |
|
| Method Summary | |
net.jxta.document.Document |
getDocument(net.jxta.document.MimeMediaType asMimeType)
Returns a Document object containing the response's document tree. |
void |
readDocument(net.jxta.document.TextElement document)
Parses the given document tree for the response. |
java.lang.String |
toString()
Returns an XML String representation of the response. |
| Methods inherited from class pawn.messages.InitiateChatResponseMessage |
getEmailAddress, getName, getPipeAdvertisement, setEmailAddress, setName, setPipeAdvertisement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public InitiateChatResponse()
public InitiateChatResponse(java.io.InputStream stream)
throws java.io.IOException,
java.lang.IllegalArgumentException
stream - the InputStream source of the response data.
java.io.IOException - if the response can't be parsed from the stream.
java.lang.IllegalArgumentException - thrown if the data does not contain
a Presence Response Message.| Method Detail |
public net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType asMimeType)
throws java.lang.IllegalArgumentException
getDocument in class InitiateChatResponseMessageasMimeType - the desired MIME type for the response rendering.
java.lang.IllegalArgumentException - thrown if the pipe advertisement
or the name is null.
public void readDocument(net.jxta.document.TextElement document)
throws java.lang.IllegalArgumentException
document - the object containing the response data.
java.lang.IllegalArgumentException - if the document is not a
response, as expected.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 | |||||||||