Project

General

Profile

Download (2.36 KB) Statistics
| Branch: | Tag: | Revision:
1
<?xml version="1.0"?>
2
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
3
 
4
<!-- ============================================================= -->
5
<!-- Configure a HTTPS connector.                                  -->
6
<!-- This configuration must be used in conjunction with jetty.xml -->
7
<!-- and jetty-ssl.xml.                                            -->
8
<!-- ============================================================= -->
9
<Configure id="Server" class="org.eclipse.jetty.server.Server">
10
 
11
  <!-- =========================================================== -->
12
  <!-- Add a HTTPS Connector.                                      -->
13
  <!-- Configure an o.e.j.server.ServerConnector with connection   -->
14
  <!-- factories for TLS (aka SSL) and HTTP to provide HTTPS.      -->
15
  <!-- All accepted TLS connections are wired to a HTTP connection.-->
16
  <!--                                                             -->
17
  <!-- Consult the javadoc of o.e.j.server.ServerConnector,        -->
18
  <!-- o.e.j.server.SslConnectionFactory and                       -->
19
  <!-- o.e.j.server.HttpConnectionFactory for all configuration    -->
20
  <!-- that may be set here.                                       -->
21
  <!-- =========================================================== -->
22
  <Call id="httpsConnector" name="addConnector">
23
    <Arg>
24
      <New class="org.eclipse.jetty.server.ServerConnector">
25
        <Arg name="server"><Ref refid="Server" /></Arg>
26
          <Arg name="factories">
27
            <Array type="org.eclipse.jetty.server.ConnectionFactory">
28
              <Item>
29
                <New class="org.eclipse.jetty.server.SslConnectionFactory">
30
                  <Arg name="next">http/1.1</Arg>
31
                  <Arg name="sslContextFactory"><Ref refid="sslContextFactory"/></Arg>
32
                </New>
33
              </Item>
34
              <Item>
35
                <New class="org.eclipse.jetty.server.HttpConnectionFactory">
36
                  <Arg name="config"><Ref refid="sslHttpConfig"/></Arg>
37
                </New>
38
              </Item>
39
            </Array>
40
          </Arg>
41
          <Set name="host"><Property name="jetty.host" /></Set>
42
          <Set name="port"><Property name="https.port" default="9443" /></Set>
43
          <Set name="idleTimeout"><Property name="https.timeout" default="30000"/></Set>
44
        </New>
45
    </Arg>
46
  </Call>
47
</Configure>
(2-2/4)