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

Quick Search    Search Deep

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

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

public class Request
extends java.lang.Object
implements SimpleMap

Request is a class which holds request-specific data. It is an adaptor class which allows access to the Java Servlet javax.servlet.http.HttpServletRequest class. Implementation state:

Version:
0.9

Nested Class Summary
static class Request.CookiesObj
          The CookiesObj class implementes the interface between the ASP Request.Cookies object and the Servlet API.
static class Request.FormObj
          The FormObj class implements the interface between ASP Request.Form object and the Servlet API.
static class Request.QueryStringObj
          QueryStringObj implements the Request.QueryString object.
static class Request.ServerVariablesObj
          The ServerVariablesObj implemnets the Request.ServerVariables object, containing a list of server variables.
 
Field Summary
 Request.CookiesObj Cookies
          Cookies sub-object
private static org.apache.log4j.Category DBG
          Debugging category
 Request.FormObj Form
          Form sub-object
 Request.QueryStringObj QueryString
          QueryString sub-object
(package private)  javax.servlet.http.HttpServletRequest request
          Java servlet request object
 Request.ServerVariablesObj ServerVariables
          ServerVariables sub-object
 
Constructor Summary
Request(javax.servlet.http.HttpServletRequest request)
          Constructor.
 
Method Summary
 byte[] BinaryRead(int length)
          Read the data from the form.
 java.lang.Object get(java.lang.Object obj)
          SimpleMap interface, obtains the value of an object stored in one of the sub objects, in the following order: QueryString, Form, Cookies, ServerVariables.
 javax.servlet.http.HttpServletRequest getHttpServletRequest()
          This unsupported ASP-accessible function obtains the HttpServletRequest object that this Request object points to.
 java.util.Enumeration getKeys()
          Obtains the list of keys in this object.
 void put(java.lang.Object key, java.lang.Object value)
          Stores a value in this object.
 int TotalBytes()
          Obtain the content length of the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DBG

private static org.apache.log4j.Category DBG
Debugging category


request

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


QueryString

public Request.QueryStringObj QueryString
QueryString sub-object


ServerVariables

public Request.ServerVariablesObj ServerVariables
ServerVariables sub-object


Form

public Request.FormObj Form
Form sub-object


Cookies

public Request.CookiesObj Cookies
Cookies sub-object

Constructor Detail

Request

public Request(javax.servlet.http.HttpServletRequest request)
        throws AspException
Constructor.

Method Detail

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest()
This unsupported ASP-accessible function obtains the HttpServletRequest object that this Request object points to.


get

public java.lang.Object get(java.lang.Object obj)
                     throws AspException
SimpleMap interface, obtains the value of an object stored in one of the sub objects, in the following order: QueryString, Form, Cookies, ServerVariables.

Specified by:
get in interface SimpleMap

put

public void put(java.lang.Object key,
                java.lang.Object value)
         throws AspException
Stores a value in this object. This method will always throw a AspReadOnlyException error.

Specified by:
put in interface SimpleMap

getKeys

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

Specified by:
getKeys in interface SimpleMap

TotalBytes

public int TotalBytes()
Obtain the content length of the request.


BinaryRead

public byte[] BinaryRead(int length)
                  throws java.io.IOException
Read the data from the form.