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
FieldsModifier and TypeFieldDescriptionprivate final JAXBContext
static final String
The tag name for serializing JAXB objects. -
Constructor Summary
ConstructorsConstructorDescriptionJaxbSerializer
(JAXBContext pContext) Creates a new instance with the given context. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the unqualied tag name.protected void
serialize
(ContentHandler pHandler, Object pObject) Performs the actual serialization.Methods inherited from class org.apache.xmlrpc.serializer.ExtSerializer
write
-
Field Details
-
context
-
JAXB_TAG
The tag name for serializing JAXB objects.- See Also:
-
-
Constructor Details
-
JaxbSerializer
Creates a new instance with the given context.- Parameters:
pContext
- The context being used for creating marshallers.
-
-
Method Details
-
getTagName
Description copied from class:ExtSerializer
Returns the unqualied tag name.- Specified by:
getTagName
in classExtSerializer
-
serialize
Description copied from class:ExtSerializer
Performs the actual serialization.- Specified by:
serialize
in classExtSerializer
- Throws:
SAXException
-