Home | History | Annotate | Download | only in etc
      1 <?xml version="1.0"?>
      2 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
      3 
      4 <!-- =============================================================== -->
      5 <!-- Mixin the Statistics Handler                                    -->
      6 <!-- =============================================================== -->
      7 
      8 
      9 <Configure id="Server" class="org.eclipse.jetty.server.Server">
     10 
     11     <Get id="oldhandler" name="handler"/>
     12 
     13     <Set name="handler">
     14      <New id="IPAccessHandler" class="org.eclipse.jetty.server.handler.IPAccessHandler">
     15       <Set name="handler"><Ref id="oldhandler"/></Set>
     16       <Set name="white">
     17         <Array type="String">
     18 	  <Item>127.0.0.1</Item>
     19 	  <Item>127.0.0.2/*.html</Item>
     20 	</Array>
     21       </Set>
     22       <Set name="black">
     23         <Array type="String">
     24 	  <Item>127.0.0.1/blacklisted</Item>
     25 	  <Item>127.0.0.2/black.html</Item>
     26 	</Array>
     27       </Set>
     28      </New>
     29     </Set>
     30     
     31 </Configure>
     32