org.apache.camel.component.cxf.interceptors
Class RemoveClassTypeInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
      extended by org.apache.camel.component.cxf.interceptors.RemoveClassTypeInterceptor
All Implemented Interfaces:
org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

public class RemoveClassTypeInterceptor
extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>

This interceptor traverses the BindingOperationInfo and invokes the MessagePartInfo.setTypeQName(javax.xml.namespace.QName) method to set the service class to null. The reason we may want to set the service class to null is because CXF will try to use JAXB if the service class is present. It affects DomSource payload to be processed correctly.

Version:
@Revision: 789534 $

Constructor Summary
RemoveClassTypeInterceptor()
           
 
Method Summary
 void handleMessage(org.apache.cxf.message.Message message)
           
protected  void removePartTypeClass(org.apache.cxf.service.model.BindingMessageInfo bmi)
           
protected  void removePartTypeClass(org.apache.cxf.service.model.MessageInfo msgInfo)
           
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, 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
 

Constructor Detail

RemoveClassTypeInterceptor

public RemoveClassTypeInterceptor()
Method Detail

handleMessage

public void handleMessage(org.apache.cxf.message.Message message)
                   throws org.apache.cxf.interceptor.Fault
Throws:
org.apache.cxf.interceptor.Fault

removePartTypeClass

protected void removePartTypeClass(org.apache.cxf.service.model.BindingMessageInfo bmi)

removePartTypeClass

protected void removePartTypeClass(org.apache.cxf.service.model.MessageInfo msgInfo)


Apache CAMEL