public class XmlRpcClientManager extends Object
| Constructor and Description |
|---|
XmlRpcClientManager(String serverInterface)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public XmlRpcClientManager(String serverInterface)
serverInterface - name of interfacepublic void initConnection(ServerInfo serverInfo) throws ConnectionException
serverInfo - server infoConnectionException - in case of failurepublic <T> T callWithResult(String methodName, Class<T> returnType, Object... parameters) throws ESException
T - return typemethodName - method namereturnType - return typeparameters - parametersESException - in case of failurepublic <T> List<T> callWithListResult(String methodName, Class<T> returnType, Object... parameters) throws ESException
T - return typemethodName - method namereturnType - list return typeparameters - parametersESException - in case of failurepublic void call(String methodName, Object... parameters) throws ESException
methodName - method nameparameters - parametersESException - in case of failureCopyright © 2017. All rights reserved.