XML   31

jetty http xml

Guest on 25th May 2022 01:01:51 PM

  1. <!--  =============================================================  -->
  2. <!--  Configure the Jetty Server instance with an ID "Server"        -->
  3. <!--  by adding a HTTP connector.                                    -->
  4. <!--  This configuration must be used in conjunction with jetty.xml  -->
  5. <!--  =============================================================  -->
  6. <Configure id="Server" class="org.eclipse.jetty.server.Server">
  7. <!--  ===========================================================  -->
  8. <!--  Add a HTTP Connector.                                        -->
  9. <!--  Configure an o.e.j.server.ServerConnector with a single      -->
  10. <!--  HttpConnectionFactory instance using the common httpConfig   -->
  11. <!--  instance defined in jetty.xml                                -->
  12. <!--                                                               -->
  13. <!--  Consult the javadoc of o.e.j.server.ServerConnector and      -->
  14. <!--  o.e.j.server.HttpConnectionFactory for all configuration     -->
  15. <!--  that may be set here.                                        -->
  16. <!--  ===========================================================  -->
  17. <Call name="addConnector">
  18. <Arg>
  19. <New class="org.eclipse.jetty.server.ServerConnector">
  20. <Arg name="server">
  21. <Ref refid="Server"/>
  22. </Arg>
  23. <Arg name="acceptors" type="int">
  24. <Property name="solr.jetty.http.acceptors" default="-1"/>
  25. </Arg>
  26. <Arg name="selectors" type="int">
  27. <Property name="solr.jetty.http.selectors" default="-1"/>
  28. </Arg>
  29. <Arg name="factories">
  30. <Array type="org.eclipse.jetty.server.ConnectionFactory">
  31. <Item>
  32. <New class="org.eclipse.jetty.server.HttpConnectionFactory">
  33. <Arg name="config">
  34. <Ref refid="httpConfig"/>
  35. </Arg>
  36. </New>
  37. </Item>
  38. </Array>
  39. </Arg>
  40. <Set name="host">
  41. <Property name="jetty.host"/>
  42. </Set>
  43. <Set name="port">
  44. <Property name="jetty.port" default="8983"/>
  45. </Set>
  46. <Set name="idleTimeout">
  47. <Property name="solr.jetty.http.idleTimeout" default="50000"/>
  48. </Set>
  49. <Set name="soLingerTime">
  50. <Property name="solr.jetty.http.soLingerTime" default="-1"/>
  51. </Set>
  52. <Set name="acceptorPriorityDelta">
  53. <Property name="solr.jetty.http.acceptorPriorityDelta" default="0"/>
  54. </Set>
  55. <Set name="selectorPriorityDelta">
  56. <Property name="solr.jetty.http.selectorPriorityDelta" default="0"/>
  57. </Set>
  58. <Set name="acceptQueueSize">
  59. <Property name="solr.jetty.http.acceptQueueSize" default="0"/>
  60. </Set>
  61. </New>
  62. </Arg>
  63. </Call>
  64. </Configure>

Raw Paste


Login or Register to edit or fork this paste. It's free.