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

<!-- =============================================================== -->
<!-- Mixin the Thread Limit Handler to the entire server             -->
<!-- =============================================================== -->

<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <Call name="insertHandler">
    <Arg>
      <New id="ThreadLimitHandler" class="org.eclipse.jetty.server.handler.ThreadLimitHandler">
        <Arg name="forwardedHeader"><Property name="jetty.threadlimit.forwardedHeader"/></Arg> 
        <Set name="enabled"><Property name="jetty.threadlimit.enabled" default="true"/></Set>
        <Set name="threadLimit" property="jetty.threadlimit.threadLimit"/> 
      </New>
    </Arg>
  </Call>
</Configure>


