Class JAXBHandle<C>

java.lang.Object
com.marklogic.client.impl.HandleImplementation<R,W>
com.marklogic.client.io.BaseHandle<InputStream,OutputStreamSender>
com.marklogic.client.io.JAXBHandle<C>
Type Parameters:
C - one of the classes (or the <?> wildcard for any of the classes) registered with the JAXB Context
All Implemented Interfaces:
ContentDescriptor, AbstractReadHandle, AbstractWriteHandle, BufferableContentHandle<C,InputStream>, BufferableHandle, ContentHandle<C>, ResendableContentHandle<C,InputStream>, SPARQLResultsReadHandle, TriplesReadHandle, TriplesWriteHandle, XMLReadHandle, XMLWriteHandle, OutputStreamSender

A JAXB Handle roundtrips a POJO (a Java data structure) to and from a database document. The POJO class must have JAXB annotations or must be generated by xjc from an XML Schema. The JAXB Handle must be initialized with a JAXB Context with which the root POJO classes have been registered. Important: Do not use the JAXB unmarshaller to parse XML from an untrusted source as it is vulnerable to XXE attacks.