Simple implementation of
javax.servlet.ServletRequest.
and
javax.servlet.http.HttpServletRequest
.- Source:
- See:
Requires
Methods
(static) getCookies() → (non-null) {Array.<!Object>}
Returns an
Array
of all the cookies included
with this request.
- Source:
Returns:
- Type:
-
Array.<!Object>
Returns an
Array
of all the cookies
included with this request.
(static) getParameter(name, opt_location) → {string}
Returns the value of a request parameter as a
string
, or empty
string
if the parameter does not exist.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
A string specifying the name of the
parameter.
|
opt_location |
Element
|
Location
|
string
|
Optional location object. |
Returns:
- Type:
-
string
Returns a
string
representing the single
value of the parameter.
(static) getParameterMap(opt_location) → (non-null) {Object.<string, string>}
Returns a map of the parameters of this request including parameters from
parsed from query string and hash.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
opt_location |
Element
|
Location
|
URL
|
string
|
Optional location. |
Returns:
- Type:
-
Object.<string, string>
Map containing parameter names as keys
and parameter values as map values.
(static) getParameterNames(opt_location) → (non-null) {Array.<string>}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
opt_location |
Element
|
Location
|
string
|
Optional location object. |
Returns:
- Type:
-
Array.<string>
Returns an
Array
of
string
objects, each string
containing the name
of a request parameter; or an empty Array
if the request has
no parameters.
(static) getQueryString(opt_location) → {string}
Returns the query string that is contained in the request URL after the
path.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
opt_location |
Element
|
Location
|
URL
|
string
|
Optional location object. |
Returns:
- Type:
-
string
Returns the query string that is contained in the request
URL after the path.