|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tsik.messaging.AbstractTransport
org.apache.tsik.messaging.XmlTransportDoc
Provide a means of logging the raw XML request documents which would have
been transmitted to a web service. Instantiate this class with an OutputStream
to which the request message XML should be written.
Field Summary |
---|
Fields inherited from class org.apache.tsik.messaging.AbstractTransport |
---|
httpsTrustAdapter, responseValidity |
Constructor Summary | |
---|---|
XmlTransportDoc(OutputStream logOutput)
Creates a transport for logging request messages. |
Method Summary | |
---|---|
protected void |
logRequest(Document request,
PrintStream log)
Writes the request message to the given output stream. |
XmlResponse |
sendRequest(XmlRequest req)
Overrides the normal transport mechanism to log the request message and return null. |
void |
setStream(OutputStream logOutput)
Deprecated. please use AbstractTransport.setLogOutput(java.io.PrintStream) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlTransportDoc(OutputStream logOutput)
logOutput
- is an output stream to which the request will be
written.Method Detail |
public void setStream(OutputStream logOutput)
AbstractTransport.setLogOutput(java.io.PrintStream)
.
logOutput
- is an output stream to which the request will be
written.protected void logRequest(Document request, PrintStream log)
AbstractTransport
AbstractTransport.sendRequest(org.apache.tsik.messaging.XmlRequest)
calls this method if AbstractTransport.getLogOutput()
returns
a non-null output stream.
The default implementation of this method writes a global counter value, a line of dashes, and the pretty-printed XML of the message.
logRequest
in class AbstractTransport
request
- is the message to be logged, and includes the message
envelope.log
- is stream to which to write the message. AbstractTransport.sendRequest(org.apache.tsik.messaging.XmlRequest)
passes the value obtained from AbstractTransport.getLogOutput()
public XmlResponse sendRequest(XmlRequest req) throws InsecureTransportException, IOException, XmlMessageException
sendRequest
in interface XmlTransport
sendRequest
in class AbstractTransport
req
- is the web service request object.
InsecureTransportException
- TODO.
IOException
- TODO.
XmlMessageException
- TODO.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |