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

Class WebSite.WinCGI.Form

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

public final class Form
extends Object

The Form class implements WebSite form-related data items. It is purely a static class, it cannot be instantiated. WebSite decodes all form data present in POST requests only. If the form has METHOD=GET, form data will not be available in this package.

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

See Also:
Server, Request, Client, Response

Method Index

 o containsField(String)
Returns true if the form contains the named field.
 o containsFile(String)
Returns true if the form contains the named file field.
 o fieldCount()
Returns the number of fields in the form.
 o fieldNames()
Returns a FormFieldEnumeration of the field names in the form.
 o fileCount()
Returns the number of file fields in the form.
 o fileNames()
Returns a FormFileEnumeration of the file field names in the form.
 o getField(String)
Gets the value of the named field, or null if it is not present.
 o getFile(String)
Gets the value of the named file field, or null if it is not present.

Methods

 o containsField
  public static boolean containsField(String name)
Returns true if the form contains the named field.
Parameters:
name - The name of the field as given in the NAME= attribute in the form.
 o getField
  public static String getField(String name)
Gets the value of the named field, or null if it is not present.
Parameters:
name - The name of the field as given in the NAME= attribute in the form.
 o fieldCount
  public static int fieldCount()
Returns the number of fields in the form.
 o fieldNames
  public static FormFieldEnumeration fieldNames()
Returns a FormFieldEnumeration of the field names in the form.
See Also:
FormFieldEnumeration, Enumeration
 o containsFile
  public static boolean containsFile(String name)
Returns true if the form contains the named file field.
Parameters:
name - The name of the file field as given in the NAME= attribute in the form.
 o getFile
  public static FormFile getFile(String name)
Gets the value of the named file field, or null if it is not present.
Parameters:
name - The name of the file field as given in the NAME= attribute in the form.
 o fileCount
  public static int fileCount()
Returns the number of file fields in the form.
 o fileNames
  public static FormFileEnumeration fileNames()
Returns a FormFileEnumeration of the file field names in the form.
See Also:
FormFileEnumeration, Enumeration

All Packages  Class Hierarchy  This Package  Previous  Next  Index