Package org.apache.xmlrpc.common
Class TypeFactoryImpl
java.lang.Object
org.apache.xmlrpc.common.TypeFactoryImpl
- All Implemented Interfaces:
TypeFactory
- Direct Known Subclasses:
JaxbTypeFactory
Default implementation of a type factory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TypeSerializer
private static final TypeSerializer
private static final TypeSerializer
private static final TypeSerializer
private static final TypeSerializer
private final XmlRpcController
private DateSerializer
private static final TypeSerializer
private static final TypeSerializer
private static final TypeSerializer
private static final TypeSerializer
private static final TypeSerializer
private static final TypeSerializer
private static final TypeSerializer
private static final TypeSerializer
private static final TypeSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the controller, which operates the type factory.getParser
(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.NamespaceContextImpl pContext, String pURI, String pLocalName) Creates a parser for a parameter or result object.getSerializer
(XmlRpcStreamConfig pConfig, Object pObject) Creates a serializer for the objectpObject
.
-
Field Details
-
NULL_SERIALIZER
-
STRING_SERIALIZER
-
I4_SERIALIZER
-
BOOLEAN_SERIALIZER
-
DOUBLE_SERIALIZER
-
BYTE_SERIALIZER
-
SHORT_SERIALIZER
-
LONG_SERIALIZER
-
FLOAT_SERIALIZER
-
NODE_SERIALIZER
-
SERIALIZABLE_SERIALIZER
-
BIGDECIMAL_SERIALIZER
-
BIGINTEGER_SERIALIZER
-
CALENDAR_SERIALIZER
-
controller
-
dateSerializer
-
-
Constructor Details
-
TypeFactoryImpl
Creates a new instance.- Parameters:
pController
- The controller, which operates the type factory.
-
-
Method Details
-
getController
Returns the controller, which operates the type factory.- Returns:
- The controller, an instance of
XmlRpcClient
, orXmlRpcServer
.
-
getSerializer
Description copied from interface:TypeFactory
Creates a serializer for the objectpObject
.- Specified by:
getSerializer
in interfaceTypeFactory
- Parameters:
pConfig
- The request configuration.pObject
- The object being serialized.- Returns:
- A serializer for
pObject
. - Throws:
SAXException
- Creating the serializer failed.
-
getParser
public TypeParser getParser(XmlRpcStreamConfig pConfig, org.apache.ws.commons.util.NamespaceContextImpl pContext, String pURI, String pLocalName) Description copied from interface:TypeFactory
Creates a parser for a parameter or result object.- Specified by:
getParser
in interfaceTypeFactory
- 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.
-