Package org.apache.cxf.databinding
Interface DataBinding
- All Known Implementing Classes:
- AbstractDataBinding,- AbstractInterceptorProvidingDataBinding,- SourceDataBinding,- StaxDataBinding
public interface DataBinding
- 
Method SummaryModifier and TypeMethodDescription<T> DataReader<T>createReader(Class<T> cls) <T> DataWriter<T>createWriter(Class<T> cls) Return a set of mappings from namespace to prefix to allow bindings to control the prefixes.intClass<?>[]Class<?>[]voidinitialize(Service service) Initialize the service info (i.e. type & element names, Schemas) with information from the databinding.booleanvoidsetMtomEnabled(boolean enabled) voidsetMtomThreshold(int threshold) If the binding supports MTOM, set the size threshold for its use.
- 
Method Details- 
createReader
- 
createWriter
- 
getSupportedReaderFormatsClass<?>[] getSupportedReaderFormats()
- 
getSupportedWriterFormatsClass<?>[] getSupportedWriterFormats()
- 
initializeInitialize the service info (i.e. type & element names, Schemas) with information from the databinding.- Parameters:
- service-
 
- 
getDeclaredNamespaceMappingsReturn a set of mappings from namespace to prefix to allow bindings to control the prefixes.- Returns:
- the map, or null if there are none.
 
- 
setMtomEnabledvoid setMtomEnabled(boolean enabled) 
- 
isMtomEnabledboolean isMtomEnabled()
- 
setMtomThresholdvoid setMtomThreshold(int threshold) If the binding supports MTOM, set the size threshold for its use. may be overridden by (e.g.) JAXWS configuration.- Parameters:
- threshold-
 
- 
getMtomThresholdint getMtomThreshold()
 
-