planetLabAPI
Class PlanetLabXmlRpcCaller.MyTypeFactory
java.lang.Object
org.apache.xmlrpc.common.TypeFactoryImpl
planetLabAPI.PlanetLabXmlRpcCaller.MyTypeFactory
- All Implemented Interfaces:
- org.apache.xmlrpc.common.TypeFactory
- Enclosing class:
- PlanetLabXmlRpcCaller
public class PlanetLabXmlRpcCaller.MyTypeFactory
- extends org.apache.xmlrpc.common.TypeFactoryImpl
This class handles "nil" values returned by the PLC xml rpc server.
As I've encountered problems when receiving "nil" values, although
the setEnabledForExtensions() flag was set,
I deceided to look for nil values manually,
using the existing apache-commons Classes NullParser and NullSerializer.
- Author:
- Leo Bosnjak
Method Summary |
org.apache.xmlrpc.parser.TypeParser |
getParser(org.apache.xmlrpc.common.XmlRpcStreamConfig pConfig,
org.apache.ws.commons.util.NamespaceContextImpl pContext,
java.lang.String pURI,
java.lang.String pLocalName)
|
org.apache.xmlrpc.serializer.TypeSerializer |
getSerializer(org.apache.xmlrpc.common.XmlRpcStreamConfig pConfig,
java.lang.Object pObject)
|
Methods inherited from class org.apache.xmlrpc.common.TypeFactoryImpl |
getController |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlanetLabXmlRpcCaller.MyTypeFactory
public PlanetLabXmlRpcCaller.MyTypeFactory(org.apache.xmlrpc.common.XmlRpcController pController)
getParser
public org.apache.xmlrpc.parser.TypeParser getParser(org.apache.xmlrpc.common.XmlRpcStreamConfig pConfig,
org.apache.ws.commons.util.NamespaceContextImpl pContext,
java.lang.String pURI,
java.lang.String pLocalName)
- Specified by:
getParser
in interface org.apache.xmlrpc.common.TypeFactory
- Overrides:
getParser
in class org.apache.xmlrpc.common.TypeFactoryImpl
getSerializer
public org.apache.xmlrpc.serializer.TypeSerializer getSerializer(org.apache.xmlrpc.common.XmlRpcStreamConfig pConfig,
java.lang.Object pObject)
throws org.xml.sax.SAXException
- Specified by:
getSerializer
in interface org.apache.xmlrpc.common.TypeFactory
- Overrides:
getSerializer
in class org.apache.xmlrpc.common.TypeFactoryImpl
- Throws:
org.xml.sax.SAXException