<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">

<Configure id="Server" class="org.eclipse.jetty.server.Server">

  <Set name="handler">
    <New class="org.eclipse.jetty.proxy.ConnectHandler">
      <Set name="handler">
        <New class="org.eclipse.jetty.servlet.ServletHandler">
          <Call id="proxyHolder" name="addServletWithMapping">
            <Arg><Property name="jetty.proxy.servletClass" default="org.eclipse.jetty.proxy.ProxyServlet"/></Arg>
            <Arg><Property name="jetty.proxy.servletMapping" default="/*"/></Arg>
            <Call name="setInitParameter">
              <Arg>maxThreads</Arg>
              <Arg><Property name="jetty.proxy.maxThreads" default="128" /></Arg>
            </Call>
            <Call name="setInitParameter">
              <Arg>maxConnections</Arg>
              <Arg><Property name="jetty.proxy.maxConnections" default="256" /></Arg>
            </Call>
            <Call name="setInitParameter">
              <Arg>idleTimeout</Arg>
              <Arg><Property name="jetty.proxy.idleTimeout" default="30000" /></Arg>
            </Call>
            <Call name="setInitParameter">
              <Arg>timeout</Arg>
              <Arg><Property name="jetty.proxy.timeout" default="60000" /></Arg>
            </Call>
          </Call>
        </New>
      </Set>
    </New>
  </Set>

</Configure>
