public class JAXBDataBinding extends AbstractDataBinding implements WrapperCapableDatabinding, InterceptorProvider
Modifier and Type | Field and Description |
---|---|
static String |
MTOM_THRESHOLD |
static String |
SCHEMA_RESOURCE |
static String |
UNWRAP_JAXB_ELEMENT |
static String |
USE_JAXB_BRIDGE |
mtomEnabled, mtomThreshold
Constructor and Description |
---|
JAXBDataBinding() |
JAXBDataBinding(boolean q) |
JAXBDataBinding(Class<?>... classes) |
JAXBDataBinding(javax.xml.bind.JAXBContext context) |
Modifier and Type | Method and Description |
---|---|
javax.xml.bind.JAXBContext |
createJAXBContext(Set<Class<?>> classes) |
javax.xml.bind.JAXBContext |
createJAXBContext(Set<Class<?>> classes,
String defaultNs) |
JAXBContextCache.CachedContextAndSchemas |
createJAXBContextAndSchemas(Set<Class<?>> classes,
String defaultNs) |
<T> DataReader<T> |
createReader(Class<T> c) |
WrapperHelper |
createWrapperHelper(Class<?> wrapperType,
QName wrapperName,
List<String> partNames,
List<String> elTypeNames,
List<Class<?>> partClasses) |
<T> DataWriter<T> |
createWriter(Class<T> c) |
javax.xml.bind.JAXBContext |
getContext() |
Set<Class<?>> |
getContextClasses() |
Map<String,Object> |
getContextProperties()
Return a map of properties.
|
Class[] |
getExtraClass() |
List<Interceptor<? extends Message>> |
getInFaultInterceptors()
Returns the list of interceptors attached to the incoming fault interceptor
chain of the object.
|
List<Interceptor<? extends Message>> |
getInInterceptors()
Returns the list of interceptors attached to the incoming interceptor
chain of the object.
|
javax.xml.bind.Marshaller.Listener |
getMarshallerListener()
Returns the Marshaller.Listener that will be registered on the Marshallers
|
Map<String,Object> |
getMarshallerProperties()
Return a map of properties.
|
List<Interceptor<? extends Message>> |
getOutFaultInterceptors()
Returns the list of interceptors attached to the outgoing fault interceptor
chain of the object.
|
List<Interceptor<? extends Message>> |
getOutInterceptors()
Returns the list of interceptors attached to the outgoing interceptor
chain of the object.
|
Class<?>[] |
getSupportedReaderFormats() |
Class<?>[] |
getSupportedWriterFormats() |
javax.xml.bind.Unmarshaller.Listener |
getUnmarshallerListener()
Returns the Unmarshaller.Listener that will be registered on the Unmarshallers
|
Map<String,Object> |
getUnmarshallerProperties()
Return a map of properties.
|
javax.xml.bind.ValidationEventHandler |
getValidationEventHandler() |
void |
initialize(Service service)
Initialize the service info (i.e.
|
boolean |
isUnwrapJAXBElement() |
void |
setContext(javax.xml.bind.JAXBContext ctx) |
void |
setContextProperties(Map<String,Object> contextProperties)
Set a map of JAXB context properties.
|
void |
setExtraClass(Class[] userExtraClass) |
void |
setMarshallerListener(javax.xml.bind.Marshaller.Listener marshallerListener)
Sets the Marshaller.Listener that will be registered on the Marshallers
|
void |
setMarshallerProperties(Map<String,Object> marshallerProperties)
Set a map of JAXB marshaller properties.
|
void |
setUnmarshallerListener(javax.xml.bind.Unmarshaller.Listener unmarshallerListener)
Sets the Unmarshaller.Listener that will be registered on the Unmarshallers
|
void |
setUnmarshallerProperties(Map<String,Object> unmarshallerProperties)
Set a map of JAXB unmarshaller properties.
|
void |
setUnwrapJAXBElement(boolean unwrapJAXBElement) |
void |
setValidationEventHandler(javax.xml.bind.ValidationEventHandler validationEventHandler) |
addSchemaDocument, addSchemaDocument, checkNamespaceMap, getBus, getDeclaredNamespaceMappings, getMtomThreshold, getNamespaceMap, getSchemas, isMtomEnabled, setBus, setMtomEnabled, setMtomThreshold, setNamespaceMap, setSchemas, updateSchemaLocation
public static final String SCHEMA_RESOURCE
public static final String MTOM_THRESHOLD
public static final String UNWRAP_JAXB_ELEMENT
public static final String USE_JAXB_BRIDGE
public JAXBDataBinding()
public JAXBDataBinding(boolean q)
public JAXBDataBinding(Class<?>... classes) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public JAXBDataBinding(javax.xml.bind.JAXBContext context)
public javax.xml.bind.JAXBContext getContext()
public final void setContext(javax.xml.bind.JAXBContext ctx)
public <T> DataWriter<T> createWriter(Class<T> c)
createWriter
in interface DataBinding
public Class<?>[] getSupportedWriterFormats()
getSupportedWriterFormats
in interface DataBinding
public <T> DataReader<T> createReader(Class<T> c)
createReader
in interface DataBinding
public Class<?>[] getSupportedReaderFormats()
getSupportedReaderFormats
in interface DataBinding
public void initialize(Service service)
DataBinding
initialize
in interface DataBinding
public void setExtraClass(Class[] userExtraClass)
public Class[] getExtraClass()
public javax.xml.bind.JAXBContext createJAXBContext(Set<Class<?>> classes) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public javax.xml.bind.JAXBContext createJAXBContext(Set<Class<?>> classes, String defaultNs) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public JAXBContextCache.CachedContextAndSchemas createJAXBContextAndSchemas(Set<Class<?>> classes, String defaultNs) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public Map<String,Object> getContextProperties()
public void setContextProperties(Map<String,Object> contextProperties)
contextProperties
- map of properties.public Map<String,Object> getMarshallerProperties()
public void setMarshallerProperties(Map<String,Object> marshallerProperties)
marshallerProperties
- map of properties.public Map<String,Object> getUnmarshallerProperties()
public void setUnmarshallerProperties(Map<String,Object> unmarshallerProperties)
unmarshallerProperties
- map of properties.public javax.xml.bind.Unmarshaller.Listener getUnmarshallerListener()
public void setUnmarshallerListener(javax.xml.bind.Unmarshaller.Listener unmarshallerListener)
unmarshallerListener
- public javax.xml.bind.Marshaller.Listener getMarshallerListener()
public void setMarshallerListener(javax.xml.bind.Marshaller.Listener marshallerListener)
marshallerListener
- public javax.xml.bind.ValidationEventHandler getValidationEventHandler()
public void setValidationEventHandler(javax.xml.bind.ValidationEventHandler validationEventHandler)
public boolean isUnwrapJAXBElement()
public void setUnwrapJAXBElement(boolean unwrapJAXBElement)
public WrapperHelper createWrapperHelper(Class<?> wrapperType, QName wrapperName, List<String> partNames, List<String> elTypeNames, List<Class<?>> partClasses)
createWrapperHelper
in interface WrapperCapableDatabinding
public List<Interceptor<? extends Message>> getOutFaultInterceptors()
InterceptorProvider
getOutFaultInterceptors
in interface InterceptorProvider
List
outgoing fault interceptor chainpublic List<Interceptor<? extends Message>> getInFaultInterceptors()
InterceptorProvider
getInFaultInterceptors
in interface InterceptorProvider
List
incoming fault interceptor chainpublic List<Interceptor<? extends Message>> getInInterceptors()
InterceptorProvider
getInInterceptors
in interface InterceptorProvider
List
incoming interceptor chainpublic List<Interceptor<? extends Message>> getOutInterceptors()
InterceptorProvider
getOutInterceptors
in interface InterceptorProvider
List
outgoing interceptor chainApache CXF