public class TypeFactoryImpl extends java.lang.Object implements TypeFactory
Constructor and Description |
---|
TypeFactoryImpl(XmlRpcController pController)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
XmlRpcController |
getController()
Returns the controller, which operates the type factory.
|
TypeParser |
getParser(XmlRpcStreamConfig pConfig,
NamespaceContextImpl pContext,
java.lang.String pURI,
java.lang.String pLocalName)
Creates a parser for a parameter or result object.
|
TypeSerializer |
getSerializer(XmlRpcStreamConfig pConfig,
java.lang.Object pObject)
Creates a serializer for the object
pObject . |
public TypeFactoryImpl(XmlRpcController pController)
pController
- The controller, which operates the type factory.public XmlRpcController getController()
org.apache.xmlrpc.client.XmlRpcClient
,
or org.apache.xmlrpc.server.XmlRpcServer
.public TypeSerializer getSerializer(XmlRpcStreamConfig pConfig, java.lang.Object pObject) throws org.xml.sax.SAXException
TypeFactory
pObject
.getSerializer
in interface TypeFactory
pConfig
- The request configuration.pObject
- The object being serialized.pObject
.org.xml.sax.SAXException
- Creating the serializer failed.public TypeParser getParser(XmlRpcStreamConfig pConfig, NamespaceContextImpl pContext, java.lang.String pURI, java.lang.String pLocalName)
TypeFactory
getParser
in interface TypeFactory
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.