java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.wso2.mashup.hostobjects.request.Request
public class Request
| 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() |
|
| Method Summary | |
|---|---|
java.lang.String |
getClassName() |
void |
jsConstructor()This is a JavaScript Rhino host object aimed to provide information regarding the request it received and hence it consists of a set of readOnly properties. |
java.lang.String |
jsGet_address()Returns the remoteIP that the request was made from. |
java.lang.String |
jsGet_authenticatedUser()Appplicable to Mashups that are secured using scecurity scenario 1 (UsernameToken with Timestamp over HTTPS). |
java.lang.String |
jsGet_remoteIP()Appplicable to Mashups that are secured using scecurity scenario 1 (UsernameToken with Timestamp over HTTPS). |
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
|---|
associateValue, callMethod, callMethod, defineClass,
defineClass, defineClass, defineConst, defineConstProperty,
defineFunctionProperties, defineProperty, defineProperty,
defineProperty, defineProperty, delete, delete, deleteProperty,
deleteProperty, 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, isSealed,
put, put, putConst, putConstProperty, putProperty, putProperty,
redefineProperty, sealObject, setAttributes, setAttributes,
setAttributes, setAttributes, setGetterOrSetter, setParentScope,
setPrototype |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString,
wait, wait, wait |
| Constructor Detail |
|---|
public Request()
| Method Detail |
|---|
public java.lang.String getClassName()
getClassName in interface
org.mozilla.javascript.ScriptablegetClassName in class
org.mozilla.javascript.ScriptableObjectpublic void jsConstructor()
public java.lang.String jsGet_authenticatedUser()
throws org.wso2.mashup.MashupFault
var authenticatedUser = system.authenticatedUser;
org.wso2.mashup.MashupFault - Thrown in case any
exceptions occur
public java.lang.String jsGet_remoteIP()
throws org.wso2.mashup.MashupFault
var remoteIP = system.remoteIP;
org.wso2.mashup.MashupFault - Thrown in case any
exceptions occur
public java.lang.String jsGet_address()
throws org.wso2.mashup.MashupFault
var requestURL = system.address;
org.wso2.mashup.MashupFault - Thrown in case any
exceptions occur