public class TypeFactoryImpl extends java.lang.Object implements TypeFactory
Modifier and Type | Field and Description |
---|---|
private static TypeSerializer |
BIGDECIMAL_SERIALIZER |
private static TypeSerializer |
BIGINTEGER_SERIALIZER |
private static TypeSerializer |
BOOLEAN_SERIALIZER |
private static TypeSerializer |
BYTE_SERIALIZER |
private static TypeSerializer |
CALENDAR_SERIALIZER |
private XmlRpcController |
controller |
private DateSerializer |
dateSerializer |
private static TypeSerializer |
DOUBLE_SERIALIZER |
private static TypeSerializer |
FLOAT_SERIALIZER |
private static TypeSerializer |
I4_SERIALIZER |
private static TypeSerializer |
LONG_SERIALIZER |
private static TypeSerializer |
NODE_SERIALIZER |
private static TypeSerializer |
NULL_SERIALIZER |
private static TypeSerializer |
SERIALIZABLE_SERIALIZER |
private static TypeSerializer |
SHORT_SERIALIZER |
private static TypeSerializer |
STRING_SERIALIZER |
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,
org.apache.ws.commons.util.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 . |
private static final TypeSerializer NULL_SERIALIZER
private static final TypeSerializer STRING_SERIALIZER
private static final TypeSerializer I4_SERIALIZER
private static final TypeSerializer BOOLEAN_SERIALIZER
private static final TypeSerializer DOUBLE_SERIALIZER
private static final TypeSerializer BYTE_SERIALIZER
private static final TypeSerializer SHORT_SERIALIZER
private static final TypeSerializer LONG_SERIALIZER
private static final TypeSerializer FLOAT_SERIALIZER
private static final TypeSerializer NODE_SERIALIZER
private static final TypeSerializer SERIALIZABLE_SERIALIZER
private static final TypeSerializer BIGDECIMAL_SERIALIZER
private static final TypeSerializer BIGINTEGER_SERIALIZER
private static final TypeSerializer CALENDAR_SERIALIZER
private final XmlRpcController controller
private DateSerializer dateSerializer
public TypeFactoryImpl(XmlRpcController pController)
pController
- The controller, which operates the type factory.public XmlRpcController getController()
XmlRpcClient
,
or 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, org.apache.ws.commons.util.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.