org.apache.cxf.binding.soap.saaj
Class SAAJInInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<SoapMessage>
org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor
- All Implemented Interfaces:
- SoapInterceptor, Interceptor<SoapMessage>, PhaseInterceptor<SoapMessage>
public class SAAJInInterceptor
- extends AbstractSoapInterceptor
Builds a SAAJ tree from the Document fragment inside the message which contains
the SOAP headers and from the XMLStreamReader.
Nested Class Summary |
static class |
SAAJInInterceptor.SAAJPreInInterceptor
This class sets up the Document in the Message so that the ReadHeadersInterceptor
can read directly into the SAAJ document instead of creating a new DOM
that we would need to copy into the SAAJ later. |
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor |
addAfter, addAfter, addBefore, addBefore, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final SAAJInInterceptor INSTANCE
SAAJInInterceptor
public SAAJInInterceptor()
SAAJInInterceptor
public SAAJInInterceptor(String phase)
getAdditionalInterceptors
public Collection<PhaseInterceptor<? extends Message>> getAdditionalInterceptors()
- Description copied from interface:
PhaseInterceptor
- Returns a collection of Interceptors that should be added to the chain
whenever this interceptor is added. May return null.
- Specified by:
getAdditionalInterceptors
in interface PhaseInterceptor<SoapMessage>
- Overrides:
getAdditionalInterceptors
in class AbstractPhaseInterceptor<SoapMessage>
- Returns:
- the collection of interceptors
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
replaceHeaders
public static void replaceHeaders(SOAPMessage soapMessage,
SoapMessage message)
throws SOAPException
- Throws:
SOAPException
Apache CXF