org.apache.xmlrpc.common

Interface TypeFactory

public interface TypeFactory

A type factory creates serializers or handlers, based on the object type.
Method Summary
TypeParsergetParser(XmlRpcStreamConfig pConfig, NamespaceContextImpl pContext, String pURI, String pLocalName)
Creates a parser for a parameter or result object.
TypeSerializergetSerializer(XmlRpcStreamConfig pConfig, Object pObject)
Creates a serializer for the object pObject.

Method Detail

getParser

public TypeParser getParser(XmlRpcStreamConfig pConfig, NamespaceContextImpl pContext, String pURI, String pLocalName)
Creates a parser for a parameter or result object.

Parameters: pConfig The request configuration. pContext A namespace context, for looking up prefix mappings. pURI The namespace URI of the element containing the parameter or result. pLocalName The local name of the element containing the parameter or result.

Returns: The created parser.

getSerializer

public TypeSerializer getSerializer(XmlRpcStreamConfig pConfig, Object pObject)
Creates a serializer for the object pObject.

Parameters: pConfig The request configuration. pObject The object being serialized.

Returns: A serializer for pObject.

Throws: SAXException Creating the serializer failed.

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