The Context holds information about the request, response,
session, and user.
Methods
Creates and returns a new session.
| Throws |
AccessDenied -
If security policy denies this operation
|
Gets, and authenticates, specified user.
| Parameters |
username -
Username
credentials -
Credentials
|
| Returns |
citizen, or null if authentication failed |
| Throws |
AccessDenied -
If security policy denies this operation
|
Returns an URL that can be used for creating events.
For example: <a href=${context.getLinkUrl("click","true")}>click</a>
Returns, for example "/$hsyukrxkrxjemljuhaow/components/test/index.nvl?root_foo.click=true"
| Parameters |
name -
name of event
value -
value of event
params -
array of event names and values
|
| Returns |
an URL that can be used for creating events |
Returns the specified session from container, or creates new one with given id.
| Throws |
AccessDenied -
If security policy denies this operation
|
Returns the authentication realm used.
| Throws |
AccessDenied -
If security policy denies this operation
|
If dispatcher is set for zone, returns the extra part after
zone's path. Returned value always starts with slash (/).
Returns the specified session from container, or null if it didn't exist
| Throws |
AccessDenied -
If security policy denies this operation
|
Gets named tribe from current realm, if any.
| Parameters |
name -
Tribe name
|
| Returns |
tribe, or null if no tribe with given name were found |
| Throws |
AccessDenied -
If security policy denies this operation
|
Returns the zone that received this request.
| Throws |
AccessDenied -
If security policy denies this operation
|
Sets the citizen for current session
| Throws |
AccessDenied -
If security policy denies this operation
|
Sets the pointed resource.
Attributes
Session for the request, if enabled.
Authorized user, if enabled.
HTTP request.
HTTP response.
Named parameters from request.
References
Named parameters from request.