public class ApacheClient extends java.lang.Object implements SampXmlRpcClient
| Modifier and Type | Field and Description |
|---|---|
private XmlRpcClient |
xmlrpcClient_ |
| Constructor and Description |
|---|
ApacheClient(XmlRpcClient xmlrpcClient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
callAndForget(java.lang.String method,
java.util.List params)
Sends a call, but does not wait around for the response.
|
java.lang.Object |
callAndWait(java.lang.String method,
java.util.List params)
Makes a synchronous call, waiting for the response and returning
the result.
|
public ApacheClient(XmlRpcClient xmlrpcClient)
xmlrpcClient - Apache XML-RPC client instancepublic java.lang.Object callAndWait(java.lang.String method,
java.util.List params)
throws java.io.IOException
SampXmlRpcClientcallAndWait in interface SampXmlRpcClientmethod - XML-RPC method nameparams - parameters for XML-RPC call (SAMP-compatible)java.io.IOExceptionpublic void callAndForget(java.lang.String method,
java.util.List params)
throws java.io.IOException
SampXmlRpcClientNOTE: it seems to be difficult to implement this method in a
way which is faster than SampXmlRpcClient.callAndWait(java.lang.String, java.util.List) but does not cause
problems elsewhere (incomplete HTTP responses). It is probably
a good idea to avoid using it if possible.
callAndForget in interface SampXmlRpcClientmethod - XML-RPC method nameparams - parameters for XML-RPC call (SAMP-compatible)java.io.IOException