org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc
Class XmlRpcClientManager

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.model.connectionmanager.xmlrpc.XmlRpcClientManager

public class XmlRpcClientManager
extends Object

Manager for XML RPC server calls.

Author:
wesendon

Constructor Summary
XmlRpcClientManager(String serverInterface)
          Default constructor.
 
Method Summary
 void call(String methodName, Object... parameters)
          Executes a server call without return value.
<T> List<T>
callWithListResult(String methodName, Class<T> returnType, Object... parameters)
          Executes a server call with list return value.
<T> T
callWithResult(String methodName, Class<T> returnType, Object... parameters)
          Executes a server call with return value.
 void initConnection(ServerInfo serverInfo)
          Initializes the connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRpcClientManager

public XmlRpcClientManager(String serverInterface)
Default constructor.

Parameters:
serverInterface - name of interface
Method Detail

initConnection

public void initConnection(ServerInfo serverInfo)
                    throws ConnectionException
Initializes the connection.

Parameters:
serverInfo - server info
Throws:
ConnectionException - in case of failure

callWithResult

public <T> T callWithResult(String methodName,
                            Class<T> returnType,
                            Object... parameters)
                 throws ESException
Executes a server call with return value.

Type Parameters:
T - return type
Parameters:
methodName - method name
returnType - return type
parameters - parameters
Returns:
returned object from server
Throws:
ESException - in case of failure

callWithListResult

public <T> List<T> callWithListResult(String methodName,
                                      Class<T> returnType,
                                      Object... parameters)
                           throws ESException
Executes a server call with list return value.

Type Parameters:
T - return type
Parameters:
methodName - method name
returnType - list return type
parameters - parameters
Returns:
list return type
Throws:
ESException - in case of failure

call

public void call(String methodName,
                 Object... parameters)
          throws ESException
Executes a server call without return value.

Parameters:
methodName - method name
parameters - parameters
Throws:
ESException - in case of failure


Copyright © 2015. All Rights Reserved.