Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tripi.asp
Class Request.FormObj  view Request.FormObj download Request.FormObj.java

java.lang.Object
  extended bycom.tripi.asp.Request.FormObj
All Implemented Interfaces:
SimpleMap
Enclosing class:
Request

public static class Request.FormObj
extends java.lang.Object
implements SimpleMap

The FormObj class implements the interface between ASP Request.Form object and the Servlet API. The form values are 'lazy' evaluated to keep from accessing the Servlet's input stream until required, in case the BinaryRead function will be called.


Nested Class Summary
(package private)  class Request.FormObj.FormContents
          This class implements processing specific to a form data object.
 
Field Summary
 AspCollection Contents
          AspCollection to store form data
(package private)  javax.servlet.http.HttpServletRequest request
          Java Servlet request object
 
Constructor Summary
(package private) Request.FormObj(javax.servlet.http.HttpServletRequest request)
          Constructor.
 
Method Summary
 int Count()
          ASP-Accessible function to obtain the number of items in this form.
 java.lang.Object get(java.lang.Object obj)
          Obtains a form value with the specified key.
 java.util.Enumeration getKeys()
          Obtains the list of keys in this object.
 void put(java.lang.Object key, java.lang.Object value)
          Implements the SimpleMap.put interface function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Contents

public AspCollection Contents
AspCollection to store form data


request

javax.servlet.http.HttpServletRequest request
Java Servlet request object

Constructor Detail

Request.FormObj

Request.FormObj(javax.servlet.http.HttpServletRequest request)
Constructor.

Method Detail

getKeys

public java.util.Enumeration getKeys()
                              throws AspException
Obtains the list of keys in this object.

Specified by:
getKeys in interface SimpleMap

get

public java.lang.Object get(java.lang.Object obj)
                     throws AspException
Obtains a form value with the specified key.

Specified by:
get in interface SimpleMap

put

public void put(java.lang.Object key,
                java.lang.Object value)
         throws AspException
Implements the SimpleMap.put interface function. Will always throw a AspReadOnlyException becaues Request.Form is read-only.

Specified by:
put in interface SimpleMap

Count

public int Count()
          throws AspException
ASP-Accessible function to obtain the number of items in this form.