A RESTful browser for eXist Java-Based Function Modules


http://exist-db.org/xquery/request
A module for dealing with HTTP requests.

request:get-parameter($name as xs:string, $default-value as item()*) xs:string*
Returns the HTTP request parameter identified by $name. If the parameter could not be found, the default value is returned instead. Note: this function will not try to expand predefined entities like & or <, so a & passed through a parameter will indeed be treated as an & character.
$nameThe parameter name
$default-valueThe default value if the parameter does not exist

Returns the parameter value

request:get-parameter($name as xs:string, $default-value as item()*, $failonerror as xs:boolean*) xs:string*
Returns the HTTP request parameter identified by $name. If the parameter could not be found, the default value is returned instead. Note: this function will not try to expand predefined entities like & or <, so a & passed through a parameter will indeed be treated as an & character.
$nameThe parameter name
$default-valueThe default value if the parameter does not exist
$failonerrorThe fail on error flag. If the value is set to false, then the function will not fail if there is no request in scope.

Returns the parameter value
Return to list of all modules