<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

  <bean id="contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
  <bean id="server" name="Main" class="org.eclipse.jetty.server.Server">
    <constructor-arg type="org.eclipse.jetty.util.thread.ThreadPool">
      <bean id="threadPool" class="org.eclipse.jetty.util.thread.QueuedThreadPool">
        <property name="minThreads" value="10"/>
        <property name="maxThreads" value="200"/>
      </bean>
    </constructor-arg>

    <property name="connectors">
      <list>
        <bean id="connector" class="org.eclipse.jetty.server.ServerConnector">
          <constructor-arg type="org.eclipse.jetty.server.Server" ref="server" />
        </bean>
      </list>
    </property>

    <property name="handler">
      <bean id="handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
        <property name="handlers">
          <list>
             <ref bean="contexts"/>
             <bean id="defaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
          </list>
        </property>
      </bean>
    </property>

    <property name="stopAtShutdown" value="true"/>
    <property name="stopTimeout" value="1000"/>
    <property name="dumpAfterStart" value="true"/>
    <property name="dumpBeforeStop" value="false"/>

  </bean>
</beans>


