http-bridge-config
Dyncamically generate HTTP Bridge configuration
Index > Books > Declarative Development Guide > Reference Library > Accessor Listing > http-bridge-config

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Module

urn:org:ten60:netkernel:tpt:http

Definition

Active URI Base

active:http-bridge-config

Format

active:http-bridge-config+module@urn:org:myorg:myfulcrum+version@version:1.0.0

Syntax

ArgumentRulesDescription
typeMandatory http-bridge-config
moduleMandatory the uri of the module from which the config process should start
versionOptional optional version uri (eg version:1.0.0)

The http-bridge-config accessor dynamically generates an HTTPBridgeConfig document. for the HTTP Bridge accessor. The http-bridge-config accessor is used by mapping Fulcrum requests for ffcpl:/etc/HTTPBridgeConfig.xml to this accessor which is a dynamically evaluated service to build a pseudo static config from all of the imported modules of the module specified in the module argument.

Deployment

In your fulcrum module which imports the tpt-http module use the following rewrite rule. Note: this rewrite rule must go in the mapping section of the module definition and not the rewrite section!

<rewrite>
  <match>ffcpl:/etc/HTTPBridgeConfig.xml</match>
  <to>active:http-bridge-config+module@[urn of your fulcrum module][+version@version of your fulcrum module]</to>
</rewrite>

Operation

The dynamic evaluation of the HTTPBridgeConfig goes as follows.

  1. First try to find ffcpl:/etc/DefaultHTTPBridgeConfig.xml to use as a default template if this is not found then create an empty template.
  2. Find all imported modules for the specified fulcrum module (optionally use version if provided as argument).
  3. Iterate through imported modules - try to find ffcpl:/etc/HTTPBridgeConfig.xml in each module. If it is found then add all of it's HTTPBridge zones to the template.
  4. Finally add a default zone
    <zone>  <match>.*</match>
      <processQueries />
      <passCookies />
    </zone>

Notes: Zones which match .* will not be added to the merged config. Only the final default zone is allowed to match .*

© 2003-2005, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.