Package org.apache.xmlrpc.jaxb
Class JaxbSerializer
java.lang.Object
org.apache.xmlrpc.serializer.ExtSerializer
org.apache.xmlrpc.jaxb.JaxbSerializer
- All Implemented Interfaces:
TypeSerializer
A serializer for JAXB objects.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJaxbSerializer(javax.xml.bind.JAXBContext pContext) Creates a new instance with the given context. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the unqualied tag name.protected voidserialize(ContentHandler pHandler, Object pObject) Performs the actual serialization.Methods inherited from class org.apache.xmlrpc.serializer.ExtSerializer
write
-
Field Details
-
context
private final javax.xml.bind.JAXBContext context -
JAXB_TAG
The tag name for serializing JAXB objects.- See Also:
-
-
Constructor Details
-
JaxbSerializer
public JaxbSerializer(javax.xml.bind.JAXBContext pContext) Creates a new instance with the given context.- Parameters:
pContext- The context being used for creating marshallers.
-
-
Method Details
-
getTagName
Description copied from class:ExtSerializerReturns the unqualied tag name.- Specified by:
getTagNamein classExtSerializer
-
serialize
Description copied from class:ExtSerializerPerforms the actual serialization.- Specified by:
serializein classExtSerializer- Throws:
SAXException
-