Class SAAJOutInterceptor

java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<SoapMessage>
org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor
All Implemented Interfaces:
SoapInterceptor, org.apache.cxf.interceptor.Interceptor<SoapMessage>, org.apache.cxf.phase.PhaseInterceptor<SoapMessage>

public class SAAJOutInterceptor extends AbstractSoapInterceptor
Sets up the outgoing chain to build a SAAJ tree instead of writing directly to the output stream. First it will replace the XMLStreamWriter with one which writes to a SOAPMessage. Then it will add an interceptor at the end of the chain in the SEND phase which writes the resulting SOAPMessage.
  • Field Details

    • ORIGINAL_XML_WRITER

      public static final String ORIGINAL_XML_WRITER
  • Constructor Details

    • SAAJOutInterceptor

      public SAAJOutInterceptor()
  • Method Details

    • getFactory

      public jakarta.xml.soap.MessageFactory getFactory(SoapMessage message) throws jakarta.xml.soap.SOAPException
      Throws:
      jakarta.xml.soap.SOAPException
    • handleMessage

      public void handleMessage(SoapMessage message) throws org.apache.cxf.interceptor.Fault
      Throws:
      org.apache.cxf.interceptor.Fault
    • handleFault

      public void handleFault(SoapMessage message)
      Specified by:
      handleFault in interface org.apache.cxf.interceptor.Interceptor<SoapMessage>
      Overrides:
      handleFault in class org.apache.cxf.phase.AbstractPhaseInterceptor<SoapMessage>