org.apache.xmlrpc.client.util
public class ClientFactory extends Object
The ClientFactory is a useful tool for simplifying the use of Apache XML-RPC. The rough idea is as follows: All XML-RPC handlers are implemented as interfaces. The server uses the actual implementation. The client uses the ClientFactory to obtain an implementation, which is based on running XML-RPC calls.
Constructor Summary | |
---|---|
ClientFactory(XmlRpcClient pClient, TypeConverterFactory pTypeConverterFactory) Creates a new instance. | |
ClientFactory(XmlRpcClient pClient) Creates a new instance. |
Method Summary | |
---|---|
XmlRpcClient | getClient() Returns the factories client. |
boolean | isObjectMethodLocal() Returns, whether a method declared by the Object
Object class is performed by the local object, rather than
by the server. |
Object | newInstance(Class pClass) Creates an object, which is implementing the given interface.
|
Object | newInstance(ClassLoader pClassLoader, Class pClass) Creates an object, which is implementing the given interface.
|
void | setObjectMethodLocal(boolean pObjectMethodLocal) Sets, whether a method declared by the Object
Object class is performed by the local object, rather than
by the server. |
Parameters: pClient A fully configured XML-RPC client, which is used internally to perform XML-RPC calls. pTypeConverterFactory Creates instances of TypeConverterFactory, which are used to transform the result object in its target representation.
new ClientFactory(pClient, new TypeConverterFactoryImpl());
Parameters: pClient A fully configured XML-RPC client, which is used internally to perform XML-RPC calls.
See Also: TypeConverterFactoryImpl
Object
Object class
is performed by the local object, rather than
by the server. Defaults to true.Object
Object class
is performed by the local object, rather than
by the server. Defaults to true.