org.apache.cxf.binding.soap.saaj
Class SAAJOutInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<SoapMessage>
      extended by org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
          extended by org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor
All Implemented Interfaces:
SoapInterceptor, Interceptor<SoapMessage>, 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.


Nested Class Summary
 class SAAJOutInterceptor.SAAJOutEndingInterceptor
           
 
Constructor Summary
SAAJOutInterceptor()
           
 
Method Summary
 void handleMessage(SoapMessage message)
          Intercepts a message.
 
Methods inherited from class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
getFaultCodePrefix, getRoles, getUnderstoodHeaders, isRequestor
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAfter, getBefore, getId, getPhase, handleFault, isGET, setAfter, setBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.interceptor.Interceptor
handleFault
 

Constructor Detail

SAAJOutInterceptor

public SAAJOutInterceptor()
Method Detail

handleMessage

public void handleMessage(SoapMessage message)
                   throws Fault
Description copied from interface: Interceptor
Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.

Throws:
Fault


Apache CXF