|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ros.internal.node.xmlrpc.XmlRpcClientFactory<T>
T
- the type of XmlRpcEndpoint
to create clients forpublic class XmlRpcClientFactory<T extends XmlRpcEndpoint>
Modified version of org.apache.xmlrpc.client.util.ClientFactory
that
requires timeouts in calls.
Constructor Summary | |
---|---|
XmlRpcClientFactory(org.apache.xmlrpc.client.XmlRpcClient pClient)
Creates a new instance. |
|
XmlRpcClientFactory(org.apache.xmlrpc.client.XmlRpcClient pClient,
org.apache.xmlrpc.common.TypeConverterFactory pTypeConverterFactory)
Creates a new instance. |
Method Summary | |
---|---|
org.apache.xmlrpc.client.XmlRpcClient |
getClient()
Returns the factories client. |
boolean |
isObjectMethodLocal()
Returns, whether a method declared by the Object class is
performed by the local object, rather than by the server. |
java.lang.Object |
newInstance(java.lang.ClassLoader pClassLoader,
java.lang.Class<T> pClass,
java.lang.String pRemoteName,
int timeout)
Creates an object, which is implementing the given interface. |
void |
setObjectMethodLocal(boolean pObjectMethodLocal)
Sets, whether a method declared by the Object class is
performed by the local object, rather than by the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcClientFactory(org.apache.xmlrpc.client.XmlRpcClient pClient, org.apache.xmlrpc.common.TypeConverterFactory pTypeConverterFactory)
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.public XmlRpcClientFactory(org.apache.xmlrpc.client.XmlRpcClient pClient)
new ClientFactory(pClient, new TypeConverterFactoryImpl());
pClient
- A fully configured XML-RPC client, which is used internally to
perform XML-RPC calls.TypeConverterFactoryImpl
Method Detail |
---|
public org.apache.xmlrpc.client.XmlRpcClient getClient()
public boolean isObjectMethodLocal()
Object class
is
performed by the local object, rather than by the server. Defaults to true.
public void setObjectMethodLocal(boolean pObjectMethodLocal)
Object class
is
performed by the local object, rather than by the server. Defaults to true.
public java.lang.Object newInstance(java.lang.ClassLoader pClassLoader, java.lang.Class<T> pClass, java.lang.String pRemoteName, int timeout)
pClassLoader
- The class loader, which is being used for loading classes, if
required.pClass
- Interface, which is being implemented.pRemoteName
- Handler 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".
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |