jetty-http.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0"?>
  2. <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
  3. <!-- ============================================================= -->
  4. <!-- Configure the Jetty Server instance with an ID "Server" -->
  5. <!-- by adding a HTTP connector. -->
  6. <!-- This configuration must be used in conjunction with jetty.xml -->
  7. <!-- ============================================================= -->
  8. <Configure id="Server" class="org.eclipse.jetty.server.Server">
  9. <!-- =========================================================== -->
  10. <!-- Add a HTTP Connector. -->
  11. <!-- Configure an o.e.j.server.ServerConnector with a single -->
  12. <!-- HttpConnectionFactory instance using the common httpConfig -->
  13. <!-- instance defined in jetty.xml -->
  14. <!-- -->
  15. <!-- Consult the javadoc of o.e.j.server.ServerConnector and -->
  16. <!-- o.e.j.server.HttpConnectionFactory for all configuration -->
  17. <!-- that may be set here. -->
  18. <!-- =========================================================== -->
  19. <Call name="addConnector">
  20. <Arg>
  21. <New class="org.eclipse.jetty.server.ServerConnector">
  22. <Arg name="server"><Ref refid="Server" /></Arg>
  23. <Arg name="acceptors" type="int"><Property name="solr.jetty.http.acceptors" default="-1"/></Arg>
  24. <Arg name="selectors" type="int"><Property name="solr.jetty.http.selectors" default="-1"/></Arg>
  25. <Arg name="factories">
  26. <Array type="org.eclipse.jetty.server.ConnectionFactory">
  27. <Item>
  28. <New class="org.eclipse.jetty.server.HttpConnectionFactory">
  29. <Arg name="config"><Ref refid="httpConfig" /></Arg>
  30. </New>
  31. </Item>
  32. </Array>
  33. </Arg>
  34. <Set name="host"><Property name="jetty.host" /></Set>
  35. <Set name="port"><Property name="jetty.port" default="8983" /></Set>
  36. <Set name="idleTimeout"><Property name="solr.jetty.http.idleTimeout" default="120000"/></Set>
  37. <Set name="soLingerTime"><Property name="solr.jetty.http.soLingerTime" default="-1"/></Set>
  38. <Set name="acceptorPriorityDelta"><Property name="solr.jetty.http.acceptorPriorityDelta" default="0"/></Set>
  39. <Set name="acceptQueueSize"><Property name="solr.jetty.http.acceptQueueSize" default="0"/></Set>
  40. </New>
  41. </Arg>
  42. </Call>
  43. </Configure>