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,Interceptor<SoapMessage>,PhaseInterceptor<SoapMessage>
Builds a SAAJ tree from the Document fragment inside the message which contains
the SOAP headers and from the XMLStreamReader.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<PhaseInterceptor<? extends Message>>Returns a collection of Interceptors that should be added to the chain whenever this interceptor is added.voidhandleMessage(SoapMessage message) Intercepts a message.static voidreplaceHeaders(jakarta.xml.soap.SOAPMessage soapMessage, SoapMessage message) Methods inherited from class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
getFaultCodePrefix, getRoles, getUnderstoodHeaders, prepareStackTraceMethods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBeforeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.interceptor.Interceptor
handleFault
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SAAJInInterceptor
public SAAJInInterceptor() -
SAAJInInterceptor
-
-
Method Details
-
getAdditionalInterceptors
Description copied from interface:PhaseInterceptorReturns a collection of Interceptors that should be added to the chain whenever this interceptor is added. May return null.- Specified by:
getAdditionalInterceptorsin interfacePhaseInterceptor<SoapMessage>- Overrides:
getAdditionalInterceptorsin classAbstractPhaseInterceptor<SoapMessage>- Returns:
- the collection of interceptors
-
handleMessage
Description copied from interface:InterceptorIntercepts 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(jakarta.xml.soap.SOAPMessage soapMessage, SoapMessage message) throws jakarta.xml.soap.SOAPException - Throws:
jakarta.xml.soap.SOAPException
-