Object | +--req
| SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods |
| Properties Summary | |
String |
action
Contains the name of the requested action The name without the suffix '_action' is provided. |
Object |
data
Object containing any request parameters (GET, POST, Cookies, etc) and HTTP environmental variables. |
String |
method
Returns the HTTP method (in uppercase letters) of the current request. |
String |
password
Returns the decrypted basic authentication password. |
String |
path
Contains the path of the current request, relative to the application's mountpoint. |
Number |
runtime
Returns the running time of the current request in milliseconds Provides the amount of time that has elapsed since the start of the processing of the current request, measured in milliseconds (integer). |
String |
username
Contains the decrypted basic authentication username. |
| Methods Summary | |
void
|
get(<String> name)
An alternative method of accessing properties otherwise made available through the req.data object. |
HttpServletRequest
|
getServletRequest()
Provides access to the HttpServletRequest object Returns an instance of the Java HttpServletRequest Class corresponding to the current request, which allows full access to the methods of that class. |
Boolean
|
isGet()
Returns true if the current request is a HTTP GET request, false otherwise. |
Boolean
|
isPost()
Returns true if the current request is a HTTP POST request, false otherwise. |
| Properties Detail |
String action
res.write(req.action); edit
Object data
String method
String password
String path
Number runtime
String username
| Method Detail |
void get(<String> name)
name - as String, the request data property to read
HttpServletRequest getServletRequest()
Boolean isGet()
Boolean isPost()
| SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods |