neutron now works with jetty
[controller.git] / karaf / opendaylight-karaf-resources / src / main / resources / etc / jetty.xml
1 <?xml version="1.0"?>
2 <!--
3  Licensed to the Apache Software Foundation (ASF) under one
4  or more contributor license agreements.  See the NOTICE file
5  distributed with this work for additional information
6  regarding copyright ownership.  The ASF licenses this file
7  to you under the Apache License, Version 2.0 (the
8  "License"); you may not use this file except in compliance
9  with the License.  You may obtain a copy of the License at
10
11    http://www.apache.org/licenses/LICENSE-2.0
12
13  Unless required by applicable law or agreed to in writing,
14  software distributed under the License is distributed on an
15  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  KIND, either express or implied.  See the License for the
17  specific language governing permissions and limitations
18  under the License.
19 -->
20 <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//
21 DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
22
23 <Configure class="org.eclipse.jetty.server.Server">
24
25     <!-- =========================================================== -->
26     <!-- Set connectors -->
27     <!-- =========================================================== -->
28     <!-- One of each type! -->
29     <!-- =========================================================== -->
30
31     <!-- Use this connector for many frequently idle connections and for
32         threadless continuations. -->
33     <Call name="addConnector">
34         <Arg>
35             <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
36                 <Set name="host">
37                     <Property name="jetty.host" />
38                 </Set>
39                 <Set name="port">
40                     <Property name="jetty.port" default="8181" />
41                 </Set>
42                 <Set name="maxIdleTime">300000</Set>
43                 <Set name="Acceptors">2</Set>
44                 <Set name="statsOn">false</Set>
45                 <Set name="confidentialPort">8543</Set>
46                 <Set name="lowResourcesConnections">20000</Set>
47                 <Set name="lowResourcesMaxIdleTime">5000</Set>
48             </New>
49         </Arg>
50     </Call>
51     <Call name="addConnector">
52       <Arg>
53         <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
54           <Set name="host">
55             <Property name="jetty.host" />
56           </Set>
57           <Set name="port">
58             <Property name="jetty.port" default="8080" />
59           </Set>
60           <Set name="maxIdleTime">300000</Set>
61           <Set name="Acceptors">2</Set>
62           <Set name="statsOn">false</Set>
63           <Set name="confidentialPort">8443</Set>
64           <Set name="lowResourcesConnections">20000</Set>
65           <Set name="lowResourcesMaxIdleTime">5000</Set>
66         </New>
67       </Arg>
68     </Call>
69
70     <!-- =========================================================== -->
71     <!-- Configure Authentication Realms -->
72     <!-- Realms may be configured for the entire server here, or -->
73     <!-- they can be configured for a specific web app in a context -->
74     <!-- configuration (see $(jetty.home)/contexts/test.xml for an -->
75     <!-- example). -->
76     <!-- =========================================================== -->
77     <Call name="addBean">
78         <Arg>
79             <New class="org.eclipse.jetty.plus.jaas.JAASLoginService">
80                 <Set name="name">karaf</Set>
81                 <Set name="loginModuleName">karaf</Set>
82                 <Set name="roleClassNames">
83                     <Array type="java.lang.String">
84                         <Item>org.apache.karaf.jaas.boot.principal.RolePrincipal
85                         </Item>
86                     </Array>
87                 </Set>
88             </New>
89         </Arg>
90     </Call>
91     <Call name="addBean">
92         <Arg>
93             <New class="org.eclipse.jetty.plus.jaas.JAASLoginService">
94                 <Set name="name">default</Set>
95                 <Set name="loginModuleName">karaf</Set>
96                 <Set name="roleClassNames">
97                     <Array type="java.lang.String">
98                         <Item>org.apache.karaf.jaas.boot.principal.RolePrincipal
99                         </Item>
100                     </Array>
101                 </Set>
102             </New>
103         </Arg>
104     </Call>
105
106 </Configure>