|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.helma.web.Request
public class Request
This class represents a HTTP Request. The current Request object can be accessed as global variable req.
| Field Summary |
|---|
| Fields inherited from class org.mozilla.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface org.mozilla.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
Request()
|
|
Request(java.lang.Object request)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getClassName()
|
protected org.mozilla.javascript.Scriptable |
getJsArray(java.util.Enumeration en)
|
protected org.mozilla.javascript.Scriptable |
getJsArray(java.lang.Object[] arr)
|
java.lang.Object |
jsFunction_getCookies()
Returns a JavaScript array containing the request's cookies as *servlet cookie|http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/http/Cookie.html* instances. |
java.lang.Object |
jsFunction_getDateHeader(java.lang.String name)
Returns the value of the specified request header as Date object. |
java.lang.String |
jsFunction_getHeader(java.lang.String name)
Returns the value of the specified request header as String. |
java.lang.Object |
jsFunction_getHeaders(java.lang.String name)
Returns the value of the specified request header as JavaScript array of Strings. |
int |
jsFunction_getIntHeader(java.lang.String name)
Returns the value of the specified request header as integer number. |
java.lang.String |
jsFunction_getParameter(java.lang.String name)
Returns the value of a request parameter as a String, or null if the parameter does not exist. |
java.lang.Object |
jsFunction_getParameters(java.lang.String name)
Returns an array of Strings containing all of the values the given request parameter has, or null if the parameter does not exist. |
java.lang.Object |
jsGet_cookies()
A JavaScript object reflecting the request's HTTP cookies. |
java.lang.Object |
jsGet_data()
A JavaScript object reflecting the HTTP parameters of this request. |
java.lang.Object |
jsGet_headers()
A JavaScript object reflecting the headers of this request. |
java.lang.String |
jsGet_host()
The host name of the server that received the request. |
java.lang.String |
jsGet_method()
Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT. |
java.lang.Object |
jsGet_params()
A JavaScript object reflecting the HTTP parameters of this request. |
java.lang.String |
jsGet_path()
The request's URI path, as passed in the first line of the HTTP request. |
java.lang.String |
jsGet_pathInfo()
Returns any extra path information associated with the URL the client sent when it made this request. |
java.lang.String |
jsGet_pathTranslated()
Returns any extra path information after the servlet name but before the query string, and translates it to a real path. |
int |
jsGet_port()
The port number on which this request was received. |
java.lang.String |
jsGet_protocol()
The name and version of the protocol the request uses in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1. |
java.lang.String |
jsGet_queryString()
The request's unparsed query string, or null if the request contains no query string. |
java.lang.String |
jsGet_scheme()
The name of the scheme used to make this request, for example, http, https, or ftp. |
java.lang.Object |
jsGet_servletRequest()
Get the servlet request as a wrapped java object |
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
|---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Request()
public Request(java.lang.Object request)
| Method Detail |
|---|
public java.lang.Object jsGet_servletRequest()
public java.lang.String jsGet_host()
public int jsGet_port()
public java.lang.String jsGet_method()
public java.lang.String jsGet_pathInfo()
public java.lang.String jsGet_pathTranslated()
public java.lang.String jsGet_protocol()
public java.lang.String jsGet_scheme()
public java.lang.String jsGet_path()
public java.lang.String jsGet_queryString()
public java.lang.String jsFunction_getHeader(java.lang.String name)
name - the header name
public java.lang.Object jsFunction_getHeaders(java.lang.String name)
name - the header name
public java.lang.Object jsFunction_getDateHeader(java.lang.String name)
name - the header name
public int jsFunction_getIntHeader(java.lang.String name)
name - the header name
public java.lang.Object jsGet_headers()
public java.lang.String jsFunction_getParameter(java.lang.String name)
name - the parameter name
public java.lang.Object jsFunction_getParameters(java.lang.String name)
name - the parameter name
public java.lang.Object jsGet_params()
public java.lang.Object jsGet_data()
public java.lang.Object jsFunction_getCookies()
public java.lang.Object jsGet_cookies()
public java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectprotected org.mozilla.javascript.Scriptable getJsArray(java.util.Enumeration en)
protected org.mozilla.javascript.Scriptable getJsArray(java.lang.Object[] arr)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||