- java.lang.Object
-
- com.sun.xml.wss.impl.filter.TeeFilter
-
public class TeeFilter extends Object
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
Constructors Constructor Description TeeFilter()A 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(jakarta.xml.soap.SOAPMessage secureMessage)Invokes the MessageFilter on the SOAPMessage sm.
-
-
-
Constructor Detail
-
TeeFilter
public TeeFilter(OutputStream out, Source stylesheet) throws XWSSecurityException
Copy and optionally format a message- Parameters:
out- destination OutputStreamstylesheet- XSLT stylesheet for format or if null, then does not format- Throws:
XWSSecurityException
-
TeeFilter
public TeeFilter(OutputStream out, boolean prettyPrint) throws XWSSecurityException
Copy and optionally pretty print a message- Parameters:
out- destination OutputStreamprettyPrint- true means to use built-in pretty print stylesheet- Throws:
XWSSecurityException
-
TeeFilter
public TeeFilter(OutputStream out) throws XWSSecurityException
Saves a copy of message to Outputstream out- Parameters:
out-- Throws:
XWSSecurityException
-
TeeFilter
public TeeFilter() throws XWSSecurityExceptionA no-op- Throws:
XWSSecurityException
-
-
Method Detail
-
process
public void process(jakarta.xml.soap.SOAPMessage secureMessage) throws XWSSecurityExceptionInvokes 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
-
-