OpenWGA 7.10 - TMLScript reference

WGA
Object:

WGA.Call

Description

Information about the current HTTP call that initialized the current environment.

The object reads data of the request and is able to influence the response, if possible on the environment. If no call is available on the environment there is no data returned.

Retrieval Global object WGA.Call
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Properties and methods
Name Purpose
addCookie(name, value)
addCookie(cookie)

Adds a new cookie to the call, so it will be send to the client.
- DEPRECATED in 7.8.1 -

createCookie(name[, value]) Creates a new HTTP cookie, which is not yet assigned to the HTTP-Response object.
getCookie(name) Returns a HTTP Cookie object
getParam(name) Returns the (first) value of a request parameter
getParamNames() Returns the names of all available call (request) parameters
getRequestHeader(name) Returns the content of a HTTP header from the request
removeCookie(cookie) Removes a cookie from the call, so it will be deleted on the client.
setResponseHeader(name, value) Sets a header on the HTTP response