com.sun.xml.wss.impl.filter
Class TeeFilter

java.lang.Object
  extended by 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
TeeFilter()
          A no-op
TeeFilter(OutputStream out)
          Saves a copy of message to Outputstream out
TeeFilter(OutputStream out, boolean prettyPrint)
          Copy and optionally pretty print a message
TeeFilter(OutputStream out, Source stylesheet)
          Copy and optionally format a message
 
Method Summary
 void process(SOAPMessage secureMessage)
          Invokes the MessageFilter on the SOAPMessage sm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeeFilter

public TeeFilter(OutputStream out,
                 Source stylesheet)
          throws XWSSecurityException
Copy and optionally format a message

Parameters:
out - destination OutputStream
stylesheet - 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 OutputStream
prettyPrint - 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 XWSSecurityException
A no-op

Throws:
XWSSecurityException
Method Detail

process

public void process(SOAPMessage secureMessage)
             throws XWSSecurityException
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


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.