Package 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,org.apache.cxf.interceptor.Interceptor<SoapMessage>,org.apache.cxf.phase.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
Nested Classes Modifier and Type Class Description static classSAAJInInterceptor.SAAJPreInInterceptorThis 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.
-
Field Summary
Fields Modifier and Type Field Description static SAAJInInterceptorINSTANCE
-
Constructor Summary
Constructors Constructor Description SAAJInInterceptor()SAAJInInterceptor(String phase)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.apache.cxf.phase.PhaseInterceptor<? extends org.apache.cxf.message.Message>>getAdditionalInterceptors()voidhandleMessage(SoapMessage message)static voidreplaceHeaders(javax.xml.soap.SOAPMessage soapMessage, SoapMessage message)-
Methods inherited from class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
getFaultCodePrefix, getRoles, getUnderstoodHeaders, prepareStackTrace
-
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
-
-
-
Field Detail
-
INSTANCE
public static final SAAJInInterceptor INSTANCE
-
-
Constructor Detail
-
SAAJInInterceptor
public SAAJInInterceptor()
-
SAAJInInterceptor
public SAAJInInterceptor(String phase)
-
-
Method Detail
-
getAdditionalInterceptors
public Collection<org.apache.cxf.phase.PhaseInterceptor<? extends org.apache.cxf.message.Message>> getAdditionalInterceptors()
- Specified by:
getAdditionalInterceptorsin interfaceorg.apache.cxf.phase.PhaseInterceptor<SoapMessage>- Overrides:
getAdditionalInterceptorsin classorg.apache.cxf.phase.AbstractPhaseInterceptor<SoapMessage>
-
handleMessage
public void handleMessage(SoapMessage message) throws org.apache.cxf.interceptor.Fault
- Throws:
org.apache.cxf.interceptor.Fault
-
replaceHeaders
public static void replaceHeaders(javax.xml.soap.SOAPMessage soapMessage, SoapMessage message) throws javax.xml.soap.SOAPException- Throws:
javax.xml.soap.SOAPException
-
-