aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/schema-test-files/standalone-container.xml
blob: 67793df880b09c537a49821e1542870c0282d9a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
<container id='qrsCluster_1' version='1.0'>

  <http>
    <filtering>
      <filter id="com.yahoo.YcaFilter" bundle="mybundle">
        <filter-config>
          <foo>bar</foo>
          <feature.enabled>true</feature.enabled>
        </filter-config>
      </filter>

      <response-chain id="BaseChain">
        <filter id="com.yahoo.Filter1" />
        <filter id="com.yahoo.Filter2">
          <filter-config />
        </filter>
        <binding>http://*/path1/*</binding>
        <binding>http://*/path2/*</binding>
      </response-chain>

      <request-chain id="DerivedChain" inherits="BaseChain" excludes="com.yahoo.Filter1">
        <filter id="com.yahoo.Filter3">
          <config name="container.core.http.http-filter">
            <param>
              <item>
                <name>yca.appid.allow</name>
                <value>yahoo.vespa_factory.yca_test</value>
              </item>
            </param>
          </config>
        </filter>
        <binding>http://*/path/*</binding>
      </request-chain>
    </filtering>

    <server port="4080" id="myServer" />
    <server port="4081" id="anotherServer" />
  </http>

  <document-api>
    <binding>http://*/document-api/</binding>
    <abortondocumenterror>false</abortondocumenterror>
    <retryenabled>false</retryenabled>
    <timeout>5.55</timeout>
    <route>default</route>
    <maxpendingdocs>100</maxpendingdocs>
  </document-api>

  <search>
    <searcher id='outer-searcher' />
    <chain id='common'>
      <searcher id='outer-searcher' />
      <searcher id='inner-searcher' />
    </chain>

    <provider id='yca-provider' type='vespa'>
      <nodes>
        <node host='sourcehost' port='12'/>
      </nodes>
    </provider>

    <chain id="parentchain" searchers="one two">
      <searcher id="three" />
      <inherits>
        <chain id="trope"/>
        <chain id="kanoo"/>
        <exclude id="notneededsearcher"/>
      </inherits>
    </chain>

    <chain id="achain" searchers="asearcher anothersearcher" inherits="wonkaparentchain" excludes="notneededsearcher"/>
  </search>

  <processing>
    <processor id='processor1' class='com.yahoo.test.Processor1' />
    <chain id='default'>
      <processor idref='processor1'/>
      <processor id='processor2' class='com.yahoo.test.Processor2'/>
    </chain>
  </processing>

  <handler id="bla" class="foo" bundle="bar" />
  <config name="foo">
    <intVal>0</intVal>
    <basicstruct>
      <bsInt>1</bsInt>
      <bsString>Hello</bsString>
    </basicstruct>
  </config>

  <handler id="jdisc-handler">
    <binding>http://*:*/HelloWorld</binding>
    <binding>http://*:*/Status</binding>
  </handler>

  <server id="server-provider" />

</container>