public interface SampXmlRpcHandler
SampXmlRpcServer
.Modifier and Type | Method and Description |
---|---|
boolean |
canHandleCall(java.lang.String method)
Returns true if this handler should be able to process
given XML-RPC method.
|
java.lang.Object |
handleCall(java.lang.String method,
java.util.List params,
java.lang.Object reqInfo)
Processes an XML-RPC call.
|
boolean canHandleCall(java.lang.String method)
method
- method namejava.lang.Object handleCall(java.lang.String method, java.util.List params, java.lang.Object reqInfo) throws java.lang.Exception
canHandleCall(method)
returns true.
The params
list and the return value must be
SAMP-compatible, that is only Strings, Lists and String-keyed Maps
are allowed in the data structures.
The reqInfo
parameter may be used to provide additional
information about the XML-RPC request, for instance the originating
host; this is implementation specific, and may be null.method
- XML-RPC method nameparams
- XML-RPC parameter list (SAMP-compatible)reqInfo
- optional additional request information; may be nulljava.lang.Exception