Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ec1d3f509bb0088ad1ad3a53d7a9ab2a7db5a516 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">

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

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

  <Get id="oldhandler" name="handler" />
  <Set name="handler">
    <New id="JamonHandler" class="com.jamonapi.http.JAMonJettyHandlerNew">
      <Set name="handler"><Ref refid="oldhandler" /></Set>
      <Set name="summaryLabels"><Property name="jamon.summaryLabels" /></Set>
    </New>
  </Set>

  <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>

Back to the top