Documentation Center

Customizing the handling of an HTTP request

You can customize the way in which the Ambient Data Framework handles an HTTP request.

Procedure

  1. Open the cd_ambient_conf.xml in a plain-text or XML editor.
  2. Insert a Security element directly above the Cartridges element in this file (or, if you added it, directly above the <InstanceID> element).
  3. In the Security element, add the following:
    • A <WWW-Authenticate> element. This element must contain the message you wish to return in response to unauthorized HTTP requests.
    • A <RequestValidator> element, which contains a Java class you implemented, and which the Ambient Data Framework calls before it begins its claim processing. Your Java class must implement the com.tridion.ambientdata.web.RequestValidator interface.
  4. Save and close cd_ambient_conf.xml.