Package com.sun.xml.wss.impl.filter
Class TeeFilter
java.lang.Object
com.sun.xml.wss.impl.filter.TeeFilter
Copies the SOAP message into an OutputStream using an optional stylesheet
to format the message. The original message is not modified. This is
analogous to the "tee" unix command.
- Author:
- Edwin Goei
-
Constructor Summary
ConstructorsConstructorDescriptionA no-opTeeFilter(OutputStream out) Saves a copy of message to Outputstream outTeeFilter(OutputStream out, boolean prettyPrint) Copy and optionally pretty print a messageTeeFilter(OutputStream out, Source stylesheet) Copy and optionally format a message -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(javax.xml.soap.SOAPMessage secureMessage) Invokes the MessageFilter on the SOAPMessage sm.
-
Constructor Details
-
TeeFilter
Copy and optionally format a message- Parameters:
out- destination OutputStreamstylesheet- XSLT stylesheet for format or if null, then does not format- Throws:
XWSSecurityException
-
TeeFilter
Copy and optionally pretty print a message- Parameters:
out- destination OutputStreamprettyPrint- true means to use built-in pretty print stylesheet- Throws:
XWSSecurityException
-
TeeFilter
Saves a copy of message to Outputstream out- Parameters:
out-- Throws:
XWSSecurityException
-
TeeFilter
A no-op- Throws:
XWSSecurityException
-
-
Method Details
-
process
Invokes the MessageFilter on the SOAPMessage sm. A XWSSecurityException is thrown if the operation did not succeed.- Parameters:
secureMessage- SOAPMessage to perform the operation on- Throws:
XWSSecurityException- if the operation did not succeed
-