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
-
containsField(String)
- Returns true if the form contains the named
field.
-
containsFile(String)
- Returns true if the form contains the named
file field.
-
fieldCount()
- Returns the number of fields in the form.
-
fieldNames()
- Returns a FormFieldEnumeration of the field
names in the form.
-
fileCount()
- Returns the number of file fields in the form.
-
fileNames()
- Returns a FormFileEnumeration of the file field
names in the form.
-
getField(String)
- Gets the value of the named field, or null if it
is not present.
-
getFile(String)
- Gets the value of the named file field, or null if it
is not present.
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.
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.
fieldCount
public static int fieldCount()
- Returns the number of fields in the form.
fieldNames
public static FormFieldEnumeration fieldNames()
- Returns a FormFieldEnumeration of the field
names in the form.
- See Also:
- FormFieldEnumeration, Enumeration
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.
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.
fileCount
public static int fileCount()
- Returns the number of file fields in the form.
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