|
|||||||||
| Home >> All >> com >> tripi >> [ asp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.tripi.asp
Class Request

java.lang.Objectcom.tripi.asp.Request
- All Implemented Interfaces:
- SimpleMap
- public class Request
- extends java.lang.Object
- implements SimpleMap
- extends java.lang.Object
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:
- Cookies - Implemented. Note does not support cookies like "VALUE=First&VALUE=Second", does support cookies like "VALUE1=First&VALUE2=Second".
- Form - Fully implemented.
- QueryString - Fully implemented.
- ServerVariables - Fully implemented.
- TotalBytes - Fully implemented.
- BinaryRead - Fully implemented.
- 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.
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.
getKeys
public java.util.Enumeration getKeys() throws AspException
- Obtains the list of keys in this object. Not currently implemented.
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.
|
|||||||||
| Home >> All >> com >> tripi >> [ asp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.tripi.asp.Request