Package org.apache.cxf.databinding
Class AbstractDataBinding
java.lang.Object
org.apache.cxf.databinding.AbstractDataBinding
- All Implemented Interfaces:
DataBinding
- Direct Known Subclasses:
AbstractInterceptorProvidingDataBinding
,SourceDataBinding
Supply default implementations, as appropriate, for DataBinding.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ws.commons.schema.XmlSchema
addSchemaDocument
(ServiceInfo serviceInfo, SchemaCollection col, Document d, String systemId) org.apache.ws.commons.schema.XmlSchema
addSchemaDocument
(ServiceInfo serviceInfo, SchemaCollection col, Document d, String systemId, Collection<String> ids) protected static void
checkNamespaceMap
(Map<String, String> namespaceMap) protected Bus
getBus()
Provide explicit mappings to ReflectionServiceFactory.int
boolean
void
This call is used to set the bus.void
setContextualNamespaceMap
(Map<String, String> contextualNamespaceMap) void
setMtomEnabled
(boolean enabled) void
setMtomThreshold
(int threshold) If the binding supports MTOM, set the size threshold for its use.void
setNamespaceMap
(Map<String, String> namespaceMap) Set a map of from URI to prefix.void
setSchemas
(Collection<DOMSource> schemas) protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cxf.databinding.DataBinding
createReader, createWriter, getSupportedReaderFormats, getSupportedWriterFormats, initialize
-
Field Details
-
mtomEnabled
protected boolean mtomEnabled -
mtomThreshold
protected int mtomThreshold
-
-
Constructor Details
-
AbstractDataBinding
public AbstractDataBinding()
-
-
Method Details
-
getBus
-
setBus
This call is used to set the bus. It should only be called once.- Parameters:
bus
-
-
getSchemas
-
setSchemas
-
addSchemaDocument
public org.apache.ws.commons.schema.XmlSchema addSchemaDocument(ServiceInfo serviceInfo, SchemaCollection col, Document d, String systemId) -
addSchemaDocument
public org.apache.ws.commons.schema.XmlSchema addSchemaDocument(ServiceInfo serviceInfo, SchemaCollection col, Document d, String systemId, Collection<String> ids) -
updateSchemaLocation
-
getNamespaceMap
- Returns:
- the namespaceMap (URI to prefix). This will be null if no particular namespace map has been set.
-
setNamespaceMap
Set a map of from URI to prefix. If possible, the data binding will use these prefixes on the wire.- Parameters:
namespaceMap
- The namespaceMap to set.
-
getContextualNamespaceMap
-
setContextualNamespaceMap
-
getDeclaredNamespaceMappings
Provide explicit mappings to ReflectionServiceFactory. Return a set of mappings from namespace to prefix to allow bindings to control the prefixes.- Specified by:
getDeclaredNamespaceMappings
in interfaceDataBinding
- Returns:
- the map, or null if there are none.
-
checkNamespaceMap
-
setMtomEnabled
public void setMtomEnabled(boolean enabled) - Specified by:
setMtomEnabled
in interfaceDataBinding
-
isMtomEnabled
public boolean isMtomEnabled()- Specified by:
isMtomEnabled
in interfaceDataBinding
-
getMtomThreshold
public int getMtomThreshold()- Specified by:
getMtomThreshold
in interfaceDataBinding
-
setMtomThreshold
public void setMtomThreshold(int threshold) Description copied from interface:DataBinding
If the binding supports MTOM, set the size threshold for its use. may be overridden by (e.g.) JAXWS configuration.- Specified by:
setMtomThreshold
in interfaceDataBinding
-