OpenWGA 7.10 - OpenWGA Concepts and Features

Publishing » Media keys

Defining media keys

Media keys in OpenWGA 5 are exclusively defined in the configuration of an OpenWGA design. Any media key that you create WebTML modules for must be declared here.

In OpenWGA Developer Studio simply double-click the design.xml to open the configuration. There switch to tab mappings where you should see a table with title media keys. The table consists of the following columns

  • Key (String): The name of the media key

  • Mime type (String): Type of the output format as MIME type. For example:"text/html", "text/xml", "application/pdf"

  • Binary output (Boolean): Determines if the WebTML modules of this media key produces only binary output and no textual output. This is possible by using WebTML elements in the layout that produce this type of output.
  • Use HTTP login (Boolean): This marks media keys for which OpenWGA should use plain HTTP-based login. Normally OpenWGA uses a special HTML login form and to authenticate users and a J2EE session cookie to keep them authenticated. This may not work with some clients (RSS Feed Readers for example) that are not capable of presenting this login form or managing cookies. For media keys that are determined for these kind of clients you may enable HTTP login which sends a special HTTP header to the client to request login information and makes the client send this information again with each request. This is is less secure than the default login scheme though.