2015-05-20 20:51:53 -04:00
|
|
|
<?xml version="1.0"?>
|
2019-06-10 05:41:47 -04:00
|
|
|
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_9_3.dtd">
|
2015-05-20 20:51:53 -04:00
|
|
|
|
|
|
|
<!-- ============================================================= -->
|
|
|
|
<!-- Configure the Jetty Server instance with an ID "Server" -->
|
2019-09-02 14:49:33 -04:00
|
|
|
<!-- by adding an HTTP connector. -->
|
2015-05-20 20:51:53 -04:00
|
|
|
<!-- This configuration must be used in conjunction with jetty.xml -->
|
|
|
|
<!-- ============================================================= -->
|
|
|
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
2019-09-02 14:29:50 -04:00
|
|
|
<!-- Add an HTTP Connector. -->
|
2015-05-20 20:51:53 -04:00
|
|
|
<!-- Configure an o.e.j.server.ServerConnector with a single -->
|
|
|
|
<!-- HttpConnectionFactory instance using the common httpConfig -->
|
|
|
|
<!-- instance defined in jetty.xml -->
|
|
|
|
<!-- -->
|
|
|
|
<!-- Consult the javadoc of o.e.j.server.ServerConnector and -->
|
|
|
|
<!-- o.e.j.server.HttpConnectionFactory for all configuration -->
|
|
|
|
<!-- that may be set here. -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<Call name="addConnector">
|
|
|
|
<Arg>
|
|
|
|
<New class="org.eclipse.jetty.server.ServerConnector">
|
|
|
|
<Arg name="server"><Ref refid="Server" /></Arg>
|
|
|
|
<Arg name="factories">
|
|
|
|
<Array type="org.eclipse.jetty.server.ConnectionFactory">
|
|
|
|
<Item>
|
|
|
|
<New class="org.eclipse.jetty.server.HttpConnectionFactory">
|
|
|
|
<Arg name="config"><Ref refid="httpConfig" /></Arg>
|
|
|
|
</New>
|
|
|
|
</Item>
|
|
|
|
</Array>
|
|
|
|
</Arg>
|
|
|
|
<Set name="host"><Property name="jetty.http.host" /></Set>
|
|
|
|
<Set name="port"><Property name="jetty.http.port" default="80" /></Set>
|
|
|
|
<Set name="idleTimeout"><Property name="jetty.http.idleTimeout" default="30000"/></Set>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
|
|
|
|
</Configure>
|