org.hecl.http
Class HttpCommand

java.lang.Object
  extended by org.hecl.http.HttpCommand
All Implemented Interfaces:
Command

public class HttpCommand
extends java.lang.Object
implements Command


Constructor Summary
HttpCommand()
           
 
Method Summary
 void cmdCode(Interp interp, Thing[] argv)
          The cmdCode method takes an interpreter and an array of Things, performs some calculations, and returns a Thing representing the computed value, or null.
static java.lang.String executeQuery(java.lang.String url, java.lang.String data, java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpCommand

public HttpCommand()
Method Detail

cmdCode

public void cmdCode(Interp interp,
                    Thing[] argv)
             throws HeclException
Description copied from interface: Command
The cmdCode method takes an interpreter and an array of Things, performs some calculations, and returns a Thing representing the computed value, or null.

Specified by:
cmdCode in interface Command
Parameters:
interp - an Interp value
argv - a Thing[] value
Throws:
HeclException - if an error occurs

executeQuery

public static java.lang.String executeQuery(java.lang.String url,
                                            java.lang.String data,
                                            java.lang.String type)
                                     throws HeclException
Throws:
HeclException