1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <module> |
---|
3 | <identity> |
---|
4 | <uri>urn:org:isocat:schemacat:interface:rest</uri> |
---|
5 | <version>1.0.0</version> |
---|
6 | </identity> |
---|
7 | <info> |
---|
8 | <name>RR</name> |
---|
9 | <description>Schema Registry REST interface</description> |
---|
10 | <type>application</type> |
---|
11 | </info> |
---|
12 | <publisher> |
---|
13 | <name>The ISOcat/SCHEMAcat project</name> |
---|
14 | <uri>http://www.isocat.org/schemacat/</uri> |
---|
15 | </publisher> |
---|
16 | <licence> |
---|
17 | <name>COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0</name> |
---|
18 | <uri>http://www.opensource.org/licenses/cddl1.php</uri> |
---|
19 | </licence> |
---|
20 | <export> |
---|
21 | <uri> |
---|
22 | <!-- configuration --> |
---|
23 | <match>ffcpl:/etc/HTTPBridgeConfig.xml</match> |
---|
24 | <!-- NK internal documentation --> |
---|
25 | <match>ffcpl:/entrypoints.xml</match> |
---|
26 | <match>ffcpl:/mod_SCHEMAcat_interface_rest/icon.jpg</match> |
---|
27 | <match>ffcpl:/mod_SCHEMAcat_interface_rest/doc/.*</match> |
---|
28 | <match>active:relcat\.interface\.rest.*</match> |
---|
29 | <!-- REST external URI interface --> |
---|
30 | <match>ffcpl:/isocat/schemacat/rest/.*</match> |
---|
31 | <match>ffcpl:/isocat/schemacat/.*</match> |
---|
32 | <match>ffcpl:/schemacat/rest/.*</match> |
---|
33 | <match>ffcpl:/schemacat/.*</match> |
---|
34 | </uri> |
---|
35 | <class/> |
---|
36 | </export> |
---|
37 | <rewrite> |
---|
38 | <!-- handle isocat prefix --> |
---|
39 | <rule> |
---|
40 | <match>ffcpl:/isocat/(.*)</match> |
---|
41 | <to>ffcpl:/$1</to> |
---|
42 | </rule> |
---|
43 | <!-- handle schemacat/rest prefix --> |
---|
44 | <rule> |
---|
45 | <match>ffcpl:/schemacat/rest/(.*)</match> |
---|
46 | <to>ffcpl:/schemacat/$1</to> |
---|
47 | </rule> |
---|
48 | |
---|
49 | <!-- handle friends of index.html --> |
---|
50 | <rule> |
---|
51 | <match>ffcpl:/schemacat/index.htm((\+.*)?)</match> |
---|
52 | <to>ffcpl:/schemacat/index.html</to> |
---|
53 | </rule> |
---|
54 | <rule> |
---|
55 | <match>ffcpl:/schemacat/((\+.*)?)</match> |
---|
56 | <to>ffcpl:/schemacat/index.html</to> |
---|
57 | </rule> |
---|
58 | <!-- redirect to the site index.html --> |
---|
59 | <rule> |
---|
60 | <match>ffcpl:/schemacat/index.html((\+.*)?)</match> |
---|
61 | <to>active:sloot.redirect+url@data:text/plain,./site/index.html</to> |
---|
62 | </rule> |
---|
63 | |
---|
64 | <!-- NK internal documentation --> |
---|
65 | <rule> |
---|
66 | <match>ffcpl:/mod_SCHEMAcat_interface_rest/icon.jpg</match> |
---|
67 | <to>ffcpl:/icon.jpg</to> |
---|
68 | </rule> |
---|
69 | <rule> |
---|
70 | <match>ffcpl:/mod_SCHEMAcat_interface_rest/doc/(.*)</match> |
---|
71 | <to>ffcpl:/doc/$1</to> |
---|
72 | </rule> |
---|
73 | <rule> |
---|
74 | <match>ffcpl:/doc/</match> |
---|
75 | <to>ffcpl:/doc/index.html</to> |
---|
76 | </rule> |
---|
77 | <!-- encode all special chars --> |
---|
78 | <rule> |
---|
79 | <match>ffcpl:([^+]+)(.*)</match> |
---|
80 | <to>ffcpl:$e1$2</to> |
---|
81 | </rule> |
---|
82 | <!-- move some path elements to arguments --> |
---|
83 | <rule> |
---|
84 | <match>ffcpl:(.*?/schema)/([^/.+]+)(.*)?</match> |
---|
85 | <to>ffcpl:$1$3+schema@data:text/plain,$2</to> |
---|
86 | </rule> |
---|
87 | <!-- for the external URI interface use the default mapper --> |
---|
88 | <rule> |
---|
89 | <match>(ffcpl:/schemacat/.*)</match> |
---|
90 | <to>active:mapper+operand@$1</to> |
---|
91 | </rule> |
---|
92 | </rewrite> |
---|
93 | <mapping> |
---|
94 | <!-- open up (virtual) file system --> |
---|
95 | <rewrite> |
---|
96 | <match>(ffcpl:/[^+]*).*</match> |
---|
97 | <to>$1</to> |
---|
98 | </rewrite> |
---|
99 | <this> |
---|
100 | <match>ffcpl:/.*</match> |
---|
101 | </this> |
---|
102 | <!-- NK imports --> |
---|
103 | <import> |
---|
104 | <uri>urn:org:ten60:netkernel:ext:layer1</uri> |
---|
105 | </import> |
---|
106 | <import> |
---|
107 | <uri>urn:org:ten60:netkernel:ext:xml:core</uri> |
---|
108 | </import> |
---|
109 | <import> |
---|
110 | <uri>urn:org:ten60:netkernel:ext:xml:ura</uri> |
---|
111 | </import> |
---|
112 | <import> |
---|
113 | <uri>urn:org:ten60:netkernel:ext:sys</uri> |
---|
114 | </import> |
---|
115 | <import> |
---|
116 | <uri>urn:org:ten60:netkernel:ext:dpml</uri> |
---|
117 | </import> |
---|
118 | <import> |
---|
119 | <uri>urn:org:ten60:netkernel:ext:script</uri> |
---|
120 | </import> |
---|
121 | <import> |
---|
122 | <uri>urn:org:ten60:netkernel:ext:kernel</uri> |
---|
123 | </import> |
---|
124 | <import> |
---|
125 | <uri>urn:org:ten60:netkernel:ext:xquery</uri> |
---|
126 | </import> |
---|
127 | <import> |
---|
128 | <uri>urn:org:ten60:netkernel:ext:xrl</uri> |
---|
129 | </import> |
---|
130 | <import> |
---|
131 | <uri>urn:org:ten60:netkernel:ext:http:client</uri> |
---|
132 | </import> |
---|
133 | <import> |
---|
134 | <uri>urn:sloot</uri> |
---|
135 | </import> |
---|
136 | <!-- propagate NK import --> |
---|
137 | <super/> |
---|
138 | </mapping> |
---|
139 | </module> |
---|