request:get-context-path
request:get-context-path() as xs:string
Returns the context path of the current request, i.e. the portion of the request URI that indicates the context of the request.
- Returns:
- xs:string : the context path of the current request
request:get-data
request:get-data() as item()?
Returns the content of a POST request. If the HTTP Content-Type header in the request identifies it as a binary document, then xs:base64Binary is returned. If its not a binary document, we attempt to parse it as XML and return a document-node(). If its not a binary or XML document, any other data type is returned as an xs:string representation or an empty sequence if there is no data to be read.
- Returns:
- item()? : the content of a POST request
request:get-parameter
request:get-parameter($name as xs:string, $default-value as item()*) as 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.
- Parameters:
-
$name |
The parameter name |
$default-value* |
The default value if the parameter does not exist |
- Returns:
- xs:string* : a sequence of parameter values
request:get-parameter
request:get-parameter($name as xs:string, $default-value as item()*, $failonerror as xs:boolean*) as 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.
- Parameters:
-
$name |
The parameter name |
$default-value* |
The default value if the parameter does not exist |
$failonerror* |
The 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:
- xs:string* : a sequence of parameter values
request:is-multipart-content
request:is-multipart-content() as xs:boolean
Determine if the request contains multipart/form-data
- Returns:
- xs:boolean : true is the request is a multipart/form-data request else false.