Abstract-Requests

From Plex-XML

Jump to: navigation, search

You could use the <abstract-request> element to define a parameter structure that should be reused in different web-requests.

Each <parameter> or <plex-parameter> element that is defined in the <abstract-request> element will extend the request parameter in each request that refers to that <abstract-request> by using the extends attribute.


Example for a <abstract-request> element:

  <abstract-request name="base">
    <plex-parameter type="web" name="ControlInput_StylesheetType">style</plex-parameter>
    <plex-parameter type="web" name="ControlInput_RequestID">rid</plex-parameter>
  </abstract-request>


Example for a <webrequest> that uses the 'base' abstract-request:

  <webrequest name="request">
    <request name="request" extends="base">
      <plex-parameter type="web" name="Input_Example" index="*">Example</plex-parameter>
      ...
Personal tools