|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.jca.PMQMessage
public class PMQMessage
This object is a message which is received and dispatched from
PMQMessageServer
and
PMQMessageStreamDispatcher
.
Constructor Summary | |
---|---|
protected |
PMQMessage(java.io.InputStream input,
java.io.OutputStream output)
Creates message object. |
Method Summary | |
---|---|
org.w3c.dom.Document |
getRequestDocument()
|
java.io.InputStream |
getRequestStream()
|
java.lang.String |
getRequestString()
|
java.io.OutputStream |
getResponseStream()
|
void |
setResponse(org.w3c.dom.Document output,
java.lang.String encoding)
Set and reply the response XML document. |
void |
setResponse(java.lang.String output,
java.lang.String encoding)
Set and reply the string response document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PMQMessage(java.io.InputStream input, java.io.OutputStream output)
input
- streamoutput
- response streamMethod Detail |
---|
public java.io.InputStream getRequestStream()
public java.io.OutputStream getResponseStream()
getRequestStream()
.public java.lang.String getRequestString() throws java.io.IOException
java.io.IOException
- on delivery problemspublic org.w3c.dom.Document getRequestDocument() throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.IOException
- on delivery problems
javax.xml.parsers.ParserConfigurationException
- no DOM implementation is available
org.xml.sax.SAXException
- message doesn't contain XMLpublic void setResponse(org.w3c.dom.Document output, java.lang.String encoding) throws java.io.IOException
output
- document
java.io.IOException
public void setResponse(java.lang.String output, java.lang.String encoding) throws java.io.IOException
output
- stringencoding
- set the character set for encoded output stream.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |