org.robotframework.remoteserver.servlet
Class ServerMethods

java.lang.Object
  extended by org.robotframework.remoteserver.servlet.ServerMethods

public class ServerMethods
extends Object

Contains the XML-RPC methods that implement the remote library interface.

Author:
David Luu

Constructor Summary
ServerMethods(Context context)
           
 
Method Summary
protected  Object arraysToLists(Object arg)
           
 String[] get_keyword_arguments(String keyword)
          Get an array of argument descriptors for the given keyword.
 String get_keyword_documentation(String keyword)
          Get documentation for given keyword.
 String[] get_keyword_names()
          Get an array containing the names of the keywords that the library implements.
 Map<String,Object> run_keyword(String keyword, Object[] args)
          Run the given keyword and return the results.
 Map<String,Object> stop_remote_server()
          Stops the remote server if it is configured to allow that.
protected  boolean stopRemoteServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerMethods

public ServerMethods(Context context)
Method Detail

get_keyword_names

public String[] get_keyword_names()
Get an array containing the names of the keywords that the library implements.

Returns:
String array containing keyword names in the library

run_keyword

public Map<String,Object> run_keyword(String keyword,
                                      Object[] args)
Run the given keyword and return the results.

Parameters:
keyword - keyword to run
args - arguments packed in an array to pass to the keyword method
Returns:
remote result Map containing the execution results

get_keyword_arguments

public String[] get_keyword_arguments(String keyword)
Get an array of argument descriptors for the given keyword.

Parameters:
keyword - The keyword to lookup.
Returns:
A string array of argument descriptors for the given keyword.

get_keyword_documentation

public String get_keyword_documentation(String keyword)
Get documentation for given keyword.

Parameters:
keyword - The keyword to get documentation for.
Returns:
A documentation string for the given keyword.

stop_remote_server

public Map<String,Object> stop_remote_server()
Stops the remote server if it is configured to allow that.

Returns:
remote result Map containing the execution results

stopRemoteServer

protected boolean stopRemoteServer()
                            throws Exception
Throws:
Exception

arraysToLists

protected Object arraysToLists(Object arg)


Copyright © 2012. All Rights Reserved.