public class ApacheClient extends Object implements SampXmlRpcClient
| Constructor and Description |
|---|
ApacheClient(XmlRpcClient xmlrpcClient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
callAndForget(String method,
List params)
Sends a call, but does not wait around for the response.
|
Object |
callAndWait(String method,
List params)
Makes a synchronous call, waiting for the response and returning
the result.
|
public ApacheClient(XmlRpcClient xmlrpcClient)
xmlrpcClient - Apache XML-RPC client instancepublic Object callAndWait(String method, List params) throws IOException
SampXmlRpcClientcallAndWait in interface SampXmlRpcClientmethod - XML-RPC method nameparams - parameters for XML-RPC call (SAMP-compatible)IOExceptionpublic void callAndForget(String method, List params) throws 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)IOExceptionCopyright © 2008–2024. All rights reserved.