2021-09-04 21:12:10 +07:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
|
2016-07-08 15:40:24 +07:00
|
|
|
|
2021-09-04 21:12:10 +07:00
|
|
|
<!-- ============================================================= -->
|
|
|
|
<!-- Configure the Jetty Server instance with an ID "Server" -->
|
|
|
|
<!-- by adding an HTTP connector. -->
|
|
|
|
<!-- This configuration must be used in conjunction with jetty.xml -->
|
|
|
|
<!-- ============================================================= -->
|
2016-07-08 15:40:24 +07:00
|
|
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
2020-10-31 05:53:36 +07:00
|
|
|
<!-- Add an HTTP Connector. -->
|
2016-07-08 15:40:24 +07: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 id="httpConnector" class="org.eclipse.jetty.server.ServerConnector">
|
|
|
|
<Arg name="server"><Ref refid="Server" /></Arg>
|
|
|
|
<Arg name="acceptors" type="int"><Property name="jetty.http.acceptors" deprecated="http.acceptors" default="-1"/></Arg>
|
|
|
|
<Arg name="selectors" type="int"><Property name="jetty.http.selectors" deprecated="http.selectors" default="-1"/></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>
|
2020-10-31 05:53:36 +07:00
|
|
|
<Set name="host"><Property name="jetty.http.host" deprecated="jetty.host" default="@ADEMPIERE_APPS_SERVER@" /></Set>
|
2016-07-08 15:40:24 +07:00
|
|
|
<Set name="port"><Property name="jetty.http.port" deprecated="jetty.port" default="@ADEMPIERE_WEB_PORT@" /></Set>
|
2020-10-31 05:53:36 +07:00
|
|
|
<Set name="idleTimeout"><Property name="jetty.http.idleTimeout" deprecated="http.timeout" default="30000"/></Set>
|
2016-07-08 15:40:24 +07:00
|
|
|
<Set name="acceptorPriorityDelta"><Property name="jetty.http.acceptorPriorityDelta" deprecated="http.acceptorPriorityDelta" default="0"/></Set>
|
|
|
|
<Set name="acceptQueueSize"><Property name="jetty.http.acceptQueueSize" deprecated="http.acceptQueueSize" default="0"/></Set>
|
2020-10-31 05:53:36 +07:00
|
|
|
<Set name="reuseAddress"><Property name="jetty.http.reuseAddress" default="true"/></Set>
|
|
|
|
<Set name="acceptedTcpNoDelay"><Property name="jetty.http.acceptedTcpNoDelay" default="true"/></Set>
|
|
|
|
<Set name="acceptedReceiveBufferSize"><Property name="jetty.http.acceptedReceiveBufferSize" default="-1"/></Set>
|
|
|
|
<Set name="acceptedSendBufferSize"><Property name="jetty.http.acceptedSendBufferSize" default="-1"/></Set>
|
|
|
|
<Get name="SelectorManager">
|
|
|
|
<Set name="connectTimeout"><Property name="jetty.http.connectTimeout" default="15000"/></Set>
|
|
|
|
</Get>
|
2016-07-08 15:40:24 +07:00
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
|
2020-10-31 05:53:36 +07:00
|
|
|
</Configure>
|