Java CGI HOWTO: Future Plans

Next Previous Contents

## 6. Future Plans

- Add to the Email class:
  Email( int capacity )

    Used when we know how much space the message will need to have allocated.

  sendTo( String [] address )

    Add a list of primary destinations to the e-mail message.

  sendCc( String address )

    Add a Carbon-Copy destination to the e-mail message.

  sendCc( String [] address )

    Add a list of Carbon-Copy destinations to the e-mail message.

  sendBcc( String address )

    Add a Blind Carbon-Copy destination to the e-mail message.

  sendBcc( String [] address )

    Add a list of Blind Carbon-Copy destinations to the e-mail message.

- Add to the HTML class:
  HTML( int capacity )

    Used when we know how much space the message will need to have allocated.

  public void unorderedList()

    Start an unordered list.

  public void orderedList()

    Start an ordered list.

  public void directoryList()

    Start a directory list.

  public void menuList()

    Start a menu list.

  void anchor( String anchorName )

    Specify an anchor.

  void link( String url, String text )

    Specify a link.

  void applet( String url, String altText )

    Specify an applet link.

- Allow HTML lists to be nested.
- Add error checking code to enforce correct ordering of HTML list formatting codes.
- The location of the file of environment data should be configurable from the `Makefile`.
- Get rid of the spurious empty name/value pair that appears in the list when we are dealing with the GET method of data transfer.
- Consider having CGI implement the java.util.Enumeration interface to successively provide variable names.
- Add a `Test` class, which would use every method in this package.
- Document how `CGI_Test`, `Email_Test` and `HTML_Test` build on each other to provide incremental tests for debugging purposes.
- Document how Test uses every feature available in this package.

Next Previous Contents