Class WebSite.WinCGI.CGI
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class WebSite.WinCGI.CGI

java.lang.Object
   |
   +----WebSite.WinCGI.CGI

public class CGI
extends Object

The abstract class for the WebSite/Java Windows CGI/1.3 interface. Your CGI program must extend this abstract class and implement the run() method.

Example:

public class myprog extends CGI {
    public void run() throws Throwable {
        //
        // Here is where your CGI program goes
        //
    }
}

Author: Robert B. Denny
Version: 0.2 (experimental)

See Also:
Server, Client, Request, Form, Response

Constructor Index

 o CGI()
Not used.

Method Index

 o run()
This method must be implemented in your subclass.

Constructors

 o CGI
  public CGI()
Not used.

Methods

 o run
  protected abstract void run() throws Throwable
This method must be implemented in your subclass. The actual work of your CGI program is done by this method.
Throws: Throwable
All uncaught exceptions (including Java runtime types) are caught by a global catcher in the Startup class. This exception handler formats the runtime error information (including a stack traceback) into a 500 Server Error message and returns it to the client.

All Packages  Class Hierarchy  This Package  Previous  Next  Index