Request Host Object
1.0 Introduction
The 'request' host object provides the ability for users to get information regarding the request it received and hence it consists of a set of readOnly properties. The request object is global and thus does not need to be instantiated explicitly. The request host object was introduced in vertion 1.5 of the Mashup Server.
1.1 Example
function securedUsingUTOverHTTPS() {
system.log("This mashup was invoked by the following User : " + request.authenticatedUser );
system.log("This mashup was invoked from the following IP : " + request.remoteIP );
system.log("This mashup was invoked with the following URL : " + request.address );
}
2.0 Request Object
2.1 Request Object Interface
{
readonly property string address;
readonly property string remoteIP;
readonly property string authenticatedUser;
}
2.2 API Documentation
| Member | Description | Supported in version |
| readonly property string address; | Returns the URL corresponding to the request a s a String var requestURL = system.address; |
1.5 |
| readonly property string remoteIP; | Returns the remoteIP that the request was made from. var remoteIP = system.remoteIP; | 1.5 |
| readonly property string authenticatedUser; | Appplicable to Mashups that are secured using scecurity scenario 1 (UsernameToken with Timestamp over HTTPS). This method will return the username of the user who called this mashup. var authenticatedUser = system.authenticatedUser; | 1.5 |