org.apache.camel.component.cxf
Class HybridSourceDataBinding

java.lang.Object
  extended by org.apache.cxf.databinding.AbstractDataBinding
      extended by org.apache.cxf.jaxb.JAXBDataBinding
          extended by org.apache.camel.component.cxf.HybridSourceDataBinding
All Implemented Interfaces:
org.apache.cxf.databinding.DataBinding, org.apache.cxf.databinding.WrapperCapableDatabinding, org.apache.cxf.interceptor.InterceptorProvider

public class HybridSourceDataBinding
extends org.apache.cxf.jaxb.JAXBDataBinding

This is a hybrid DataBinding of JAXBDataBinding and SourceDataBinding. Like the SourceDataBinding, this DataBinding de/serializes parameters as DOMSource objects. And like the JAXBDataBinding, the JAXBDataBinding.initialize(org.apache.cxf.service.Service) method can initialize the service model's message part schema based on the service class in the message part info. Hence, this DataBinding supports DOMSource object de/serialization without requiring users to provide a WSDL.

Version:
@Revision: 789534 $

Field Summary
 
Fields inherited from class org.apache.cxf.jaxb.JAXBDataBinding
JAXB_SCAN_PACKAGES, MTOM_THRESHOLD, SCHEMA_RESOURCE, UNWRAP_JAXB_ELEMENT, USE_JAXB_BRIDGE
 
Fields inherited from class org.apache.cxf.databinding.AbstractDataBinding
mtomEnabled, mtomThreshold
 
Constructor Summary
HybridSourceDataBinding()
           
 
Method Summary
<T> org.apache.cxf.databinding.DataReader<T>
createReader(Class<T> cls)
           
<T> org.apache.cxf.databinding.DataWriter<T>
createWriter(Class<T> cls)
           
 Class<?>[] getSupportedReaderFormats()
           
 Class<?>[] getSupportedWriterFormats()
           
 
Methods inherited from class org.apache.cxf.jaxb.JAXBDataBinding
createJAXBContext, createJAXBContext, createJAXBContextAndSchemas, createWrapperHelper, getContext, getContextClasses, getContextProperties, getExtraClass, getInFaultInterceptors, getInInterceptors, getMarshallerListener, getMarshallerProperties, getOutFaultInterceptors, getOutInterceptors, getUnmarshallerListener, getUnmarshallerProperties, getValidationEventHandler, initialize, isUnwrapJAXBElement, setContext, setContextProperties, setExtraClass, setMarshallerListener, setMarshallerProperties, setUnmarshallerListener, setUnmarshallerProperties, setUnwrapJAXBElement, setValidationEventHandler
 
Methods inherited from class org.apache.cxf.databinding.AbstractDataBinding
addSchemaDocument, addSchemaDocument, checkNamespaceMap, getBus, getDeclaredNamespaceMappings, getMtomThreshold, getNamespaceMap, getSchemas, isMtomEnabled, setBus, setMtomEnabled, setMtomThreshold, setNamespaceMap, setSchemas, updateSchemaLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HybridSourceDataBinding

public HybridSourceDataBinding()
Method Detail

createReader

public <T> org.apache.cxf.databinding.DataReader<T> createReader(Class<T> cls)
Specified by:
createReader in interface org.apache.cxf.databinding.DataBinding
Overrides:
createReader in class org.apache.cxf.jaxb.JAXBDataBinding

getSupportedReaderFormats

public Class<?>[] getSupportedReaderFormats()
Specified by:
getSupportedReaderFormats in interface org.apache.cxf.databinding.DataBinding
Overrides:
getSupportedReaderFormats in class org.apache.cxf.jaxb.JAXBDataBinding

createWriter

public <T> org.apache.cxf.databinding.DataWriter<T> createWriter(Class<T> cls)
Specified by:
createWriter in interface org.apache.cxf.databinding.DataBinding
Overrides:
createWriter in class org.apache.cxf.jaxb.JAXBDataBinding

getSupportedWriterFormats

public Class<?>[] getSupportedWriterFormats()
Specified by:
getSupportedWriterFormats in interface org.apache.cxf.databinding.DataBinding
Overrides:
getSupportedWriterFormats in class org.apache.cxf.jaxb.JAXBDataBinding


Apache CAMEL