diff --git a/jetty-alpn/jetty-alpn-server/src/main/config/etc/jetty-alpn.xml b/jetty-alpn/jetty-alpn-server/src/main/config/etc/jetty-alpn.xml index 785b21f8237..81ddf0aa7b6 100644 --- a/jetty-alpn/jetty-alpn-server/src/main/config/etc/jetty-alpn.xml +++ b/jetty-alpn/jetty-alpn-server/src/main/config/etc/jetty-alpn.xml @@ -1,5 +1,5 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/jetty-cdi/cdi-2/src/main/config/etc/cdi2/jetty-cdi2.xml b/jetty-cdi/cdi-2/src/main/config/etc/cdi2/jetty-cdi2.xml index 82fcecb6a94..61a490add85 100644 --- a/jetty-cdi/cdi-2/src/main/config/etc/cdi2/jetty-cdi2.xml +++ b/jetty-cdi/cdi-2/src/main/config/etc/cdi2/jetty-cdi2.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-cdi/cdi-2/src/main/config/etc/cdi2/jetty-web-cdi2.xml b/jetty-cdi/cdi-2/src/main/config/etc/cdi2/jetty-web-cdi2.xml index 94c413b18f5..9d114c35c3e 100644 --- a/jetty-cdi/cdi-2/src/main/config/etc/cdi2/jetty-web-cdi2.xml +++ b/jetty-cdi/cdi-2/src/main/config/etc/cdi2/jetty-web-cdi2.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-deploy/src/main/config/etc/jetty-deploy.xml b/jetty-deploy/src/main/config/etc/jetty-deploy.xml index ebbd9d3cb75..c279a388389 100644 --- a/jetty-deploy/src/main/config/etc/jetty-deploy.xml +++ b/jetty-deploy/src/main/config/etc/jetty-deploy.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-deploy/src/main/config/modules/global-webapp-common.d/global-webapp-common.xml b/jetty-deploy/src/main/config/modules/global-webapp-common.d/global-webapp-common.xml index 3eec9436c37..41f3d202a63 100644 --- a/jetty-deploy/src/main/config/modules/global-webapp-common.d/global-webapp-common.xml +++ b/jetty-deploy/src/main/config/modules/global-webapp-common.d/global-webapp-common.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-deploy/src/main/config/modules/global-webapp-common.d/webapp-common.xml b/jetty-deploy/src/main/config/modules/global-webapp-common.d/webapp-common.xml index 958378ffc5e..02e338e6c9c 100644 --- a/jetty-deploy/src/main/config/modules/global-webapp-common.d/webapp-common.xml +++ b/jetty-deploy/src/main/config/modules/global-webapp-common.d/webapp-common.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-gcloud/jetty-gcloud-session-manager/src/main/config-template/etc/sessions/gcloud/session-store.xml b/jetty-gcloud/jetty-gcloud-session-manager/src/main/config-template/etc/sessions/gcloud/session-store.xml index f0a6e494688..f04a90aee51 100644 --- a/jetty-gcloud/jetty-gcloud-session-manager/src/main/config-template/etc/sessions/gcloud/session-store.xml +++ b/jetty-gcloud/jetty-gcloud-session-manager/src/main/config-template/etc/sessions/gcloud/session-store.xml @@ -1,5 +1,5 @@ - + @@ -9,12 +9,12 @@ - + - + - - + + diff --git a/jetty-hazelcast/src/main/config/etc/sessions/hazelcast/default.xml b/jetty-hazelcast/src/main/config/etc/sessions/hazelcast/default.xml index eb9fc3cdb79..d96524fa6c3 100644 --- a/jetty-hazelcast/src/main/config/etc/sessions/hazelcast/default.xml +++ b/jetty-hazelcast/src/main/config/etc/sessions/hazelcast/default.xml @@ -1,5 +1,5 @@ - + @@ -11,11 +11,11 @@ - - - + + + - + diff --git a/jetty-hazelcast/src/main/config/etc/sessions/hazelcast/remote.xml b/jetty-hazelcast/src/main/config/etc/sessions/hazelcast/remote.xml index 7d44f9169b8..908130b4b0d 100644 --- a/jetty-hazelcast/src/main/config/etc/sessions/hazelcast/remote.xml +++ b/jetty-hazelcast/src/main/config/etc/sessions/hazelcast/remote.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-http2/http2-server/src/main/config/etc/jetty-http2.xml b/jetty-http2/http2-server/src/main/config/etc/jetty-http2.xml index 8e8ac30ada3..16984b9bbdf 100644 --- a/jetty-http2/http2-server/src/main/config/etc/jetty-http2.xml +++ b/jetty-http2/http2-server/src/main/config/etc/jetty-http2.xml @@ -1,5 +1,5 @@ - + @@ -9,9 +9,9 @@ - - - + + + diff --git a/jetty-http2/http2-server/src/main/config/etc/jetty-http2c.xml b/jetty-http2/http2-server/src/main/config/etc/jetty-http2c.xml index f2a5140ba40..08e5d62911f 100644 --- a/jetty-http2/http2-server/src/main/config/etc/jetty-http2c.xml +++ b/jetty-http2/http2-server/src/main/config/etc/jetty-http2c.xml @@ -1,5 +1,5 @@ - + @@ -9,8 +9,8 @@ - - + + diff --git a/jetty-infinispan/infinispan-common/src/main/config/etc/sessions/infinispan/infinispan-common.xml b/jetty-infinispan/infinispan-common/src/main/config/etc/sessions/infinispan/infinispan-common.xml index f62605ccf16..95ef9c854f1 100644 --- a/jetty-infinispan/infinispan-common/src/main/config/etc/sessions/infinispan/infinispan-common.xml +++ b/jetty-infinispan/infinispan-common/src/main/config/etc/sessions/infinispan/infinispan-common.xml @@ -1,5 +1,5 @@ - + @@ -7,9 +7,9 @@ - - - + + + diff --git a/jetty-infinispan/infinispan-embedded-query/src/main/config-template/etc/sessions/infinispan/infinispan-embedded-query.xml b/jetty-infinispan/infinispan-embedded-query/src/main/config-template/etc/sessions/infinispan/infinispan-embedded-query.xml index 662fbb8e14f..03c4042829d 100644 --- a/jetty-infinispan/infinispan-embedded-query/src/main/config-template/etc/sessions/infinispan/infinispan-embedded-query.xml +++ b/jetty-infinispan/infinispan-embedded-query/src/main/config-template/etc/sessions/infinispan/infinispan-embedded-query.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-infinispan/infinispan-embedded/src/main/config-templates/etc/sessions/infinispan/infinispan-embedded.xml b/jetty-infinispan/infinispan-embedded/src/main/config-templates/etc/sessions/infinispan/infinispan-embedded.xml index e2efc697e69..a0175b02b7f 100644 --- a/jetty-infinispan/infinispan-embedded/src/main/config-templates/etc/sessions/infinispan/infinispan-embedded.xml +++ b/jetty-infinispan/infinispan-embedded/src/main/config-templates/etc/sessions/infinispan/infinispan-embedded.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-infinispan/infinispan-remote-query/src/main/config-template/etc/sessions/infinispan/infinispan-remote-query.xml b/jetty-infinispan/infinispan-remote-query/src/main/config-template/etc/sessions/infinispan/infinispan-remote-query.xml index c6ee114ebf4..75d67a9d6d3 100644 --- a/jetty-infinispan/infinispan-remote-query/src/main/config-template/etc/sessions/infinispan/infinispan-remote-query.xml +++ b/jetty-infinispan/infinispan-remote-query/src/main/config-template/etc/sessions/infinispan/infinispan-remote-query.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-infinispan/infinispan-remote-query/src/main/config-template/modules/sessions/infinispan/remote/other_proto_marshallers.xml b/jetty-infinispan/infinispan-remote-query/src/main/config-template/modules/sessions/infinispan/remote/other_proto_marshallers.xml index 389202eb511..64d34bf32f9 100644 --- a/jetty-infinispan/infinispan-remote-query/src/main/config-template/modules/sessions/infinispan/remote/other_proto_marshallers.xml +++ b/jetty-infinispan/infinispan-remote-query/src/main/config-template/modules/sessions/infinispan/remote/other_proto_marshallers.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-infinispan/infinispan-remote/src/main/config-template/etc/sessions/infinispan/infinispan-remote.xml b/jetty-infinispan/infinispan-remote/src/main/config-template/etc/sessions/infinispan/infinispan-remote.xml index 527a30c53f9..8debcd88e69 100644 --- a/jetty-infinispan/infinispan-remote/src/main/config-template/etc/sessions/infinispan/infinispan-remote.xml +++ b/jetty-infinispan/infinispan-remote/src/main/config-template/etc/sessions/infinispan/infinispan-remote.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-jaas/src/main/config/etc/jetty-jaas.xml b/jetty-jaas/src/main/config/etc/jetty-jaas.xml index db6bdfebcab..d973ec20eb0 100644 --- a/jetty-jaas/src/main/config/etc/jetty-jaas.xml +++ b/jetty-jaas/src/main/config/etc/jetty-jaas.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-jmx/src/main/config/etc/jetty-jmx-remote.xml b/jetty-jmx/src/main/config/etc/jetty-jmx-remote.xml index ceed76d9f33..1be8e984cc9 100644 --- a/jetty-jmx/src/main/config/etc/jetty-jmx-remote.xml +++ b/jetty-jmx/src/main/config/etc/jetty-jmx-remote.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-jmx/src/main/config/etc/jetty-jmx.xml b/jetty-jmx/src/main/config/etc/jetty-jmx.xml index dc1793be9e9..24c0e2031d4 100644 --- a/jetty-jmx/src/main/config/etc/jetty-jmx.xml +++ b/jetty-jmx/src/main/config/etc/jetty-jmx.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-maven-plugin/src/it/javax-annotation-api/src/config/jetty.xml b/jetty-maven-plugin/src/it/javax-annotation-api/src/config/jetty.xml index 5389324070a..ced70a66d09 100644 --- a/jetty-maven-plugin/src/it/javax-annotation-api/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/javax-annotation-api/src/config/jetty.xml @@ -1,5 +1,5 @@ - + @@ -31,8 +31,8 @@ - - 0 + + 30000 diff --git a/jetty-maven-plugin/src/it/jetty-deploy-war-mojo-it/src/config/jetty.xml b/jetty-maven-plugin/src/it/jetty-deploy-war-mojo-it/src/config/jetty.xml index 5389324070a..ced70a66d09 100644 --- a/jetty-maven-plugin/src/it/jetty-deploy-war-mojo-it/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/jetty-deploy-war-mojo-it/src/config/jetty.xml @@ -1,5 +1,5 @@ - + @@ -31,8 +31,8 @@ - - 0 + + 30000 diff --git a/jetty-maven-plugin/src/it/jetty-maven-plugin-provided-module-dep/web/src/config/jetty.xml b/jetty-maven-plugin/src/it/jetty-maven-plugin-provided-module-dep/web/src/config/jetty.xml index dedc6a814cf..b2f1ae17431 100644 --- a/jetty-maven-plugin/src/it/jetty-maven-plugin-provided-module-dep/web/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/jetty-maven-plugin-provided-module-dep/web/src/config/jetty.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-maven-plugin/src/it/jetty-run-forked-mojo-it/jetty-simple-webapp/src/config/jetty.xml b/jetty-maven-plugin/src/it/jetty-run-forked-mojo-it/jetty-simple-webapp/src/config/jetty.xml index 5389324070a..ced70a66d09 100644 --- a/jetty-maven-plugin/src/it/jetty-run-forked-mojo-it/jetty-simple-webapp/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/jetty-run-forked-mojo-it/jetty-simple-webapp/src/config/jetty.xml @@ -1,5 +1,5 @@ - + @@ -31,8 +31,8 @@ - - 0 + + 30000 diff --git a/jetty-maven-plugin/src/it/jetty-run-mojo-it/jetty-simple-webapp/src/config/jetty.xml b/jetty-maven-plugin/src/it/jetty-run-mojo-it/jetty-simple-webapp/src/config/jetty.xml index 5389324070a..ced70a66d09 100644 --- a/jetty-maven-plugin/src/it/jetty-run-mojo-it/jetty-simple-webapp/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/jetty-run-mojo-it/jetty-simple-webapp/src/config/jetty.xml @@ -1,5 +1,5 @@ - + @@ -31,8 +31,8 @@ - - 0 + + 30000 diff --git a/jetty-maven-plugin/src/it/jetty-run-mojo-jsp/src/config/jetty.xml b/jetty-maven-plugin/src/it/jetty-run-mojo-jsp/src/config/jetty.xml index 5389324070a..ced70a66d09 100644 --- a/jetty-maven-plugin/src/it/jetty-run-mojo-jsp/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/jetty-run-mojo-jsp/src/config/jetty.xml @@ -1,5 +1,5 @@ - + @@ -31,8 +31,8 @@ - - 0 + + 30000 diff --git a/jetty-maven-plugin/src/it/jetty-run-mojo-multi-module-single-war-it/webapp-war/src/config/jetty.xml b/jetty-maven-plugin/src/it/jetty-run-mojo-multi-module-single-war-it/webapp-war/src/config/jetty.xml index 5389324070a..ced70a66d09 100644 --- a/jetty-maven-plugin/src/it/jetty-run-mojo-multi-module-single-war-it/webapp-war/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/jetty-run-mojo-multi-module-single-war-it/webapp-war/src/config/jetty.xml @@ -1,5 +1,5 @@ - + @@ -31,8 +31,8 @@ - - 0 + + 30000 diff --git a/jetty-maven-plugin/src/it/jetty-run-war-exploded-mojo-it/jetty-simple-webapp/src/config/jetty.xml b/jetty-maven-plugin/src/it/jetty-run-war-exploded-mojo-it/jetty-simple-webapp/src/config/jetty.xml index 5389324070a..ced70a66d09 100644 --- a/jetty-maven-plugin/src/it/jetty-run-war-exploded-mojo-it/jetty-simple-webapp/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/jetty-run-war-exploded-mojo-it/jetty-simple-webapp/src/config/jetty.xml @@ -1,5 +1,5 @@ - + @@ -31,8 +31,8 @@ - - 0 + + 30000 diff --git a/jetty-maven-plugin/src/it/jetty-run-war-mojo-it/jetty-simple-webapp/src/config/jetty.xml b/jetty-maven-plugin/src/it/jetty-run-war-mojo-it/jetty-simple-webapp/src/config/jetty.xml index 5389324070a..ced70a66d09 100644 --- a/jetty-maven-plugin/src/it/jetty-run-war-mojo-it/jetty-simple-webapp/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/jetty-run-war-mojo-it/jetty-simple-webapp/src/config/jetty.xml @@ -1,5 +1,5 @@ - + @@ -31,8 +31,8 @@ - - 0 + + 30000 diff --git a/jetty-maven-plugin/src/it/jetty-start-mojo-it/jetty-simple-webapp/src/config/jetty.xml b/jetty-maven-plugin/src/it/jetty-start-mojo-it/jetty-simple-webapp/src/config/jetty.xml index 5389324070a..ced70a66d09 100644 --- a/jetty-maven-plugin/src/it/jetty-start-mojo-it/jetty-simple-webapp/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/jetty-start-mojo-it/jetty-simple-webapp/src/config/jetty.xml @@ -1,5 +1,5 @@ - + @@ -31,8 +31,8 @@ - - 0 + + 30000 diff --git a/jetty-maven-plugin/src/it/run-mojo-gwt-it/beer-server/src/config/jetty.xml b/jetty-maven-plugin/src/it/run-mojo-gwt-it/beer-server/src/config/jetty.xml index 5389324070a..ced70a66d09 100644 --- a/jetty-maven-plugin/src/it/run-mojo-gwt-it/beer-server/src/config/jetty.xml +++ b/jetty-maven-plugin/src/it/run-mojo-gwt-it/beer-server/src/config/jetty.xml @@ -1,5 +1,5 @@ - + @@ -31,8 +31,8 @@ - - 0 + + 30000 diff --git a/jetty-memcached/jetty-memcached-sessions/src/main/config/etc/sessions/session-data-cache/xmemcached.xml b/jetty-memcached/jetty-memcached-sessions/src/main/config/etc/sessions/session-data-cache/xmemcached.xml index 202259eced7..4a22c9b6765 100644 --- a/jetty-memcached/jetty-memcached-sessions/src/main/config/etc/sessions/session-data-cache/xmemcached.xml +++ b/jetty-memcached/jetty-memcached-sessions/src/main/config/etc/sessions/session-data-cache/xmemcached.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-nosql/src/main/config/etc/sessions/mongo/session-store-by-address.xml b/jetty-nosql/src/main/config/etc/sessions/mongo/session-store-by-address.xml index 281297548e8..28e5a7da378 100644 --- a/jetty-nosql/src/main/config/etc/sessions/mongo/session-store-by-address.xml +++ b/jetty-nosql/src/main/config/etc/sessions/mongo/session-store-by-address.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-nosql/src/main/config/etc/sessions/mongo/session-store-by-uri.xml b/jetty-nosql/src/main/config/etc/sessions/mongo/session-store-by-uri.xml index eaa6030064a..717f9949cf1 100644 --- a/jetty-nosql/src/main/config/etc/sessions/mongo/session-store-by-uri.xml +++ b/jetty-nosql/src/main/config/etc/sessions/mongo/session-store-by-uri.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-alpn.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-alpn.xml index dd80dc34afc..22eacf1cf38 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-alpn.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-alpn.xml @@ -1,5 +1,5 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-deployer.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-deployer.xml index f56749297dd..fe917c2430e 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-deployer.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-deployer.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-context-as-service.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-context-as-service.xml index b936e8512e2..cd907934b86 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-context-as-service.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-context-as-service.xml @@ -1,5 +1,5 @@ - + @@ -38,8 +38,8 @@ - - + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-webapp-as-service.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-webapp-as-service.xml index db576538760..df4f9a29512 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-webapp-as-service.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-webapp-as-service.xml @@ -1,5 +1,5 @@ - + @@ -38,8 +38,8 @@ - - + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-annotations.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-annotations.xml index 7df42848e06..fafa0ecdd18 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-annotations.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-annotations.xml @@ -1,5 +1,5 @@ - + @@ -38,8 +38,8 @@ - - + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-bundle.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-bundle.xml index fea514bc939..80335e9184a 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-bundle.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-bundle.xml @@ -1,5 +1,5 @@ - + @@ -38,8 +38,8 @@ - - + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-javax-websocket.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-javax-websocket.xml index afe5042fd0d..856a577d329 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-javax-websocket.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-javax-websocket.xml @@ -1,5 +1,5 @@ - + @@ -38,8 +38,8 @@ - - + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-jsp.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-jsp.xml index 9f0b3419964..aeda97879e8 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-jsp.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-jsp.xml @@ -1,5 +1,5 @@ - + @@ -38,8 +38,8 @@ - - + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-websocket.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-websocket.xml index 5ec8a408a72..3c45c45a368 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-websocket.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http-boot-with-websocket.xml @@ -1,5 +1,5 @@ - + @@ -38,8 +38,8 @@ - - + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http.xml index 120d5758e7f..6384118ee3b 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http.xml @@ -1,5 +1,5 @@ - + @@ -38,8 +38,8 @@ - - + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2-jdk9.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2-jdk9.xml index 8e8ac30ada3..16984b9bbdf 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2-jdk9.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2-jdk9.xml @@ -1,5 +1,5 @@ - + @@ -9,9 +9,9 @@ - - - + + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2.xml index 1b82909ad8f..a48b216e4ff 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2.xml @@ -1,5 +1,5 @@ - + @@ -9,9 +9,9 @@ - - - + + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-https.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-https.xml index 2ef8b99804c..7b408b6dc4d 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-https.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-https.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-ssl.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-ssl.xml index caaf36efee1..077cc7f66cd 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-ssl.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-ssl.xml @@ -1,5 +1,5 @@ - + @@ -19,8 +19,8 @@ - - + + @@ -31,12 +31,12 @@ - / + / - / + / - - + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-testrealm.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-testrealm.xml index 77afc2e8a5d..e9ebabc4699 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-testrealm.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-testrealm.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-with-custom-class.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-with-custom-class.xml index be374b6b513..9cc5f6f72e7 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-with-custom-class.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-with-custom-class.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty.xml index d7b8b2d09bf..291fccd1873 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty.xml +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty.xml @@ -1,5 +1,5 @@ - + @@ -42,18 +42,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + @@ -62,10 +62,10 @@ - + - - + + diff --git a/jetty-plus/src/main/config/etc/jetty-plus.xml b/jetty-plus/src/main/config/etc/jetty-plus.xml index 5733d2d3d58..ddc46f4bf29 100644 --- a/jetty-plus/src/main/config/etc/jetty-plus.xml +++ b/jetty-plus/src/main/config/etc/jetty-plus.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-proxy/src/main/config/etc/jetty-proxy.xml b/jetty-proxy/src/main/config/etc/jetty-proxy.xml index 4ec5c54a785..3e6b3b91918 100644 --- a/jetty-proxy/src/main/config/etc/jetty-proxy.xml +++ b/jetty-proxy/src/main/config/etc/jetty-proxy.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-quickstart/src/main/config/etc/example-quickstart.xml b/jetty-quickstart/src/main/config/etc/example-quickstart.xml index cd6a05ecde8..c042d89d724 100644 --- a/jetty-quickstart/src/main/config/etc/example-quickstart.xml +++ b/jetty-quickstart/src/main/config/etc/example-quickstart.xml @@ -1,5 +1,5 @@ - + @@ -7,9 +7,9 @@ - - - + + + diff --git a/jetty-rewrite/src/main/config/etc/jetty-rewrite.xml b/jetty-rewrite/src/main/config/etc/jetty-rewrite.xml index 4818eb2f837..1dc494ce93f 100644 --- a/jetty-rewrite/src/main/config/etc/jetty-rewrite.xml +++ b/jetty-rewrite/src/main/config/etc/jetty-rewrite.xml @@ -1,5 +1,5 @@ - + @@ -9,9 +9,9 @@ - - - + + + diff --git a/jetty-rewrite/src/main/config/etc/rewrite-compactpath.xml b/jetty-rewrite/src/main/config/etc/rewrite-compactpath.xml index 999ed552bd0..7019f342a6d 100644 --- a/jetty-rewrite/src/main/config/etc/rewrite-compactpath.xml +++ b/jetty-rewrite/src/main/config/etc/rewrite-compactpath.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-rewrite/src/main/config/modules/rewrite/rewrite-rules.xml b/jetty-rewrite/src/main/config/modules/rewrite/rewrite-rules.xml index 62446eb9040..90e983f7b14 100644 --- a/jetty-rewrite/src/main/config/modules/rewrite/rewrite-rules.xml +++ b/jetty-rewrite/src/main/config/modules/rewrite/rewrite-rules.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-acceptratelimit.xml b/jetty-server/src/main/config/etc/jetty-acceptratelimit.xml index 3baccd6d2d6..0ae2b002521 100644 --- a/jetty-server/src/main/config/etc/jetty-acceptratelimit.xml +++ b/jetty-server/src/main/config/etc/jetty-acceptratelimit.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-bytebufferpool.xml b/jetty-server/src/main/config/etc/jetty-bytebufferpool.xml index 6c622de7a00..4e888813ddc 100644 --- a/jetty-server/src/main/config/etc/jetty-bytebufferpool.xml +++ b/jetty-server/src/main/config/etc/jetty-bytebufferpool.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-connectionlimit.xml b/jetty-server/src/main/config/etc/jetty-connectionlimit.xml index 2e4fbeec552..fd15acb9ff2 100644 --- a/jetty-server/src/main/config/etc/jetty-connectionlimit.xml +++ b/jetty-server/src/main/config/etc/jetty-connectionlimit.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-debug.xml b/jetty-server/src/main/config/etc/jetty-debug.xml index 2a1cfdff7d7..ee2d9cccb79 100644 --- a/jetty-server/src/main/config/etc/jetty-debug.xml +++ b/jetty-server/src/main/config/etc/jetty-debug.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-debuglog.xml b/jetty-server/src/main/config/etc/jetty-debuglog.xml index e390547543a..067192e7114 100644 --- a/jetty-server/src/main/config/etc/jetty-debuglog.xml +++ b/jetty-server/src/main/config/etc/jetty-debuglog.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-gzip.xml b/jetty-server/src/main/config/etc/jetty-gzip.xml index 4353d387bda..2ebd183623b 100644 --- a/jetty-server/src/main/config/etc/jetty-gzip.xml +++ b/jetty-server/src/main/config/etc/jetty-gzip.xml @@ -1,5 +1,5 @@ - + @@ -12,12 +12,12 @@ - - - - - - + + + + + + @@ -25,8 +25,8 @@ - - + + @@ -33,11 +33,11 @@ - + - - + + diff --git a/jetty-server/src/main/config/etc/jetty-https.xml b/jetty-server/src/main/config/etc/jetty-https.xml index 0fd29d5028d..bbeaa5a6cc7 100644 --- a/jetty-server/src/main/config/etc/jetty-https.xml +++ b/jetty-server/src/main/config/etc/jetty-https.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-lowresources.xml b/jetty-server/src/main/config/etc/jetty-lowresources.xml index 6d282da0a95..345e2c41213 100644 --- a/jetty-server/src/main/config/etc/jetty-lowresources.xml +++ b/jetty-server/src/main/config/etc/jetty-lowresources.xml @@ -1,5 +1,5 @@ - + @@ -10,13 +10,13 @@ - - - - - - - + + + + + + + diff --git a/jetty-server/src/main/config/etc/jetty-proxy-protocol-ssl.xml b/jetty-server/src/main/config/etc/jetty-proxy-protocol-ssl.xml index 5fcf3008dfc..246321829c5 100644 --- a/jetty-server/src/main/config/etc/jetty-proxy-protocol-ssl.xml +++ b/jetty-server/src/main/config/etc/jetty-proxy-protocol-ssl.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-proxy-protocol.xml b/jetty-server/src/main/config/etc/jetty-proxy-protocol.xml index b4b747aae4d..49d427e5195 100644 --- a/jetty-server/src/main/config/etc/jetty-proxy-protocol.xml +++ b/jetty-server/src/main/config/etc/jetty-proxy-protocol.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-requestlog.xml b/jetty-server/src/main/config/etc/jetty-requestlog.xml index 037042ff5cd..3e87e5c0555 100644 --- a/jetty-server/src/main/config/etc/jetty-requestlog.xml +++ b/jetty-server/src/main/config/etc/jetty-requestlog.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-ssl-context.xml b/jetty-server/src/main/config/etc/jetty-ssl-context.xml index 343d6993c3a..cf4aa60ffd4 100644 --- a/jetty-server/src/main/config/etc/jetty-ssl-context.xml +++ b/jetty-server/src/main/config/etc/jetty-ssl-context.xml @@ -1,5 +1,5 @@ - + @@ -11,24 +11,24 @@ --> - + / - - + + / - - - - - - - - - - - + + + + + + + + + + + @@ -26,13 +26,13 @@ - + - - + + - + diff --git a/jetty-server/src/main/config/etc/jetty-stats.xml b/jetty-server/src/main/config/etc/jetty-stats.xml index 4e8312ba013..901896c5386 100644 --- a/jetty-server/src/main/config/etc/jetty-stats.xml +++ b/jetty-server/src/main/config/etc/jetty-stats.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty-threadlimit.xml b/jetty-server/src/main/config/etc/jetty-threadlimit.xml index fb933971658..d2300d5562c 100644 --- a/jetty-server/src/main/config/etc/jetty-threadlimit.xml +++ b/jetty-server/src/main/config/etc/jetty-threadlimit.xml @@ -1,5 +1,5 @@ - + @@ -10,8 +10,8 @@ - - + + diff --git a/jetty-server/src/main/config/etc/jetty-threadpool.xml b/jetty-server/src/main/config/etc/jetty-threadpool.xml index e003701db21..8ae32fd1e20 100644 --- a/jetty-server/src/main/config/etc/jetty-threadpool.xml +++ b/jetty-server/src/main/config/etc/jetty-threadpool.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/jetty.xml b/jetty-server/src/main/config/etc/jetty.xml index e784fe487d7..f63bf25c846 100644 --- a/jetty-server/src/main/config/etc/jetty.xml +++ b/jetty-server/src/main/config/etc/jetty.xml @@ -1,5 +1,5 @@ - + @@ -57,16 +57,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -101,9 +101,9 @@ - + - - + + diff --git a/jetty-server/src/main/config/etc/sessions/file/session-store.xml b/jetty-server/src/main/config/etc/sessions/file/session-store.xml index 3855b01de41..7e46044614b 100644 --- a/jetty-server/src/main/config/etc/sessions/file/session-store.xml +++ b/jetty-server/src/main/config/etc/sessions/file/session-store.xml @@ -1,5 +1,5 @@ - + @@ -10,9 +10,9 @@ - - - + + + diff --git a/jetty-server/src/main/config/etc/sessions/id-manager.xml b/jetty-server/src/main/config/etc/sessions/id-manager.xml index fb174604fc8..edb6c7219bd 100644 --- a/jetty-server/src/main/config/etc/sessions/id-manager.xml +++ b/jetty-server/src/main/config/etc/sessions/id-manager.xml @@ -1,9 +1,7 @@ - + - - @@ -30,7 +28,7 @@ - + diff --git a/jetty-server/src/main/config/etc/sessions/jdbc/datasource.xml b/jetty-server/src/main/config/etc/sessions/jdbc/datasource.xml index 5e0a499c5e9..f020b685c61 100644 --- a/jetty-server/src/main/config/etc/sessions/jdbc/datasource.xml +++ b/jetty-server/src/main/config/etc/sessions/jdbc/datasource.xml @@ -1,14 +1,11 @@ - + - - - - - - + + + + - diff --git a/jetty-server/src/main/config/etc/sessions/jdbc/driver.xml b/jetty-server/src/main/config/etc/sessions/jdbc/driver.xml index 11cd41a9161..20d305d0bc1 100644 --- a/jetty-server/src/main/config/etc/sessions/jdbc/driver.xml +++ b/jetty-server/src/main/config/etc/sessions/jdbc/driver.xml @@ -1,5 +1,5 @@ - + @@ -8,9 +8,9 @@ - - - + + + diff --git a/jetty-server/src/main/config/etc/sessions/jdbc/session-store.xml b/jetty-server/src/main/config/etc/sessions/jdbc/session-store.xml index 701938044ba..9b66771b9a8 100644 --- a/jetty-server/src/main/config/etc/sessions/jdbc/session-store.xml +++ b/jetty-server/src/main/config/etc/sessions/jdbc/session-store.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/etc/sessions/session-cache-hash.xml b/jetty-server/src/main/config/etc/sessions/session-cache-hash.xml index 64ff4325b98..c40486e363e 100644 --- a/jetty-server/src/main/config/etc/sessions/session-cache-hash.xml +++ b/jetty-server/src/main/config/etc/sessions/session-cache-hash.xml @@ -1,5 +1,5 @@ - + @@ -10,10 +10,10 @@ - - - - + + + + diff --git a/jetty-server/src/main/config/etc/sessions/session-cache-null.xml b/jetty-server/src/main/config/etc/sessions/session-cache-null.xml index a3a52ffc721..84d26c24ef7 100644 --- a/jetty-server/src/main/config/etc/sessions/session-cache-null.xml +++ b/jetty-server/src/main/config/etc/sessions/session-cache-null.xml @@ -1,5 +1,5 @@ - + @@ -10,8 +10,8 @@ - - + + diff --git a/jetty-server/src/main/config/etc/sessions/session-data-cache/session-caching-store.xml b/jetty-server/src/main/config/etc/sessions/session-data-cache/session-caching-store.xml index d06da254435..229a7f90c4d 100644 --- a/jetty-server/src/main/config/etc/sessions/session-data-cache/session-caching-store.xml +++ b/jetty-server/src/main/config/etc/sessions/session-data-cache/session-caching-store.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/modules/inetaccess/inetaccess.xml b/jetty-server/src/main/config/modules/inetaccess/inetaccess.xml index 5e4a7b406e0..34af6f2e828 100644 --- a/jetty-server/src/main/config/modules/inetaccess/inetaccess.xml +++ b/jetty-server/src/main/config/modules/inetaccess/inetaccess.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/modules/inetaccess/jetty-inetaccess.xml b/jetty-server/src/main/config/modules/inetaccess/jetty-inetaccess.xml index d977a004f45..35c66d9719d 100644 --- a/jetty-server/src/main/config/modules/inetaccess/jetty-inetaccess.xml +++ b/jetty-server/src/main/config/modules/inetaccess/jetty-inetaccess.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/config/modules/logback-access/jetty-logback-access.xml b/jetty-server/src/main/config/modules/logback-access/jetty-logback-access.xml index f58880eb666..2b8d2580288 100644 --- a/jetty-server/src/main/config/modules/logback-access/jetty-logback-access.xml +++ b/jetty-server/src/main/config/modules/logback-access/jetty-logback-access.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java index e2cc3cbfe7f..0e5b07f1b2c 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java @@ -153,7 +153,7 @@ public class GzipHandler extends HandlerWrapper implements GzipFactory { public static final String GZIP = "gzip"; public static final String DEFLATE = "deflate"; - public static final int DEFAULT_MIN_GZIP_SIZE=16; + public static final int DEFAULT_MIN_GZIP_SIZE=2048; public static final int COMPRESSION_LEVEL = Deflater.DEFAULT_COMPRESSION; private static final Logger LOG = Log.getLogger(GzipHandler.class); private static final HttpField X_CE_GZIP = new PreEncodedHttpField("X-Content-Encoding","gzip"); diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/GzipDefaultTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/GzipDefaultTest.java index 016ee7acdb9..9780108bbd8 100644 --- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/GzipDefaultTest.java +++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/GzipDefaultTest.java @@ -469,6 +469,7 @@ public class GzipDefaultTest { GzipTester tester = new GzipTester(testingdir.getEmptyPathDir(),compressionType); tester.setContentServlet(HttpContentTypeWithEncoding.class); + tester.getGzipHandler().setMinGzipSize(16); tester.getGzipHandler().addIncludedMimeTypes("text/plain"); tester.getGzipHandler().setExcludedAgentPatterns(); try diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/IncludedGzipTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/IncludedGzipTest.java index d379b5ef04b..5e2227bfad8 100644 --- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/IncludedGzipTest.java +++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/IncludedGzipTest.java @@ -90,6 +90,7 @@ public class IncludedGzipTest tester.getContext().addServlet(org.eclipse.jetty.servlet.DefaultServlet.class, "/"); GzipHandler gzipHandler = new GzipHandler(); + gzipHandler.setMinGzipSize(16); tester.getContext().insertHandler(gzipHandler); tester.start(); } diff --git a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-forwarded.xml b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-forwarded.xml index 1510a6c50a6..e427b94cd9f 100644 --- a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-forwarded.xml +++ b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-forwarded.xml @@ -1,16 +1,16 @@ - + - - - - - - + + + + + + diff --git a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-http.xml b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-http.xml index f55a0bb916e..009f02a70e6 100644 --- a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-http.xml +++ b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-http.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-http2c.xml b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-http2c.xml index ae904e4b55f..3871d02981a 100644 --- a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-http2c.xml +++ b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-http2c.xml @@ -1,13 +1,13 @@ - + - - + + diff --git a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-proxy-protocol.xml b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-proxy-protocol.xml index 7a77b3e340c..33ee605e0f4 100644 --- a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-proxy-protocol.xml +++ b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-proxy-protocol.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-secure.xml b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-secure.xml index 47193a5e0f7..15110890034 100644 --- a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-secure.xml +++ b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket-secure.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket.xml b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket.xml index c4316a3c2c0..b58242ffd9f 100644 --- a/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket.xml +++ b/jetty-unixsocket/jetty-unixsocket-server/src/main/config/etc/jetty-unixsocket.xml @@ -1,5 +1,5 @@ - + @@ -13,7 +13,7 @@ - + diff --git a/jetty-util/src/main/config/etc/console-capture.xml b/jetty-util/src/main/config/etc/console-capture.xml index 47a786743ff..c8491fd31d8 100644 --- a/jetty-util/src/main/config/etc/console-capture.xml +++ b/jetty-util/src/main/config/etc/console-capture.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-webapp/src/main/config/etc/jetty-webapp.xml b/jetty-webapp/src/main/config/etc/jetty-webapp.xml index 25892b21cb5..47c9519abf9 100644 --- a/jetty-webapp/src/main/config/etc/jetty-webapp.xml +++ b/jetty-webapp/src/main/config/etc/jetty-webapp.xml @@ -1,5 +1,5 @@ - + diff --git a/jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java b/jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java index ce780e55e3a..cc2e831c4a1 100644 --- a/jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java +++ b/jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java @@ -105,6 +105,8 @@ public class XmlConfiguration URL config76 = klass.getResource("configure_7_6.dtd"); URL config90 = klass.getResource("configure_9_0.dtd"); URL config93 = klass.getResource("configure_9_3.dtd"); + URL config100 = klass.getResource("configure_10_0.dtd"); + parser.redirectEntity("configure.dtd",config93); parser.redirectEntity("configure_1_0.dtd",config60); parser.redirectEntity("configure_1_1.dtd",config60); @@ -114,6 +116,7 @@ public class XmlConfiguration parser.redirectEntity("configure_7_6.dtd",config76); parser.redirectEntity("configure_9_0.dtd",config90); parser.redirectEntity("configure_9_3.dtd",config93); + parser.redirectEntity("configure_10_0.dtd",config100); parser.redirectEntity("http://jetty.mortbay.org/configure.dtd",config93); parser.redirectEntity("http://jetty.mortbay.org/configure_9_3.dtd",config93); @@ -122,9 +125,10 @@ public class XmlConfiguration parser.redirectEntity("https://www.eclipse.org/jetty/configure.dtd",config93); parser.redirectEntity("http://www.eclipse.org/jetty/configure_9_3.dtd",config93); parser.redirectEntity("https://www.eclipse.org/jetty/configure_9_3.dtd",config93); + parser.redirectEntity("https://www.eclipse.org/jetty/configure_10_0.dtd",config100); - parser.redirectEntity("-//Mort Bay Consulting//DTD Configure//EN",config93); - parser.redirectEntity("-//Jetty//Configure//EN",config93); + parser.redirectEntity("-//Mort Bay Consulting//DTD Configure//EN",config100); + parser.redirectEntity("-//Jetty//Configure//EN",config100); return parser; } @@ -502,8 +506,23 @@ public class XmlConfiguration private void set(Object obj, XmlParser.Node node) throws Exception { String attr = node.getAttribute("name"); + String id = node.getAttribute("id"); + String property = node.getAttribute("property"); + String propertyValue = null; + // Look for a property value + if (property!=null) + { + Map properties = _configuration.getProperties(); + propertyValue = properties.get(property); + // If no property value, then do not set + if (propertyValue == null) + return; + } + String name = "set" + attr.substring(0, 1).toUpperCase(Locale.ENGLISH) + attr.substring(1); Object value = value(obj, node); + if (value == null) + value = propertyValue; Object[] arg = {value}; Class oClass = nodeClass(node); @@ -521,122 +540,135 @@ public class XmlConfiguration MultiException me = new MultiException(); - // Try for trivial match - try - { - Method set = oClass.getMethod(name, vClass); - invokeMethod(set, obj, arg); - return; - } - catch (IllegalArgumentException | IllegalAccessException | NoSuchMethodException e) - { - LOG.ignore(e); - me.add(e); - } - - // Try for native match - try - { - Field type = vClass[0].getField("TYPE"); - vClass[0] = (Class)type.get(null); - Method set = oClass.getMethod(name, vClass); - invokeMethod(set, obj, arg); - return; - } - catch (NoSuchFieldException | IllegalArgumentException | IllegalAccessException | NoSuchMethodException e) - { - LOG.ignore(e); - me.add(e); - } - - // Try a field - try - { - Field field = oClass.getField(attr); - if (Modifier.isPublic(field.getModifiers())) - { - setField(field, obj, value); - return; - } - } - catch (NoSuchFieldException e) - { - LOG.ignore(e); - me.add(e); - } - - // Search for a match by trying all the set methods - Method[] sets = oClass.getMethods(); - Method set = null; String types = null; - for (Method setter : sets) - { - if (setter.getParameterCount() != 1) - continue; - Class[] paramTypes = setter.getParameterTypes(); - if (name.equals(setter.getName())) - { - types = types == null ? paramTypes[0].getName() : (types + "," + paramTypes[0].getName()); - // lets try it - try - { - set = setter; - invokeMethod(set, obj, arg); - return; - } - catch (IllegalArgumentException | IllegalAccessException e) - { - LOG.ignore(e); - me.add(e); - } - - try - { - for (Class c : __supportedCollections) - { - if (paramTypes[0].isAssignableFrom(c)) - { - invokeMethod(setter, obj, convertArrayToCollection(value, c)); - return; - } - } - } - catch (IllegalAccessException e) - { - LOG.ignore(e); - me.add(e); - } - } - } - - // Try converting the arg to the last set found. - if (set != null) + Object setValue = value; + try { + // Try for trivial match try { - Class sClass = set.getParameterTypes()[0]; - if (sClass.isPrimitive()) - { - for (int t = 0; t < __primitives.length; t++) - { - if (sClass.equals(__primitives[t])) - { - sClass = __boxedPrimitives[t]; - break; - } - } - } - Constructor cons = sClass.getConstructor(vClass); - arg[0] = cons.newInstance(arg); - _configuration.initializeDefaults(arg[0]); + Method set = oClass.getMethod(name, vClass); invokeMethod(set, obj, arg); return; } - catch (NoSuchMethodException | IllegalAccessException | InstantiationException e) + catch (IllegalArgumentException | IllegalAccessException | NoSuchMethodException e) { LOG.ignore(e); me.add(e); } + + // Try for native match + try + { + Field type = vClass[0].getField("TYPE"); + vClass[0] = (Class)type.get(null); + Method set = oClass.getMethod(name, vClass); + invokeMethod(set, obj, arg); + return; + } + catch (NoSuchFieldException | IllegalArgumentException | IllegalAccessException | NoSuchMethodException e) + { + LOG.ignore(e); + me.add(e); + } + + // Try a field + try + { + Field field = oClass.getField(attr); + if (Modifier.isPublic(field.getModifiers())) + { + setField(field, obj, value); + return; + } + } + catch (NoSuchFieldException e) + { + LOG.ignore(e); + me.add(e); + } + + // Search for a match by trying all the set methods + Method[] sets = oClass.getMethods(); + Method set = null; + for (Method setter : sets) + { + if (setter.getParameterCount() != 1) + continue; + Class[] paramTypes = setter.getParameterTypes(); + if (name.equals(setter.getName())) + { + types = types == null ? paramTypes[0].getName() : (types + "," + paramTypes[0].getName()); + // lets try it + try + { + set = setter; + invokeMethod(set, obj, arg); + return; + } + catch (IllegalArgumentException | IllegalAccessException e) + { + LOG.ignore(e); + me.add(e); + } + + try + { + for (Class c : __supportedCollections) + { + if (paramTypes[0].isAssignableFrom(c)) + { + setValue = convertArrayToCollection(value, c); + invokeMethod(setter, obj, setValue); + return; + } + } + } + catch (IllegalAccessException e) + { + LOG.ignore(e); + me.add(e); + } + } + } + + // Try converting the arg to the last set found. + if (set != null) + { + try + { + Class sClass = set.getParameterTypes()[0]; + if (sClass.isPrimitive()) + { + for (int t = 0; t < __primitives.length; t++) + { + if (sClass.equals(__primitives[t])) + { + sClass = __boxedPrimitives[t]; + break; + } + } + } + Constructor cons = sClass.getConstructor(vClass); + arg[0] = cons.newInstance(arg); + _configuration.initializeDefaults(arg[0]); + invokeMethod(set, obj, arg); + setValue = arg[0]; + return; + } + catch (NoSuchMethodException | IllegalAccessException | InstantiationException e) + { + LOG.ignore(e); + me.add(e); + } + } + + setValue = null; + } + finally + { + if (id!=null && setValue!=null) + _configuration.getIdMap().put(id, setValue); } // No Joy diff --git a/jetty-xml/src/main/resources/org/eclipse/jetty/xml/configure_10_0.dtd b/jetty-xml/src/main/resources/org/eclipse/jetty/xml/configure_10_0.dtd new file mode 100644 index 00000000000..bd0aa99d06d --- /dev/null +++ b/jetty-xml/src/main/resources/org/eclipse/jetty/xml/configure_10_0.dtd @@ -0,0 +1,329 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jetty-xml/src/test/java/org/eclipse/jetty/xml/XmlConfigurationTest.java b/jetty-xml/src/test/java/org/eclipse/jetty/xml/XmlConfigurationTest.java index 70d86d773ec..62e5af925c7 100644 --- a/jetty-xml/src/test/java/org/eclipse/jetty/xml/XmlConfigurationTest.java +++ b/jetty-xml/src/test/java/org/eclipse/jetty/xml/XmlConfigurationTest.java @@ -282,6 +282,55 @@ public class XmlConfigurationTest assertEquals(2, tc.testInt, "Set Type 3"); } + @Test + public void testSetWithProperty() throws Exception + { + XmlConfiguration configuration = asXmlConfiguration(""); + configuration.getProperties().put("prop", "This is a property value"); + TestConfiguration tc = new TestConfiguration(); + tc.setTestString("default"); + configuration.configure(tc); + assertEquals("This is a property value", tc.getTestString()); + assertEquals(configuration.getIdMap().get("test"),"This is a property value"); + } + + @Test + public void testSetWithNullProperty() throws Exception + { + XmlConfiguration configuration = asXmlConfiguration(""); + configuration.getProperties().remove("prop"); + TestConfiguration tc = new TestConfiguration(); + tc.setTestString("default"); + configuration.configure(tc); + assertEquals("default", tc.getTestString()); + assertEquals(configuration.getIdMap().get("test"),null); + } + + @Test + public void testSetWithPropertyAndValue() throws Exception + { + XmlConfiguration configuration = asXmlConfiguration("Value"); + configuration.getProperties().put("prop", "This is a property value"); + TestConfiguration tc = new TestConfiguration(); + tc.setTestString("default"); + configuration.configure(tc); + assertEquals("Value", tc.getTestString()); + assertEquals(configuration.getIdMap().get("test"),"Value"); + } + + @Test + public void testSetWithNullPropertyAndValue() throws Exception + { + XmlConfiguration configuration = asXmlConfiguration("Value"); + configuration.getProperties().remove("prop"); + TestConfiguration tc = new TestConfiguration(); + tc.setTestString("default"); + configuration.configure(tc); + assertEquals("default", tc.getTestString()); + assertEquals(configuration.getIdMap().get("test"),null); + } + + @Test public void testMeaningfullSetException() throws Exception { diff --git a/jetty-xml/src/test/java/org/eclipse/jetty/xml/XmlParserTest.java b/jetty-xml/src/test/java/org/eclipse/jetty/xml/XmlParserTest.java index 2c352210071..3bcda5c2257 100644 --- a/jetty-xml/src/test/java/org/eclipse/jetty/xml/XmlParserTest.java +++ b/jetty-xml/src/test/java/org/eclipse/jetty/xml/XmlParserTest.java @@ -22,6 +22,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import java.net.URL; +import org.eclipse.jetty.util.resource.Resource; import org.junit.jupiter.api.Test; public class XmlParserTest @@ -31,8 +32,8 @@ public class XmlParserTest { XmlParser parser = new XmlParser(); - URL configURL = XmlConfiguration.class.getClassLoader().getResource("org/eclipse/jetty/xml/configure_9_3.dtd"); - parser.redirectEntity("configure.dtd", configURL); + URL configURL = XmlConfiguration.class.getResource("configure_10_0.dtd"); + parser.redirectEntity("configure_10_0.dtd", configURL); parser.redirectEntity("http://jetty.eclipse.org/configure.dtd", configURL); parser.redirectEntity("-//Mort Bay Consulting//DTD Configure//EN", configURL); diff --git a/jetty-xml/src/test/resources/org/eclipse/jetty/xml/configureWithAttr.xml b/jetty-xml/src/test/resources/org/eclipse/jetty/xml/configureWithAttr.xml index 832f244da82..0dcaad79159 100644 --- a/jetty-xml/src/test/resources/org/eclipse/jetty/xml/configureWithAttr.xml +++ b/jetty-xml/src/test/resources/org/eclipse/jetty/xml/configureWithAttr.xml @@ -1,5 +1,5 @@ - + name diff --git a/jetty-xml/src/test/resources/org/eclipse/jetty/xml/configureWithElements.xml b/jetty-xml/src/test/resources/org/eclipse/jetty/xml/configureWithElements.xml index f0d1b8d1a1f..6f68825706a 100644 --- a/jetty-xml/src/test/resources/org/eclipse/jetty/xml/configureWithElements.xml +++ b/jetty-xml/src/test/resources/org/eclipse/jetty/xml/configureWithElements.xml @@ -1,5 +1,5 @@ - + name diff --git a/tests/test-integration/src/test/resources/NIOHttp.xml b/tests/test-integration/src/test/resources/NIOHttp.xml index 6f64037beb1..13f9ccca2dd 100644 --- a/tests/test-integration/src/test/resources/NIOHttp.xml +++ b/tests/test-integration/src/test/resources/NIOHttp.xml @@ -1,5 +1,5 @@ - + @@ -20,12 +20,10 @@ - + + - - - diff --git a/tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/webapps/test-jaas.xml b/tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/webapps/test-jaas.xml index 37b9cff243f..d53eab10693 100644 --- a/tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/webapps/test-jaas.xml +++ b/tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/webapps/test-jaas.xml @@ -1,5 +1,5 @@ - + diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/demo-rewrite-rules.xml b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/demo-rewrite-rules.xml index fca8e625e9f..cedd98cd877 100644 --- a/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/demo-rewrite-rules.xml +++ b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/demo-rewrite-rules.xml @@ -1,5 +1,5 @@ - + diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/test-realm.xml b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/test-realm.xml index f24b4f3e887..0f9867548b9 100644 --- a/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/test-realm.xml +++ b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/test-realm.xml @@ -1,5 +1,5 @@ - + diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/webapps/test.xml b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/webapps/test.xml index 95de38729a4..0e49d729146 100644 --- a/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/webapps/test.xml +++ b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/webapps/test.xml @@ -1,5 +1,5 @@ - +