Public Member Functions | Private Attributes
org.apache.xmlrpc.client.util.ClientFactory Class Reference

List of all members.

Public Member Functions

 ClientFactory (XmlRpcClient pClient, TypeConverterFactory pTypeConverterFactory)
 ClientFactory (XmlRpcClient pClient)
XmlRpcClient getClient ()
boolean isObjectMethodLocal ()
Object newInstance (Class pClass)
Object newInstance (ClassLoader pClassLoader, Class pClass)
Object newInstance (ClassLoader pClassLoader, final Class pClass, final String pRemoteName)
void setObjectMethodLocal (boolean pObjectMethodLocal)

Private Attributes

final XmlRpcClient client
boolean objectMethodLocal
final TypeConverterFactory typeConverterFactory

Detailed Description

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.

Definition at line 40 of file ClientFactory.java.


Constructor & Destructor Documentation

Creates a new instance.

Parameters:
pClientA fully configured XML-RPC client, which is used internally to perform XML-RPC calls.
pTypeConverterFactoryCreates instances of TypeConverterFactory, which are used to transform the result object in its target representation.

Definition at line 51 of file ClientFactory.java.

Creates a new instance. Shortcut for

   new ClientFactory(pClient, new TypeConverterFactoryImpl());
 
Parameters:
pClientA fully configured XML-RPC client, which is used internally to perform XML-RPC calls.
See also:
TypeConverterFactoryImpl

Definition at line 64 of file ClientFactory.java.


Member Function Documentation

Returns the factories client.

Definition at line 70 of file ClientFactory.java.

Returns, whether a method declared by the Object class is performed by the local object, rather than by the server. Defaults to true.

Definition at line 78 of file ClientFactory.java.

Creates an object, which is implementing the given interface. The objects methods are internally calling an XML-RPC server by using the factories client; shortcut for

   newInstance(Thread.currentThread().getContextClassLoader(),
     pClass)
 

Definition at line 99 of file ClientFactory.java.

Object org.apache.xmlrpc.client.util.ClientFactory.newInstance ( ClassLoader  pClassLoader,
Class  pClass 
) [inline]

Creates an object, which is implementing the given interface. The objects methods are internally calling an XML-RPC server by using the factories client; shortcut for

   newInstance(pClassLoader, pClass, pClass.getName())
 

Definition at line 110 of file ClientFactory.java.

Object org.apache.xmlrpc.client.util.ClientFactory.newInstance ( ClassLoader  pClassLoader,
final Class  pClass,
final String  pRemoteName 
) [inline]

Creates an object, which is implementing the given interface. The objects methods are internally calling an XML-RPC server by using the factories client.

Parameters:
pClassLoaderThe class loader, which is being used for loading classes, if required.
pClassInterface, which is being implemented.
pRemoteNameHandler name, which is being used when calling the server. This is used for composing the method name. For example, if pRemoteName is "Foo" and you want to invoke the method "bar" in the handler, then the full method name would be "Foo.bar".

Definition at line 126 of file ClientFactory.java.

void org.apache.xmlrpc.client.util.ClientFactory.setObjectMethodLocal ( boolean  pObjectMethodLocal) [inline]

Sets, whether a method declared by the Object class is performed by the local object, rather than by the server. Defaults to true.

Definition at line 86 of file ClientFactory.java.


Member Data Documentation

Definition at line 41 of file ClientFactory.java.

Definition at line 43 of file ClientFactory.java.

Definition at line 42 of file ClientFactory.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:50