jasp.buildin
Class Request

java.lang.Object
  |
  +--jasp.buildin.Request

public class Request
extends java.lang.Object

The Request object retrieves the values that the client browser passed to the server during an HTTP request.


Constructor Summary
Request()
           
 
Method Summary
static byte[] BinaryRead(int len)
          Gets data sent to the server from the client as part of a POST request.
static IStringDictionary ClientCertificate()
          Gets the ClientCertificate Collection
static IStringList ClientCertificate(java.lang.String key)
          Gets the certificate of the Certificate Collection.
static ICookiesDictionary Cookies()
          Gets the Cookies Collection
static IReadCookie Cookies(java.lang.String key)
          Gets the cookie from the Cookies Collection.
static IStringDictionary Form()
          Gets the Form Collection
static IStringList Form(int index)
          Gets the value of the item of the Form Collection.
static IStringList Form(java.lang.String key)
          Gets the value of the item of the Form Collection.
static variant getItem(java.lang.String key)
          Gets an item from the Collection.
static int getTotalBytes()
          Gets the total number of bytes the client is sending in the body of the request.
static IStringDictionary QueryString()
          Gets the QueryString Collection
static IStringList QueryString(int index)
          Gets the value of the item of the QueryString Collection.
static IStringList QueryString(java.lang.String key)
          Gets the value of the item of the Form Collection.
static jasp.buildin.ASPRequest request()
          Returns a Request instance.
static IStringDictionary ServerVariables()
          Gets the ServerVariables Collection
static IStringList ServerVariables(int index)
          Gets the value of the item of the ServerVariables Collection.
static IStringList ServerVariables(java.lang.String key)
          Gets the value of the item of the ServerVariables Collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request

public Request()
Method Detail

request

public static jasp.buildin.ASPRequest request()
Returns a Request instance.

getTotalBytes

public static int getTotalBytes()
Gets the total number of bytes the client is sending in the body of the request.
Returns:
the total number of bytes.

BinaryRead

public static byte[] BinaryRead(int len)
                         throws java.lang.Exception
Gets data sent to the server from the client as part of a POST request.
Returns:
the data

getItem

public static variant getItem(java.lang.String key)
Gets an item from the Collection. If the specified variable is not in one of the preceding five collections, the Request object returns EMPTY. All variables can be accessed directly by calling Request(variable) without the collection name. In this case, the Web server searches the collections in the following order.
  1. QueryString
  2. Form
  3. Cookies
  4. ClientCertificate
  5. ServerVariables
Parameters:
key - the name of the item.
Returns:
the value of the item.

Cookies

public static IReadCookie Cookies(java.lang.String key)
Gets the cookie from the Cookies Collection.
Parameters:
key - the name of the cookie.
Returns:
the cookie.

ClientCertificate

public static IStringList ClientCertificate(java.lang.String key)
                                     throws java.lang.Exception
Gets the certificate of the Certificate Collection.
Parameters:
key - the name of the certificate.
Returns:
the certificate.

Form

public static IStringList Form(java.lang.String key)
                        throws java.lang.Exception
Gets the value of the item of the Form Collection.
Parameters:
key - the name of the item.
Returns:
the value of the item.

Form

public static IStringList Form(int index)
                        throws java.lang.Exception
Gets the value of the item of the Form Collection.
Parameters:
index - the index of item.
Returns:
the value of the item.

QueryString

public static IStringList QueryString(int index)
                               throws java.lang.Exception
Gets the value of the item of the QueryString Collection.
Parameters:
index - the index of item.
Returns:
the value of the item.

QueryString

public static IStringList QueryString(java.lang.String key)
                               throws java.lang.Exception
Gets the value of the item of the Form Collection.
Parameters:
index - the name of the item.
Returns:
the value of the item.

ServerVariables

public static IStringList ServerVariables(java.lang.String key)
                                   throws java.lang.Exception
Gets the value of the item of the ServerVariables Collection.
Parameters:
index - the name of the server variable.
Returns:
the value of the item.

ServerVariables

public static IStringList ServerVariables(int index)
                                   throws java.lang.Exception
Gets the value of the item of the ServerVariables Collection.
Parameters:
index - the index of the server variable in ServerVariables Collection
Returns:
the value of the item.

Form

public static IStringDictionary Form()
Gets the Form Collection
Returns:
the Form Collection

QueryString

public static IStringDictionary QueryString()
Gets the QueryString Collection
Returns:
the QueryString Collection

Cookies

public static ICookiesDictionary Cookies()
Gets the Cookies Collection
Returns:
the Cookies Collection

ServerVariables

public static IStringDictionary ServerVariables()
Gets the ServerVariables Collection
Returns:
the ServerVariables Collection

ClientCertificate

public static IStringDictionary ClientCertificate()
Gets the ClientCertificate Collection
Returns:
the ClientCertificate Collection