Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2012-10-11 01:15:57 -0400
committerGreg Wilkins2012-10-11 01:15:57 -0400
commit8c3fa91b261d0a7caf151959d0bbcee2b17e6f40 (patch)
tree6f20e151f6ffa95a59ea686762643a2321159aea /jetty-server/src/main/config/etc/jetty-http.xml
parent20317fffeb9fd78e5543d55ca382165e7867cd88 (diff)
downloadorg.eclipse.jetty.project-8c3fa91b261d0a7caf151959d0bbcee2b17e6f40.tar.gz
org.eclipse.jetty.project-8c3fa91b261d0a7caf151959d0bbcee2b17e6f40.tar.xz
org.eclipse.jetty.project-8c3fa91b261d0a7caf151959d0bbcee2b17e6f40.zip
jetty-9 reverted to more start.ini rather than start.d usage as we will not be using plugins. More configuration documentation added
Diffstat (limited to 'jetty-server/src/main/config/etc/jetty-http.xml')
-rw-r--r--jetty-server/src/main/config/etc/jetty-http.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/jetty-server/src/main/config/etc/jetty-http.xml b/jetty-server/src/main/config/etc/jetty-http.xml
new file mode 100644
index 0000000000..e0600afc22
--- /dev/null
+++ b/jetty-server/src/main/config/etc/jetty-http.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
+
+<!-- ============================================================= -->
+<!-- Configure the Jetty Server instance with an ID "Server" -->
+<!-- by adding a HTTP connector. -->
+<!-- This configuration must be used in conjunction with jetty.xml -->
+<!-- ============================================================= -->
+<Configure id="Server" class="org.eclipse.jetty.server.Server">
+
+ <!-- =========================================================== -->
+ <!-- Add a HTTP Connector. -->
+ <!-- Configure an o.e.j.server.ServerConnector with a single -->
+ <!-- HttpConnectionFactory instance using the common httpConfig -->
+ <!-- instance defined in jetty.xml -->
+ <!-- -->
+ <!-- Consult the javadoc of o.e.j.server.ServerConnector and -->
+ <!-- o.e.j.server.HttpConnectionFactory for all configuration -->
+ <!-- that may be set here. -->
+ <!-- =========================================================== -->
+ <Call name="addConnector">
+ <Arg>
+ <New class="org.eclipse.jetty.server.ServerConnector">
+ <Arg name="server"><Ref id="Server" /></Arg>
+ <Arg name="factories">
+ <Array type="org.eclipse.jetty.server.ConnectionFactory">
+ <Item>
+ <New class="org.eclipse.jetty.server.HttpConnectionFactory">
+ <Arg name="config"><Ref id="httpConfig" /></Arg>
+ </New>
+ </Item>
+ </Array>
+ </Arg>
+ <Set name="host"><Property name="jetty.host" /></Set>
+ <Set name="port"><Property name="jetty.port" default="8080" /></Set>
+ <Set name="idleTimeout">30000</Set>
+ </New>
+ </Arg>
+ </Call>
+
+</Configure>

Back to the top