Debian Codegraph @

jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-webapp-as-service.xml

raw symbols SCIP
1 <?xml version="1.0"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd">
2
3 <!-- ============================================================= -->
4 <!-- Configure the Jetty Server instance with an ID "Server" -->
5 <!-- by adding an HTTP connector. -->
6 <!-- This configuration must be used in conjunction with jetty.xml -->
7 <!-- ============================================================= -->
8 <Configure id="Server" class="org.eclipse.jetty.server.Server">
9
10 <!-- =========================================================== -->
11 <!-- Add an HTTP Connector. -->
12 <!-- Configure an o.e.j.server.ServerConnector with a single -->
13 <!-- HttpConnectionFactory instance using the common httpConfig -->
14 <!-- instance defined in jetty.xml -->
15 <!-- -->
16 <!-- Consult the javadoc of o.e.j.server.ServerConnector and -->
17 <!-- o.e.j.server.HttpConnectionFactory for all configuration -->
18 <!-- that may be set here. -->
19 <!-- =========================================================== -->
20 <Call name="addConnector">
21 <Arg>
22 <New class="org.eclipse.jetty.server.ServerConnector">
23 <Arg name="server"><Ref refid="Server" /></Arg>
24 <Arg name="factories">
25 <Array type="org.eclipse.jetty.server.ConnectionFactory">
26 <Item>
27 <New class="org.eclipse.jetty.server.HttpConnectionFactory">
28 <Arg name="config"><Ref refid="httpConfig" /></Arg>
29 </New>
30 </Item>
31 </Array>
32 </Arg>
33 <Call name="addLifeCycleListener">
34 <Arg>
35 <New class="org.eclipse.jetty.osgi.boot.utils.ServerConnectorListener">
36 <Set name="sysPropertyName">boot.webapp.service.port</Set>
37 </New>
38 </Arg>
39 </Call>
40 <Set name="host"><Property name="jetty.http.host" /></Set>
41 <Set name="port"><Property name="jetty.http.port" default="80" /></Set>
42 <Set name="idleTimeout"><Property name="jetty.http.idleTimeout" default="30000"/></Set>
43 </New>
44 </Arg>
45 </Call>
46
47 </Configure>