Class FixContentTypeOutInterceptor
- java.lang.Object
-
- org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
-
- org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
-
- org.openehealth.ipf.commons.ihe.ws.cxf.FixContentTypeOutInterceptor
-
- All Implemented Interfaces:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor,org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>,org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
public class FixContentTypeOutInterceptor extends org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptorWorkaround for a compatibility issue with Axis 2 0.9x.Older versions of Axis 2 only accept our message if the content-type contains a type of "text/xml". The CXF
AttachmentSerializerdoes not set this field. Therefore, we add it with this interceptor.- Author:
- Jens Riemschneider
-
-
Constructor Summary
Constructors Constructor Description FixContentTypeOutInterceptor()Constructs the interceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleMessage(org.apache.cxf.binding.soap.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, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
-