1 <?xml version="1.0"?> 2 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> 3 4 5 <Configure id="FileServer" class="org.eclipse.jetty.server.Server"> 6 7 <Call name="addConnector"> 8 <Arg> 9 <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> 10 <Set name="port">8080</Set> 11 </New> 12 </Arg> 13 </Call> 14 15 <Set name="handler"> 16 <New class="org.eclipse.jetty.server.handler.HandlerList"> 17 <Set name="handlers"> 18 <Array type="org.eclipse.jetty.server.Handler"> 19 <Item> 20 <New class="org.eclipse.jetty.server.handler.ResourceHandler"> 21 <Set name="directoriesListed">true</Set> 22 <Set name="welcomeFiles"> 23 <Array type="String"><Item>index.html</Item></Array> 24 </Set> 25 <Set name="resourceBase">.</Set> 26 </New> 27 </Item> 28 <Item> 29 <New class="org.eclipse.jetty.server.handler.DefaultHandler"> 30 </New> 31 </Item> 32 </Array> 33 </Set> 34 </New> 35 </Set> 36 37 </Configure> 38