org.apache.xmlrpc.jaxb

Class JaxbSerializer

Implemented Interfaces:
TypeSerializer

public class JaxbSerializer
extends ExtSerializer

A serializer for JAXB objects.

Field Summary

static String
JAXB_TAG
The tag name for serializing JAXB objects.

Constructor Summary

JaxbSerializer(JAXBContext pContext)
Creates a new instance with the given context.

Method Summary

protected String
getTagName()
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

getTagName, serialize, write

Field Details

JAXB_TAG

public static final String JAXB_TAG
The tag name for serializing JAXB objects.

Constructor Details

JaxbSerializer

public JaxbSerializer(JAXBContext pContext)
Creates a new instance with the given context.
Parameters:
pContext - The context being used for creating marshallers.

Method Details

getTagName

protected String getTagName()
Returns the unqualied tag name.
Overrides:
getTagName in interface ExtSerializer

serialize

protected void serialize(ContentHandler pHandler,
                         Object pObject)
            throws SAXException
Performs the actual serialization.
Overrides:
serialize in interface ExtSerializer

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.