<?xml version="1.0"?>
-<!-- imagined config for yp2..
- The router system understands yp2, sequence and filter elements.
- Everything else interpreted by filters.
- Each filter is invoked in a sequence (unless a filter invokes another
- sequence.. A start sequence must be determined somehow.
- -->
-<yp2>
- <sequence name="start">
- <filter type="frontend-net"> <!-- the Z39.50/HTTP frontend -->
- <port>210</port>
+<metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
+ <!-- Z39.50 proxy which relays to target specified in Init otherinfo
+ (VAL_RPOXY). If no target is given, it relays to target
+ z3950.indexdata.dk -->
+ <start route="start"/>
+ <filters>
+ <filter id="frontend" type="frontend_net">
+ <threads>10</threads>
+ <port>@:9000</port>
+ <message>FN</message>
</filter>
- <filter type="log"> <!-- apply logging always -->
- <logfile>mylog.log</logfile>
+ <filter id="backend" type="z3950_client">
+ <timeout>30</timeout>
+ <default_target>localhost:9999</default_target>
+ <force_close>true</force_close>
</filter>
- <filter type="cond"> <!-- conditional -->
- <invoke sequence="public"> <!-- invoke public sequence for some db -->
- port=210 and db="public"
- </invoke>
- </filter>
- <filter name="reject"> <!-- reject .. -->
- </filter>
- </sequence>
- <sequence name="public">
- <filter type="z3950-client">
- <target>localhost:9999/A</target>
- </filter>
- </sequence>
-</yp2>
+ </filters>
+ <routes>
+ <route id="start">
+ <filter refid="frontend"/>
+ <filter type="log">
+ <message>log</message>
+ </filter>
+ <filter type="sd_remove"/>
+ <filter refid="backend"/>
+ <filter type="bounce"/>
+ </route>
+ </routes>
+</metaproxy>
-<!-- observation: the logic could be controlled by a XSLT! -->