org.astrogrid.samp.xmlrpc
Interface SampXmlRpcHandler


public interface SampXmlRpcHandler

Interface for an object which can process certain XML-RPC requests. Used by SampXmlRpcServer.

Since:
22 Aug 2008
Author:
Mark Taylor

Method Summary
 boolean canHandleCall(String method)
          Returns true if this handler should be able to process given XML-RPC method.
 Object handleCall(String method, List params)
          Processes an XML-RPC call.
 

Method Detail

canHandleCall

public boolean canHandleCall(String method)
Returns true if this handler should be able to process given XML-RPC method.

Parameters:
method - method name

handleCall

public Object handleCall(String method,
                         List params)
                  throws Exception
Processes an XML-RPC call. This method should only be called if 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.

Parameters:
method - XML-RPC method name
params - XML-RPC parameter list (SAMP-compatible)
Returns:
return value (SAMP-compatible)
Throws:
Exception


Copyright © 2008 AstroGrid. All Rights Reserved.