Class 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 Detail

      • TeeFilter

        public TeeFilter​(OutputStream out,
                         Source stylesheet)
                  throws com.sun.xml.wss.XWSSecurityException
        Copy and optionally format a message
        Parameters:
        out - destination OutputStream
        stylesheet - XSLT stylesheet for format or if null, then does not format
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • TeeFilter

        public TeeFilter​(OutputStream out,
                         boolean prettyPrint)
                  throws com.sun.xml.wss.XWSSecurityException
        Copy and optionally pretty print a message
        Parameters:
        out - destination OutputStream
        prettyPrint - true means to use built-in pretty print stylesheet
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • TeeFilter

        public TeeFilter​(OutputStream out)
                  throws com.sun.xml.wss.XWSSecurityException
        Saves a copy of message to Outputstream out
        Parameters:
        out -
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • TeeFilter

        public TeeFilter()
                  throws com.sun.xml.wss.XWSSecurityException
        A no-op
        Throws:
        com.sun.xml.wss.XWSSecurityException
    • Method Detail

      • process

        public void process​(javax.xml.soap.SOAPMessage secureMessage)
                     throws com.sun.xml.wss.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:
        com.sun.xml.wss.XWSSecurityException - if the operation did not succeed