// This appears in Core Web Programming from
// Prentice Hall Publishers, and may be freely used
// or adapted. 1997 Marty Hall, hall@apl.jhu.edu.

public class CgiCommandLine extends CgiGet {
  public static void main(String[] args) {
    CgiCommandLine app
      = new CgiCommandLine("CgiCommandLine", args,
			   "GET (on the command line)");
    app.printFile();
  }

  public CgiCommandLine(String name, String[] args,
			String type) {
    super(name, args, type);
  }
  
  protected void printBody(String[] data) {
    System.out.println("Data supplied:\n<UL>");
    for(int i=0; i<data.length; i++)
      System.out.println("  <LI>" + data[i]);
    System.out.println("</UL>");
  }
}
