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

<!-- =============================================================== -->
<!-- Mixin the Jamon Handler                                         -->
<!-- =============================================================== -->

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

  <Call name="insertHandler">
    <Arg>
      <New id="JamonHandler" class="com.jamonapi.http.JAMonJettyHandlerNew">
        <Set name="summaryLabels"><Property name="jamon.summaryLabels" /></Set>
      </New>
    </Arg>
  </Call>

  <Ref refid="Contexts">
    <Call name="addHandler">
      <Arg>
        <New class="org.eclipse.jetty.webapp.WebAppContext">
          <Set name="contextPath">/jamon</Set>
          <Set name="war"><Property name="jetty.base" default="."/>/lib/jamon/jamon.war</Set>
          <Set name="extractWAR">true</Set>
          <Set name="copyWebDir">false</Set>
          <Set name="defaultsDescriptor"><Property name="jetty.home" default="."/>/etc/webdefault.xml</Set>
        </New>
      </Arg>
    </Call>
  </Ref>

</Configure>
