From 053408254efaf1d654bb977937d9476bcb8b6d2d Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Mon, 20 May 2013 15:39:30 +1000 Subject: [PATCH 01/10] 408446 Multipart parsing issue with boundry and charset in ContentType header --- .../jetty/servlets/MultipartFilterTest.java | 33 +++++++++++++++++++ .../util/MultiPartInputStreamParser.java | 9 +++-- .../jetty/util/MultiPartInputStreamTest.java | 22 +++++++++++++ 3 files changed, 62 insertions(+), 2 deletions(-) diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java index 7a18afdc756..63855515980 100644 --- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java +++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java @@ -698,6 +698,39 @@ public class MultipartFilterTest assertEquals(HttpServletResponse.SC_OK, response.getStatus()); assertTrue(response.getContent().contains("aaaa,bbbbb")); } + + + @Test + public void testContentTypeWithCharSet() throws Exception + { + // generated and parsed test + HttpTester.Request request = HttpTester.newRequest(); + HttpTester.Response response; + + // test GET + request.setMethod("POST"); + request.setVersion("HTTP/1.0"); + request.setHeader("Host","tester"); + request.setURI("/context/dump"); + + String boundary="XyXyXy"; + request.setHeader("Content-Type","multipart/form-data; boundary=\""+boundary+"\"; charset=ISO-8859-1"); + + + String content = "--" + boundary + "\r\n"+ + "Content-Disposition: form-data; name=\"fileup\"; filename=\"test.upload\"\r\n"+ + "Content-Type: application/octet-stream\r\n\r\n"+ + "How now brown cow."+ + "\r\n--" + boundary + "--\r\n\r\n"; + + request.setContent(content); + + response = HttpTester.parseResponse(tester.getResponses(request.generate())); + assertEquals(HttpServletResponse.SC_OK,response.getStatus()); + assertTrue(response.getContent().indexOf("brown cow")>=0); + } + + /* * see the testParameterMap test * diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/MultiPartInputStreamParser.java b/jetty-util/src/main/java/org/eclipse/jetty/util/MultiPartInputStreamParser.java index 68901e3d476..1429d0818a8 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/MultiPartInputStreamParser.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/MultiPartInputStreamParser.java @@ -467,8 +467,13 @@ public class MultiPartInputStreamParser _tmpDir.mkdirs(); String contentTypeBoundary = ""; - if (_contentType.indexOf("boundary=") >= 0) - contentTypeBoundary = QuotedStringTokenizer.unquote(value(_contentType.substring(_contentType.indexOf("boundary="))).trim()); + int bstart = _contentType.indexOf("boundary="); + if (bstart >= 0) + { + int bend = _contentType.indexOf(";", bstart); + bend = (bend < 0? _contentType.length(): bend); + contentTypeBoundary = QuotedStringTokenizer.unquote(value(_contentType.substring(bstart,bend)).trim()); + } String boundary="--"+contentTypeBoundary; byte[] byteBoundary=(boundary+"--").getBytes(StringUtil.__ISO_8859_1); diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/MultiPartInputStreamTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/MultiPartInputStreamTest.java index 51991be5cf3..22958a308a3 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/MultiPartInputStreamTest.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/MultiPartInputStreamTest.java @@ -529,6 +529,28 @@ public class MultiPartInputStreamTest assertThat(baos.toString("UTF-8"), is("Other")); } + @Test + public void testCharsetEncoding () throws Exception + { + String contentType = "multipart/form-data; boundary=TheBoundary; charset=ISO-8859-1"; + String str = "--TheBoundary\r"+ + "content-disposition: form-data; name=\"field1\"\r"+ + "\r"+ + "\nJoe Blow\n"+ + "\r"+ + "--TheBoundary--\r"; + + MultipartConfigElement config = new MultipartConfigElement(_dirname, 1024, 3072, 50); + MultiPartInputStreamParser mpis = new MultiPartInputStreamParser(new ByteArrayInputStream(str.getBytes()), + contentType, + config, + _tmpDir); + mpis.setDeleteOnExit(true); + Collection parts = mpis.getParts(); + //assertThat(parts.size(), is(1)); + } + + @Test public void testBadlyEncodedFilename() throws Exception { From 13c56e81f5ae7f4d0989945a4594cf88fd96e9e1 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Mon, 20 May 2013 15:45:53 +1000 Subject: [PATCH 02/10] 408446 Multipart parsing issue with boundry and charset in ContentType header --- .../jetty/servlets/MultiPartFilter.java | 9 +++-- .../jetty/servlets/MultipartFilterTest.java | 33 ++++++++++++++++++- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/MultiPartFilter.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/MultiPartFilter.java index fea6d370497..c872e936faa 100644 --- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/MultiPartFilter.java +++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/MultiPartFilter.java @@ -125,8 +125,13 @@ public class MultiPartFilter implements Filter // TODO - handle encodings String contentTypeBoundary = ""; - if (content_type.indexOf("boundary=") >= 0) - contentTypeBoundary = QuotedStringTokenizer.unquote(value(content_type.substring(content_type.indexOf("boundary="))).trim()); + int bstart = content_type.indexOf("boundary="); + if (bstart >= 0) + { + int bend = content_type.indexOf(";", bstart); + bend = (bend < 0? content_type.length(): bend); + contentTypeBoundary = QuotedStringTokenizer.unquote(value(content_type.substring(bstart,bend)).trim()); + } String boundary="--"+contentTypeBoundary; diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java index d41228a150d..5f12d70442c 100644 --- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java +++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java @@ -164,7 +164,38 @@ public class MultipartFilterTest assertEquals(HttpServletResponse.SC_OK,response.getStatus()); assertTrue(response.getContent().indexOf("brown cow")>=0); } - + + + @Test + public void testContentTypeWithCharset() throws Exception + { + // generated and parsed test + HttpTester request = new HttpTester(); + HttpTester response = new HttpTester(); + + // test GET + request.setMethod("POST"); + request.setVersion("HTTP/1.0"); + request.setHeader("Host","tester"); + request.setURI("/context/dump"); + + String boundary="XyXyXy"; + request.setHeader("Content-Type","multipart/form-data; boundary=\""+boundary+"\"; charset=ISO-8859-1"); + + + String content = "--" + boundary + "\r\n"+ + "Content-Disposition: form-data; name=\"fileup\"; filename=\"test.upload\"\r\n"+ + "Content-Type: application/octet-stream\r\n\r\n"+ + "How now brown cow."+ + "\r\n--" + boundary + "--\r\n\r\n"; + + request.setContent(content); + + response.parse(tester.getResponses(request.generate())); + assertTrue(response.getMethod()==null); + assertEquals(HttpServletResponse.SC_OK,response.getStatus()); + assertTrue(response.getContent().indexOf("brown cow")>=0); + } @Test public void testEncodedPost() throws Exception From b5f3743a226ce029c267ecfd0cc2c463140ce54a Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Mon, 20 May 2013 17:20:52 +1000 Subject: [PATCH 03/10] Uncomment test for changes to MultipartInputStreamParser --- .../java/org/eclipse/jetty/util/MultiPartInputStreamTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/MultiPartInputStreamTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/MultiPartInputStreamTest.java index 22958a308a3..a706e7394e5 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/MultiPartInputStreamTest.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/MultiPartInputStreamTest.java @@ -547,7 +547,7 @@ public class MultiPartInputStreamTest _tmpDir); mpis.setDeleteOnExit(true); Collection parts = mpis.getParts(); - //assertThat(parts.size(), is(1)); + assertThat(parts.size(), is(1)); } From 6cfd33a71b9b3344a92c42264ae1509c254643ca Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Mon, 20 May 2013 18:27:24 +1000 Subject: [PATCH 04/10] 397051 Make JDBCLoginService data members protected to facilitate subclassing --- .../jetty/security/JDBCLoginService.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/JDBCLoginService.java b/jetty-security/src/main/java/org/eclipse/jetty/security/JDBCLoginService.java index f0a7de92eff..58db6e47274 100644 --- a/jetty-security/src/main/java/org/eclipse/jetty/security/JDBCLoginService.java +++ b/jetty-security/src/main/java/org/eclipse/jetty/security/JDBCLoginService.java @@ -61,19 +61,19 @@ public class JDBCLoginService extends MappedLoginService { private static final Logger LOG = Log.getLogger(JDBCLoginService.class); - private String _config; - private String _jdbcDriver; - private String _url; - private String _userName; - private String _password; - private String _userTableKey; - private String _userTablePasswordField; - private String _roleTableRoleField; - private int _cacheTime; - private long _lastHashPurge; - private Connection _con; - private String _userSql; - private String _roleSql; + protected String _config; + protected String _jdbcDriver; + protected String _url; + protected String _userName; + protected String _password; + protected String _userTableKey; + protected String _userTablePasswordField; + protected String _roleTableRoleField; + protected int _cacheTime; + protected long _lastHashPurge; + protected Connection _con; + protected String _userSql; + protected String _roleSql; /* ------------------------------------------------------------ */ From b959a742d07bb1e0ab8bb3bf05073c59934b7e29 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Mon, 20 May 2013 09:20:28 -0500 Subject: [PATCH 05/10] [Bug 404508] enable overlay deployer --- jetty-overlay-deployer/pom.xml | 63 + .../src/main/assembly/config.xml | 18 + .../src/main/config/etc/jetty-overlay.xml | 24 + .../main/config/overlays/instances/README.TXT | 27 + .../src/main/config/overlays/nodes/README.TXT | 20 + .../main/config/overlays/templates/README.TXT | 32 + .../main/config/overlays/webapps/README.TXT | 6 + .../jetty/overlays/OverlayedAppProvider.java | 1523 +++++++++++++++++ .../jetty/overlays/TemplateContext.java | 290 ++++ .../eclipse/jetty/overlays/OverlayServer.java | 100 ++ .../overlays/OverlayedAppProviderTest.java | 589 +++++++ .../myfoo=blue/WEB-INF/classes/resourceA.txt | 1 + .../myfoo=blue/WEB-INF/classes/resourceB.txt | 1 + .../WEB-INF/lib-overlay/resources.jar | Bin 0 -> 921 bytes .../instances/myfoo=blue/WEB-INF/overlay.xml | 16 + .../myfoo=blue/WEB-INF/web-overlay.xml | 21 + .../myfoo=blue/lib/META-INF/MANIFEST.MF | 3 + .../instances/myfoo=blue/lib/resources.jar | Bin 0 -> 921 bytes .../overlays/instances/myfoo=blue/logo.png | Bin 0 -> 2128 bytes .../webapp/WEB-INF/classes/resourceA.txt | 1 + .../webapp/WEB-INF/classes/resourceB.txt | 1 + .../instances/myfoo=blue/webapp/logo.png | Bin 0 -> 2128 bytes .../myfoo=green/WEB-INF/classes/resourceA.txt | 1 + .../myfoo=green/WEB-INF/classes/resourceB.txt | 1 + .../WEB-INF/lib-overlay/resources.jar | Bin 0 -> 925 bytes .../instances/myfoo=green/WEB-INF/overlay.xml | 16 + .../myfoo=green/WEB-INF/web-overlay.xml | 21 + .../myfoo=green/lib/META-INF/MANIFEST.MF | 3 + .../instances/myfoo=green/lib/resources.jar | Bin 0 -> 925 bytes .../overlays/instances/myfoo=green/logo.png | Bin 0 -> 11230 bytes .../webapp/WEB-INF/classes/resourceA.txt | 1 + .../webapp/WEB-INF/classes/resourceB.txt | 1 + .../instances/myfoo=green/webapp/logo.png | Bin 0 -> 11230 bytes .../myfoo=red/WEB-INF/classes/resourceA.txt | 1 + .../myfoo=red/WEB-INF/classes/resourceB.txt | 1 + .../WEB-INF/lib-overlay/resources.jar | Bin 0 -> 917 bytes .../instances/myfoo=red/WEB-INF/overlay.xml | 16 + .../myfoo=red/WEB-INF/web-overlay.xml | 21 + .../myfoo=red/lib/META-INF/MANIFEST.MF | 3 + .../instances/myfoo=red/lib/resources.jar | Bin 0 -> 917 bytes .../overlays/instances/myfoo=red/logo.png | Bin 0 -> 4499 bytes .../webapp/WEB-INF/classes/resourceA.txt | 1 + .../webapp/WEB-INF/classes/resourceB.txt | 1 + .../instances/myfoo=red/webapp/logo.png | Bin 0 -> 4499 bytes .../instances/root=root/WEB-INF/overlay.xml | 12 + .../nodes/nodeA/WEB-INF/classes/resourceA.txt | 1 + .../nodes/nodeA/WEB-INF/classes/resourceB.txt | 1 + .../nodes/nodeA/WEB-INF/classes/resourceC.txt | 1 + .../nodes/nodeA/WEB-INF/classes/resourceD.txt | 1 + .../WEB-INF/lib-overlay/nodeResources.jar | Bin 0 -> 1119 bytes .../nodes/nodeA/WEB-INF/web-overlay.xml | 19 + .../nodes/nodeA/lib/META-INF/MANIFEST.MF | 3 + .../nodes/nodeA/lib/nodeResources.jar | Bin 0 -> 1119 bytes .../WEB-INF/classes/META-INF/MANIFEST.MF | 3 + .../webapp/WEB-INF/classes/resourceA.txt | 1 + .../webapp/WEB-INF/classes/resourceB.txt | 1 + .../webapp/WEB-INF/classes/resourceC.txt | 1 + .../webapp/WEB-INF/classes/resourceD.txt | 1 + .../home/overlays/nodes/nodeB/WEB-INF/web.xml | 19 + .../myfoo=foo/WEB-INF/classes/resourceA.txt | 1 + .../myfoo=foo/WEB-INF/classes/resourceB.txt | 1 + .../myfoo=foo/WEB-INF/classes/resourceC.txt | 1 + .../myfoo=foo/WEB-INF/classes/resourceD.txt | 1 + .../myfoo=foo/WEB-INF/classes/resourceE.txt | 1 + .../myfoo=foo/WEB-INF/classes/resourceF.txt | 1 + .../templates/myfoo=foo/WEB-INF/jetty-web.xml | 6 + .../WEB-INF/lib-overlay/templateResources.jar | Bin 0 -> 1409 bytes .../templates/myfoo=foo/WEB-INF/template.xml | 18 + .../myfoo=foo/WEB-INF/web-default.xml | 482 ++++++ .../myfoo=foo/WEB-INF/web-overlay.xml | 40 + .../overlays/templates/myfoo=foo/index.html | 10 + .../overlays/templates/myfoo=foo/index.jsp | 54 + .../myfoo=foo/lib/META-INF/MANIFEST.MF | 3 + .../myfoo=foo/lib/templateResources.jar | Bin 0 -> 1409 bytes .../overlays/templates/myfoo=foo/logo.png | Bin 0 -> 2001 bytes .../webapp/WEB-INF/classes/resourceA.txt | 1 + .../webapp/WEB-INF/classes/resourceB.txt | 1 + .../webapp/WEB-INF/classes/resourceC.txt | 1 + .../webapp/WEB-INF/classes/resourceD.txt | 1 + .../webapp/WEB-INF/classes/resourceE.txt | 1 + .../webapp/WEB-INF/classes/resourceF.txt | 1 + .../templates/myfoo=foo/webapp/index.html | 10 + .../templates/myfoo=foo/webapp/index.jsp | 54 + .../templates/myfoo=foo/webapp/logo.png | Bin 0 -> 2001 bytes .../templates/root/WEB-INF/overlay.xml | 18 + .../home/overlays/templates/root/index.html | 7 + .../overlays/templates/root/webapp/index.html | 7 + .../webapps/foo/WEB-INF/classes/resourceA.txt | 1 + .../webapps/foo/WEB-INF/classes/resourceB.txt | 1 + .../webapps/foo/WEB-INF/classes/resourceC.txt | 1 + .../webapps/foo/WEB-INF/classes/resourceD.txt | 1 + .../foo/WEB-INF/lib/webappResources.jar | Bin 0 -> 901 bytes .../home/overlays/webapps/foo/WEB-INF/web.xml | 21 + .../home/overlays/webapps/foo/index.html | 2 + .../eclipse/jetty/proxy/ProxyServletTest.java | 34 +- pom.xml | 1 + 96 files changed, 3664 insertions(+), 7 deletions(-) create mode 100644 jetty-overlay-deployer/pom.xml create mode 100644 jetty-overlay-deployer/src/main/assembly/config.xml create mode 100644 jetty-overlay-deployer/src/main/config/etc/jetty-overlay.xml create mode 100644 jetty-overlay-deployer/src/main/config/overlays/instances/README.TXT create mode 100644 jetty-overlay-deployer/src/main/config/overlays/nodes/README.TXT create mode 100644 jetty-overlay-deployer/src/main/config/overlays/templates/README.TXT create mode 100644 jetty-overlay-deployer/src/main/config/overlays/webapps/README.TXT create mode 100644 jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/OverlayedAppProvider.java create mode 100644 jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/TemplateContext.java create mode 100644 jetty-overlay-deployer/src/test/java/org/eclipse/jetty/overlays/OverlayServer.java create mode 100644 jetty-overlay-deployer/src/test/java/org/eclipse/jetty/overlays/OverlayedAppProviderTest.java create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/lib-overlay/resources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/overlay.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/web-overlay.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/lib/META-INF/MANIFEST.MF create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/lib/resources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/logo.png create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/logo.png create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/lib-overlay/resources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/overlay.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/web-overlay.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/lib/META-INF/MANIFEST.MF create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/lib/resources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/logo.png create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/logo.png create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/lib-overlay/resources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/overlay.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/web-overlay.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/lib/META-INF/MANIFEST.MF create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/lib/resources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/logo.png create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/logo.png create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/instances/root=root/WEB-INF/overlay.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceC.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceD.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/lib-overlay/nodeResources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/web-overlay.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/lib/META-INF/MANIFEST.MF create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/lib/nodeResources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/META-INF/MANIFEST.MF create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceC.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceD.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeB/WEB-INF/web.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceC.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceD.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceE.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceF.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/jetty-web.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/lib-overlay/templateResources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/template.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/web-default.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/web-overlay.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/index.html create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/index.jsp create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/lib/META-INF/MANIFEST.MF create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/lib/templateResources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/logo.png create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/WEB-INF/classes/resourceC.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/WEB-INF/classes/resourceD.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/WEB-INF/classes/resourceE.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/WEB-INF/classes/resourceF.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/index.html create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/index.jsp create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/logo.png create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/root/WEB-INF/overlay.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/root/index.html create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/templates/root/webapp/index.html create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceA.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceB.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceC.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceD.txt create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/lib/webappResources.jar create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/web.xml create mode 100644 jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/index.html diff --git a/jetty-overlay-deployer/pom.xml b/jetty-overlay-deployer/pom.xml new file mode 100644 index 00000000000..8b853167ee7 --- /dev/null +++ b/jetty-overlay-deployer/pom.xml @@ -0,0 +1,63 @@ + + + org.eclipse.jetty + jetty-project + 9.0.4-SNAPSHOT + + 4.0.0 + jetty-overlay-deployer + Jetty :: Overlay Deployer + Overlayed deployer + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + package + + single + + + + ${basedir}/src/main/assembly/config.xml + + + + + + + + + + org.eclipse.jetty + jetty-deploy + ${project.version} + + + org.eclipse.jetty + jetty-server + ${project.version} + + + org.eclipse.jetty + jetty-plus + ${project.version} + + + org.eclipse.jetty.orbit + javax.transaction + test + + + org.eclipse.jetty.toolchain + jetty-test-helper + test + + + + + diff --git a/jetty-overlay-deployer/src/main/assembly/config.xml b/jetty-overlay-deployer/src/main/assembly/config.xml new file mode 100644 index 00000000000..b9b398e630e --- /dev/null +++ b/jetty-overlay-deployer/src/main/assembly/config.xml @@ -0,0 +1,18 @@ + + + config + false + + jar + + + + src/main/config + + + etc/** + overlays/** + + + + diff --git a/jetty-overlay-deployer/src/main/config/etc/jetty-overlay.xml b/jetty-overlay-deployer/src/main/config/etc/jetty-overlay.xml new file mode 100644 index 00000000000..62317a312e1 --- /dev/null +++ b/jetty-overlay-deployer/src/main/config/etc/jetty-overlay.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + /overlays + + 1 + + + + + diff --git a/jetty-overlay-deployer/src/main/config/overlays/instances/README.TXT b/jetty-overlay-deployer/src/main/config/overlays/instances/README.TXT new file mode 100644 index 00000000000..5dda0e30496 --- /dev/null +++ b/jetty-overlay-deployer/src/main/config/overlays/instances/README.TXT @@ -0,0 +1,27 @@ + + +Cloudtide instance +=================== + +This directory contains overlays (as directories or jars) that +are define instances of templates to be deployed. + +An instance filename consists of a template name, the '=' character (or '--' string) +and then an instance identifier. For example: + + mytemplate=redInstance + +This defines a instance called redInstance using the template called mytemplate. + +An overlay is structed as a WAR, but also may contain: + * WEB-INF/lib-overlay directory, which can contain jar files made available to + the overlay.xml configuration (unlike any overlayed WEB-INF/lib jars). + + * A WEB-INF/overlay.xml file, which is an XmlConfiguration format file used to + inject the ContextHandler instance. + + * A WEB-INF/web-overlay.xml fragment that is applied as an override descriptor + + * Static content that overlays the static content of the webapp, node and template. + + * WEB-INF/classes and WEB-INF/lib that overlays the code of the webapp, node and template. diff --git a/jetty-overlay-deployer/src/main/config/overlays/nodes/README.TXT b/jetty-overlay-deployer/src/main/config/overlays/nodes/README.TXT new file mode 100644 index 00000000000..d6e8595a06b --- /dev/null +++ b/jetty-overlay-deployer/src/main/config/overlays/nodes/README.TXT @@ -0,0 +1,20 @@ + + +Cloudtide nodes +=============== + +This directory contains overlays (as directories or jars) that +are applied to all instances for a given node. + +An overlay is structed as a WAR, but also may contain: + * WEB-INF/lib-overlay directory, which can contain jar files made available to + the overlay.xml configuration (unlike any overlayed WEB-INF/lib jars). + + * A WEB-INF/overlay.xml file, which is an XmlConfiguration format file used to + inject the ContextHandler instance. + + * A WEB-INF/web-overlay.xml fragment that is applied as an override descriptor + + * Static content that overlays the static content of the webapp, node and template. + + * WEB-INF/classes and WEB-INF/lib that overlays the code of the webapp, node and template. diff --git a/jetty-overlay-deployer/src/main/config/overlays/templates/README.TXT b/jetty-overlay-deployer/src/main/config/overlays/templates/README.TXT new file mode 100644 index 00000000000..52ed0d236ed --- /dev/null +++ b/jetty-overlay-deployer/src/main/config/overlays/templates/README.TXT @@ -0,0 +1,32 @@ + +Cloudtide templates +=================== + +This directory contains overlays (as directories or jars) that +are applied to webapps to create templates. Templates are not directly +deployed, but are used by overlays in the instances directory. + +A Template filename consists of a template name, the '=' character and +then the webapp name. For example: + + mytemplate=mywebapp-1.2.3 + +This defines a template called mytemplate that overlays either the mywebapp-1.2.3.war +file or the mywebapp-1.2.3 directory in cloudtide/webapps. + +An overlay is structed as a WAR, and may contain: + * WEB-INF/template.xml a XmlConfiguration formatted file that is applied to a shared + instance of TemplateContext to provide the common classloader and resource cache to + all instances of the template. + + * WEB-INF/lib-overlay directory, which can contain jar files made available to + the overlay.xml configuration (unlike any overlayed WEB-INF/lib jars). + + * A WEB-INF/overlay.xml file, which is an XmlConfiguration format file used to + inject the ContextHandler instance. + + * A WEB-INF/web-overlay.xml fragment that is applied as an override descriptor + + * Static content that overlays the static content of the webapp, node and template. + + * WEB-INF/classes and WEB-INF/lib that overlays the code of the webapp, node and template. diff --git a/jetty-overlay-deployer/src/main/config/overlays/webapps/README.TXT b/jetty-overlay-deployer/src/main/config/overlays/webapps/README.TXT new file mode 100644 index 00000000000..f709dce94d7 --- /dev/null +++ b/jetty-overlay-deployer/src/main/config/overlays/webapps/README.TXT @@ -0,0 +1,6 @@ + +Cloudtide webapplication +------------------------ + +This directory contains webapplication directories or war files that are used by the +cloudtide templates diff --git a/jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/OverlayedAppProvider.java b/jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/OverlayedAppProvider.java new file mode 100644 index 00000000000..6dab7c401ea --- /dev/null +++ b/jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/OverlayedAppProvider.java @@ -0,0 +1,1523 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +package org.eclipse.jetty.overlays; + +import java.io.File; +import java.io.IOException; +import java.net.InetAddress; +import java.net.MalformedURLException; +import java.net.URI; +import java.net.URL; +import java.net.URLClassLoader; +import java.net.UnknownHostException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Properties; +import java.util.Set; +import java.util.Timer; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.regex.Pattern; + +import javax.servlet.ServletContextEvent; +import javax.servlet.ServletContextListener; + +import org.eclipse.jetty.deploy.App; +import org.eclipse.jetty.deploy.AppProvider; +import org.eclipse.jetty.deploy.ConfigurationManager; +import org.eclipse.jetty.deploy.DeploymentManager; +import org.eclipse.jetty.jndi.java.javaRootURLContext; +import org.eclipse.jetty.jndi.local.localContextRoot; +import org.eclipse.jetty.server.ResourceCache; +import org.eclipse.jetty.server.Server; +import org.eclipse.jetty.server.handler.ContextHandler; +import org.eclipse.jetty.servlet.Holder; +import org.eclipse.jetty.servlet.ServletHandler; +import org.eclipse.jetty.util.IO; +import org.eclipse.jetty.util.Scanner; +import org.eclipse.jetty.util.component.AbstractLifeCycle; +import org.eclipse.jetty.util.log.Logger; +import org.eclipse.jetty.util.resource.JarResource; +import org.eclipse.jetty.util.resource.Resource; +import org.eclipse.jetty.util.resource.ResourceCollection; +import org.eclipse.jetty.webapp.JettyWebXmlConfiguration; +import org.eclipse.jetty.webapp.WebAppClassLoader; +import org.eclipse.jetty.webapp.WebAppContext; +import org.eclipse.jetty.xml.XmlConfiguration; +import org.xml.sax.SAXException; + +/** + * Overlayed AppProvider + *

+ * This {@link AppProvider} implementation can deploy either {@link WebAppContext}s or plain + * {@link ContextHandler}s that are assembled from a series of overlays: + *

+ *
webapp
The webapp overlay is a WAR file or docroot directory. The intent is that + * the WAR should be deployed to this AppProvider unchanged from how it was delivered. All configuration + * and extension should be able to be done in an overlay.
+ *
template
A template overlay is applied to a WAR file to configure it for all instances of + * the webapp to be deployed in the server(s)
+ *
node
A node overlay is applied to a template to configure it all instances of the template + * with node specific information (eg IP address, DB servers etc.).
+ *
instance
An instance overlay is applied to a node and/or template to configure it + * for a specific instance of the template (eg per tenant configuration).
+ *
+ *

+ * Each overlays may provide the following files and subdirectories:

+ *
WEB-INF/lib-overlay
+ *
The lib-overlay directory can contain jars that are applied to a {@link URLClassLoader} that is + * available before any overlay.xml files are executed, so that classes from these jars may be used by the + * overlay.xml.
+ * + *
WEB-INF/overlay.xml
+ *
This {@link XmlConfiguration} formatted file must exist in the WEB-INF directory of an overlay and is + * used to configure a {@link ContextHandler} or {@link WebAppContext}. The overlay.xml from the template + * overlay can be used to instantiate the ContextHandler instance, so a derived class maybe used.
+ * + *
WEB-INF/template.xml
+ *
This {@link XmlConfiguration} formatted file if it exists in a template or node overlay, is applied to a shared instance of {@link TemplateContext}. + * Any ID's created in a template are available as ID's in overlay.xml for an instance.
+ * + *
WEB-INF/webdefault.xml
+ *
If present in an overlay, then the most specific version is passed to + * {@link WebAppContext#setDefaultsDescriptor(String)}. Typically this is set in the template overlay.
+ * + *
WEB-INF/web-overlay.xml
+ *
The web-overlay.xml file of an overlay is applied to a web application as + * with {@link WebAppContext#addOverrideDescriptor(String)}. This allows incremental changes to web.xml without + * totally replacing it (see webapp). Typically this is used to set init parameters.
+ * + *
.
+ *
This root directory contains static content that overlays the static content of the webapp + * or earlier overlays. Using this directory, files like index.html or logo.png can be added or replaced. It can + * also be used to replace files within WEB-INF including web.xml classes and libs.
+ *
+ *

+ * Any init parameters set on the context, filters or servlets may have parameterized values, with the parameters + * including: + *

+ *
${overlays.dir}
+ *
the root overlay scan directory as a canonical file name.
+ *
${overlay.webapp}
+ *
the webapp name, same as {@link Webapp#getName()}.
+ *
${overlay.template}
+ *
the template name, as {@link Template#getName()}.
+ *
${overlay.template.name}
+ *
the template classifier, as {@link Template#getTemplateName()}.
+ *
${overlay.template.classifier}
+ *
the template classifier, as {@link Template#getClassifier()()}.
+ *
${overlay.node}
+ *
the node name, as {@link Node#getName()}.
+ *
${overlay.instance}
+ *
the instance name, {@link Instance#getName()}.
+ *
${overlay.instance.classifier}
+ *
the instance name, {@link Instance#getClassifier()()}.
+ *
${*}
+ *
Any properties obtained via {@link #getConfigurationManager()}.{@link ConfigurationManager#getProperties()}
+ *
+ *
+ *

+ * The OverlayedAppProvider will scan the "webapps", "templates", "nodes" and "instances" subdirectories of + * the directory configured with {@link #setScanDir(File)}. New webapps and overlays and modified files within + * the overlays will trigger hot deployment, redeployment or undeployment. The scan for modified files is + * restricted to only top level files (eg overlay.xml) and the files matching WEB-INF/*.xml WEB-INF/lib/* + * and WEB-INF/classes/*. The webapps/overlays may be directory structures or war/jar archives. + *

+ * The filenames of the templates and instances are used to match them together and with a webapplication. + * A webapp may be named anyway, but it is good practise to include a version number (eg webapps/foo-1.2.3.war + * or webapps/foo-1.2.3/). A template for that webapplication must have a name that includes the template name + * and the war name separated by '=' (eg templates/myFoo=foo-1.2.3.jar or templates/myFoo=foo-1.2.3/). + * An instance overlay is named with the template name and an arbitrary instance name separated by '=' + * (eg instances/myFoo=instance1.jar instances/myFoo=instance2/ etc.). + *

+ * If a template name does not include a webapp name, then the template is created as a ContextHandler + * instead of a WebAppContext (with the exact type being determined by overlay.xml). + */ +public class OverlayedAppProvider extends AbstractLifeCycle implements AppProvider +{ + private final static Logger __log=org.eclipse.jetty.util.log.Log.getLogger("OverlayedAppProvider"); + /** + * Property set for overlay.xml and template.xml files that gives the root overlay scan directory as a canonical file name. + */ + public final static String OVERLAYS_DIR="overlays.dir"; + /** + * Property set for overlay.xml and template.xml files that gives the current webapp name, as {@link Webapp#getName()}. + */ + public final static String OVERLAY_WEBAPP="overlay.webapp"; + /** + * Property set for overlay.xml and template.xml files that gives the current template full name, as {@link Template#getName()}. + */ + public final static String OVERLAY_TEMPLATE="overlay.template"; + /** + * Property set for overlay.xml and template.xml files that gives the current template name, as {@link Template#getTemplateName()}. + */ + public final static String OVERLAY_TEMPLATE_NAME="overlay.template.name"; + /** + * Property set for overlay.xml and template.xml files that gives the current template classifier, as {@link Template#getClassifier()}. + */ + public final static String OVERLAY_TEMPLATE_CLASSIFIER="overlay.template.classifier"; + /** + * Property set for overlay.xml and template.xml files that gives the current node name, as {@link Node#getName()}. + */ + public final static String OVERLAY_NODE="overlay.node"; + /** + * Property set for overlay.xml and template.xml files that gives the current instance name, {@link Instance#getName()}. + */ + public final static String OVERLAY_INSTANCE="overlay.instance"; + /** + * Property set for overlay.xml and template.xml files that gives the current instance clasifier, {@link Instance#getClassifier()}. + */ + public final static String OVERLAY_INSTANCE_CLASSIFIER="overlay.instance.classifier"; + + public final static String WEBAPPS="webapps"; + public final static String TEMPLATES="templates"; + public final static String NODES="nodes"; + public final static String INSTANCES="instances"; + + public final static String LIB="WEB-INF/lib-overlay"; + public final static String WEBAPP="."; + public final static String OVERLAY_XML="WEB-INF/overlay.xml"; + public final static String TEMPLATE_XML="WEB-INF/template.xml"; + public final static String WEB_DEFAULT_XML="WEB-INF/web-default.xml"; + public final static String WEB_FRAGMENT_XML="WEB-INF/web-overlay.xml"; + + enum Monitor { WEBAPPS,TEMPLATES,NODES,INSTANCES} ; + + public final static List __scanPatterns = new ArrayList(); + + static + { + List regexes = new ArrayList(); + + for (String s:new String[] {".war",".jar","/WEB-INF/syslib/[^/]*","/WEB-INF/lib/[^/]*","/WEB-INF/classes/[^/]*","/WEB-INF/[^/]*\\.xml",}) + { + regexes.add(WEBAPPS+"/[^/]*"+s); + regexes.add(TEMPLATES+"/[^/]*"+s); + regexes.add(NODES+"/[^/]*"+s); + regexes.add(INSTANCES+"/[^/]*"+s); + } + + for (String s: regexes) + __scanPatterns.add(Pattern.compile(s,Pattern.CASE_INSENSITIVE)); + }; + + private String _nodeName; + private File _scanDir; + private File _tmpDir; + private String _scanDirURI; + private long _loading; + private Node _node; + private final Map _webapps = new HashMap(); + private final Map _templates = new HashMap(); + private final Map _instances = new HashMap(); + private final Map _deployed = new HashMap(); + private final Map _shared = new HashMap(); + private boolean _copydir=false; + private DeploymentManager _deploymentManager; + private ConfigurationManager _configurationManager; + private String _serverID="Server"; + private final Set _removedLayers = new HashSet(); + private Timer _sessionScavenger = new Timer(); + + private final Scanner _scanner = new Scanner(); + private final Scanner.BulkListener _listener = new Scanner.BulkListener() + { + public void filesChanged(List filenames) throws Exception + { + __log.debug("Changed {}",filenames); + + Set changes = new HashSet(); + for (String filename:filenames) + { + + File file=new File(filename); + if (file.getName().startsWith(".") || file.getName().endsWith(".swp")) + continue; + + String relname=file.toURI().getPath().substring(_scanDirURI.length()); + + File rel = new File(relname); + + String dir=null; + String name=null; + String parent=rel.getParent(); + while (parent!=null) + { + name=rel.getName(); + dir=parent; + rel=rel.getParentFile(); + parent=rel.getParent(); + } + + String uri=dir+"/"+name; + + for (Pattern p : __scanPatterns) + { + if (p.matcher(relname).matches()) + { + __log.debug("{} == {}",relname,p.pattern()); + changes.add(uri); + } + else + __log.debug("{} != {}",relname,p.pattern()); + } + } + + if (changes.size()>0) + OverlayedAppProvider.this.updateLayers(changes); + } + }; + + + /* ------------------------------------------------------------ */ + public OverlayedAppProvider() + { + try + { + _nodeName=InetAddress.getLocalHost().getHostName(); + } + catch(UnknownHostException e) + { + __log.debug(e); + _nodeName="unknown"; + } + } + + + + /* ------------------------------------------------------------ */ + public void setDeploymentManager(DeploymentManager deploymentManager) + { + _deploymentManager=deploymentManager; + } + + /* ------------------------------------------------------------ */ + public DeploymentManager getDeploymentManager() + { + return _deploymentManager; + } + + /* ------------------------------------------------------------ */ + public ConfigurationManager getConfigurationManager() + { + return _configurationManager; + } + + /* ------------------------------------------------------------ */ + /** Set the configurationManager. + * @param configurationManager the configurationManager to set + */ + public void setConfigurationManager(ConfigurationManager configurationManager) + { + _configurationManager = configurationManager; + } + + /* ------------------------------------------------------------ */ + /** + * @return The name in {@link XmlConfiguration#getIdMap()} of the {@link Server} instance. Default "Server". + */ + public String getServerID() + { + return _serverID; + } + + /* ------------------------------------------------------------ */ + /** + * @param serverID The name in {@link XmlConfiguration#getIdMap()} of the {@link Server} instance. + */ + public void setServerID(String serverID) + { + _serverID = serverID; + } + + + /** + * Create Context Handler. + *

+ * Callback from the deployment manager to create a context handler instance. + * @see org.eclipse.jetty.deploy.AppProvider#createContextHandler(org.eclipse.jetty.deploy.App) + */ + public synchronized ContextHandler createContextHandler(App app) throws Exception + { + final OverlayedApp overlayed = (OverlayedApp)app; + final String origin = overlayed.getOriginId(); + final Instance instance = overlayed.getInstance(); + final Template template = instance.getTemplate(); + final Webapp webapp = template.getWebapp(); + final Node node = _node; + + // remember the original loader + ClassLoader orig_loader = Thread.currentThread().getContextClassLoader(); + try + { + // Look for existing shared resources + String key=(node==null?"":node.getLoadedKey())+template.getLoadedKey()+(webapp==null?"":webapp.getLoadedKey()); + instance.setSharedKey(key); + + TemplateContext shared=_shared.get(key); + // Create shared resourced + if (shared==null) + shared=createTemplateContext(key,webapp,template,node,orig_loader); + + // Build the instance lib loader + ClassLoader shared_loader = shared.getWebappLoader()!=null?shared.getWebappLoader():(shared.getLibLoader()!=null?shared.getLibLoader():orig_loader); + ClassLoader loader = shared_loader; + Resource instance_lib = instance.getResource(LIB); + if (instance_lib.exists()) + { + List libs = new ArrayList(); + for (String jar :instance_lib.list()) + { + if (!jar.toLowerCase(Locale.ENGLISH).endsWith(".jar")) + continue; + libs.add(instance_lib.addPath(jar).getURL()); + } + + __log.debug("{}: libs={}",origin,libs); + loader = URLClassLoader.newInstance(libs.toArray(new URL[]{}),loader); + } + + // set the thread loader + Thread.currentThread().setContextClassLoader(loader); + + // Create properties to be shared by overlay.xmls + Map idMap = new HashMap(); + idMap.putAll(shared.getIdMap()); + idMap.put(_serverID,getDeploymentManager().getServer()); + + // Create the instance context for the template + ContextHandler context=null; + + Resource template_context_xml = template.getResource(OVERLAY_XML); + if (template_context_xml.exists()) + { + __log.debug("{}: overlay.xml={}",origin,template_context_xml); + XmlConfiguration xmlc = newXmlConfiguration(template_context_xml.getURL(),idMap,template,instance); + context=(ContextHandler)xmlc.configure(); + idMap=xmlc.getIdMap(); + } + else if (webapp==null) + // If there is no webapp, this is a plain context + context=new ContextHandler(); + else + // It is a webapp context + context=new WebAppContext(); + + // Set the resource base + final Resource instance_webapp = instance.getResource(WEBAPP); + if (instance_webapp.exists()) + { + context.setBaseResource(new ResourceCollection(instance_webapp,shared.getBaseResource())); + + // Create the resource cache + ResourceCache cache = new ResourceCache(shared.getResourceCache(),instance_webapp,context.getMimeTypes(),false,false); + context.setAttribute(ResourceCache.class.getCanonicalName(),cache); + } + else + { + context.setBaseResource(shared.getBaseResource()); + context.setAttribute(ResourceCache.class.getCanonicalName(),shared.getResourceCache()); + } + __log.debug("{}: baseResource={}",origin,context.getResourceBase()); + + // Set the shared session scavenger timer + context.setAttribute("org.eclipse.jetty.server.session.timer", _sessionScavenger); + + // Apply any node or instance overlay.xml + for (Resource context_xml : getLayeredResources(OVERLAY_XML,node,instance)) + { + __log.debug("{}: overlay.xml={}",origin,context_xml); + XmlConfiguration xmlc = newXmlConfiguration(context_xml.getURL(),idMap,template,instance); + xmlc.getIdMap().put("Cache",context.getAttribute(ResourceCache.class.getCanonicalName())); + xmlc.configure(context); + idMap=xmlc.getIdMap(); + } + + // Is it a webapp? + if (context instanceof WebAppContext) + { + final WebAppContext webappcontext = (WebAppContext)context; + + if (Arrays.asList(((WebAppContext)context).getServerClasses()).toString().equals(Arrays.asList(WebAppContext.__dftServerClasses).toString())) + { + __log.debug("clear server classes"); + webappcontext.setServerClasses(null); + } + + // set classloader + webappcontext.setCopyWebDir(false); + webappcontext.setCopyWebInf(false); + webappcontext.setExtractWAR(false); + + if (instance_webapp.exists()) + { + final Resource classes=instance_webapp.addPath("WEB-INF/classes"); + final Resource lib=instance_webapp.addPath("WEB-INF/lib"); + + if (classes.exists()||lib.exists()) + { + final AtomicBoolean locked =new AtomicBoolean(false); + + WebAppClassLoader webapp_loader=new WebAppClassLoader(loader,webappcontext) + { + @Override + public void addClassPath(Resource resource) throws IOException + { + if (!locked.get()) + super.addClassPath(resource); + } + + @Override + public void addClassPath(String classPath) throws IOException + { + if (!locked.get()) + super.addClassPath(classPath); + } + + @Override + public void addJars(Resource lib) + { + if (!locked.get()) + super.addJars(lib); + } + }; + + if (classes.exists()) + webapp_loader.addClassPath(classes); + if (lib.exists()) + webapp_loader.addJars(lib); + locked.set(true); + + loader=webapp_loader; + } + } + + // Make sure loader is unique for JNDI + if (loader==shared_loader) + loader = new URLClassLoader(new URL[]{},shared_loader); + + // add default descriptor + List webdefaults=getLayeredResources(WEB_DEFAULT_XML,instance,node,template); + if (webdefaults.size()>0) + { + Resource webdefault = webdefaults.get(0); + __log.debug("{}: defaultweb={}",origin,webdefault); + webappcontext.setDefaultsDescriptor(webdefault.toString()); + } + + // add overlay descriptors + for (Resource override : getLayeredResources(WEB_FRAGMENT_XML,template,node,instance)) + { + __log.debug("{}: web override={}",origin,override); + webappcontext.addOverrideDescriptor(override.toString()); + } + } + + context.setClassLoader(loader); + + __log.debug("{}: baseResource={}",origin,context.getBaseResource()); + + Resource jetty_web_xml = context.getResource("/WEB-INF/"+JettyWebXmlConfiguration.JETTY_WEB_XML); + if (jetty_web_xml!=null && jetty_web_xml.exists()) + context.setAttribute(JettyWebXmlConfiguration.XML_CONFIGURATION,newXmlConfiguration(jetty_web_xml.getURL(),idMap,template,instance)); + + // Add listener to expand parameters from descriptors before other listeners execute + Map params = new HashMap(); + populateParameters(params,template,instance); + context.addEventListener(new ParameterExpander(params,context)); + + System.err.println("created:\n"+context.dump()); + + return context; + } + finally + { + Thread.currentThread().setContextClassLoader(orig_loader); + } + } + + /* ------------------------------------------------------------ */ + private XmlConfiguration newXmlConfiguration(URL url, Map idMap, Template template, Instance instance) throws SAXException, IOException + { + XmlConfiguration xmlc = new XmlConfiguration(url); + populateParameters(xmlc.getProperties(),template,instance); + xmlc.getIdMap().putAll(idMap); + + return xmlc; + } + + /* ------------------------------------------------------------ */ + private void populateParameters(Map params,Template template, Instance instance) + { + try + { + params.put(OVERLAYS_DIR,_scanDir.getCanonicalPath()); + if (template!=null) + { + params.put(OVERLAY_TEMPLATE,template.getName()); + params.put(OVERLAY_TEMPLATE_NAME,template.getTemplateName()); + params.put(OVERLAY_TEMPLATE_CLASSIFIER,template.getClassifier()); + params.put(OVERLAY_WEBAPP,template.getWebapp()==null?null:template.getWebapp().getName()); + } + if (_node!=null) + params.put(OVERLAY_NODE,_node.getName()); + if (instance!=null) + { + params.put(OVERLAY_INSTANCE,instance.getName()); + params.put(OVERLAY_INSTANCE_CLASSIFIER,instance.getClassifier()); + } + if (getConfigurationManager()!=null) + params.putAll(getConfigurationManager().getProperties()); + } + catch(Exception e) + { + throw new RuntimeException(e); + } + } + + + /* ------------------------------------------------------------ */ + private TemplateContext createTemplateContext(final String key, Webapp webapp, Template template, Node node, ClassLoader parent) throws Exception + { + __log.info("created {}",key); + + // look for libs + // If we have libs directories, create classloader and make it available to + // the XMLconfiguration + List libs = new ArrayList(); + for (Resource lib : getLayeredResources(LIB,node,template)) + { + for (String jar :lib.list()) + { + if (!jar.toLowerCase(Locale.ENGLISH).endsWith(".jar")) + continue; + libs.add(lib.addPath(jar).getURL()); + } + } + final ClassLoader libLoader; + if (libs.size()>0) + { + __log.debug("{}: libs={}",key,libs); + libLoader=new URLClassLoader(libs.toArray(new URL[]{}),parent) + { + public String toString() {return "libLoader@"+Long.toHexString(hashCode())+"-lib-"+key;} + }; + + } + else + libLoader=parent; + + Thread.currentThread().setContextClassLoader(libLoader); + + + // Make the shared resourceBase + List bases = new ArrayList(); + for (Resource wa : getLayers(node,template)) + bases.add(wa); + if (webapp!=null) + bases.add(webapp.getBaseResource()); + Resource baseResource = bases.size()==1?bases.get(0):new ResourceCollection(bases.toArray(new Resource[bases.size()])); + __log.debug("{}: baseResource={}",key,baseResource); + + + // Make the shared context + TemplateContext shared = new TemplateContext(key,getDeploymentManager().getServer(),baseResource,libLoader); + _shared.put(key,shared); + + + // Create properties to be shared by overlay.xmls + Map idMap = new HashMap(); + idMap.put(_serverID,getDeploymentManager().getServer()); + + + // Create the shared context for the template + // This instance will never be start, but is used to capture the + // shared results of running the template and node overlay.xml files. + // If there is a template overlay.xml, give it the chance to create the ContextHandler instance + // otherwise create an instance ourselves + for (Resource template_xml : getLayeredResources(TEMPLATE_XML,template,node)) + { + __log.debug("{}: template.xml={}",key,template_xml); + XmlConfiguration xmlc = newXmlConfiguration(template_xml.getURL(),idMap,template,null); + xmlc.getIdMap().putAll(idMap); + xmlc.configure(shared); + idMap=xmlc.getIdMap(); + } + + shared.setIdMap(idMap); + shared.start(); + + return shared; + } + + /* ------------------------------------------------------------ */ + /** + * @return The node name (defaults to hostname) + */ + public String getNodeName() + { + return _nodeName; + } + + /* ------------------------------------------------------------ */ + /** + * @param nodeName Set the node name + */ + public void setNodeName(String nodeName) + { + _nodeName = nodeName; + } + + /* ------------------------------------------------------------ */ + /** Get the scanDir. + * @return the scanDir + */ + public File getScanDir() + { + return _scanDir; + } + + /* ------------------------------------------------------------ */ + /** Set the scanDir. + * @param scanDir the scanDir to set + */ + public void setScanDir(File scanDir) + { + _scanDir = scanDir; + } + + /* ------------------------------------------------------------ */ + /** Set the temporary directory. + * @param tmpDir the directory for temporary files. If null, then getScanDir()+"/tmp" is used if it exists, else the system default is used. + */ + public void setTmpDir(File tmpDir) + { + _tmpDir=tmpDir; + } + + /* ------------------------------------------------------------ */ + /** Get the temporary directory. + * return the tmpDir. If null, then getScanDir()+"/tmp" is used if it exists, else the system default is used. + */ + public File getTmpDir() + { + return _tmpDir; + } + + /* ------------------------------------------------------------ */ + /** + * @return The scan interval + * @see org.eclipse.jetty.util.Scanner#getScanInterval() + */ + public int getScanInterval() + { + return _scanner.getScanInterval(); + } + + /* ------------------------------------------------------------ */ + /** + * @param scanInterval The scan interval + * @see org.eclipse.jetty.util.Scanner#setScanInterval(int) + */ + public void setScanInterval(int scanInterval) + { + _scanner.setScanInterval(scanInterval); + } + + /* ------------------------------------------------------------ */ + /** + * @see org.eclipse.jetty.util.Scanner#scan() + */ + public void scan() + { + _scanner.scan(); + } + + /* ------------------------------------------------------------ */ + /** + * @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart() + */ + @Override + protected void doStart() throws Exception + { + __log.info("Node={} Scan=",_nodeName,_scanDir); + if (_scanDir==null || !_scanDir.exists()) + throw new IllegalStateException("!scandir"); + + _scanDirURI=_scanDir.toURI().getPath(); + _scanner.setScanDepth(6); // enough for templates/name/webapps/WEB-INF/lib/foo.jar + List dirs = Arrays.asList(new File[] + { + new File(_scanDir,WEBAPPS), + new File(_scanDir,TEMPLATES), + new File(_scanDir,NODES), + new File(_scanDir,INSTANCES) + }); + for (File file : dirs) + { + if (!file.exists() && !file.isDirectory()) + __log.warn("No directory: "+file.getAbsolutePath()); + } + _scanner.setScanDirs(dirs); + _scanner.addListener(_listener); + _scanner.start(); + + super.doStart(); + } + + /* ------------------------------------------------------------ */ + /** + * @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStop() + */ + @Override + protected void doStop() throws Exception + { + _scanner.removeListener(_listener); + _scanner.stop(); + + if (_deploymentManager.isRunning()) + { + for (App app: _deployed.values()) + _deploymentManager.removeApp(app); + } + _deployed.clear(); + + for (Layer layer : _webapps.values()) + layer.release(); + _webapps.clear(); + for (Layer layer : _templates.values()) + layer.release(); + _templates.clear(); + if (_node!=null) + _node.release(); + for (Layer layer : _instances.values()) + layer.release(); + _instances.clear(); + + super.doStop(); + } + + /* ------------------------------------------------------------ */ + protected synchronized void updateLayers(Set layerURIs) + { + _loading=System.currentTimeMillis(); + for (String ruri: layerURIs) + { + try + { + // Decompose the name + File directory; + File archive; + File origin = new File(new URI(_scanDir.toURI()+ruri)); + String name=origin.getName(); + + Monitor monitor = Monitor.valueOf(origin.getParentFile().getName().toUpperCase(Locale.ENGLISH)); + + String ext=".war"; + + // check directory vs archive + if (origin.isDirectory() || !origin.exists() && !ruri.toLowerCase(Locale.ENGLISH).endsWith(ext)) + { + // directories have priority over archives + directory=origin; + archive=new File(directory.toString()+ext); + } + else + { + // check extension name + if (!ruri.toLowerCase(Locale.ENGLISH).endsWith(ext)) + continue; + + name=name.substring(0,name.length()-4); + archive=origin; + directory=new File(new URI(_scanDir.toURI()+ruri.substring(0,ruri.length()-4))); + + // Look to see if directory exists + if (directory.exists()) + { + __log.info("Directory exists, ignoring change to {}",ruri); + continue; + } + } + + Layer layer=null; + + switch(monitor) + { + case WEBAPPS: + if (origin.exists()) + layer=loadWebapp(name,origin); + else + { + removeWebapp(name); + if (origin==directory && archive.exists()) + layer=loadWebapp(name,archive); + } + + break; + + case TEMPLATES: + if (origin.exists()) + layer=loadTemplate(name,origin); + else + { + removeTemplate(name); + if (origin==directory && archive.exists()) + layer=loadTemplate(name,archive); + } + break; + + case NODES: + if (name.equalsIgnoreCase(_nodeName)) + { + if (origin.exists()) + layer=loadNode(origin); + else + { + removeNode(); + if (origin==directory && archive.exists()) + layer=loadNode(archive); + } + } + break; + + case INSTANCES: + if (origin.exists()) + layer=loadInstance(name,origin); + else + { + removeInstance(name); + if (origin==directory && archive.exists()) + layer=loadInstance(name,archive); + } + break; + + } + + if (layer!=null) + __log.info("loaded {}",layer.getLoadedKey()); + } + catch(Exception e) + { + __log.warn(e); + } + } + + redeploy(); + + // Release removed layers + for (Layer layer : _removedLayers) + { + if (layer!=null) + { + __log.info("unload {}",layer.getLoadedKey()); + layer.release(); + } + } + _removedLayers.clear(); + + if (__log.isDebugEnabled()) + { + System.err.println("updated:"); + System.err.println("java:"+javaRootURLContext.getRoot().dump()); + System.err.println("local:"+localContextRoot.getRoot().dump()); + if (getDeploymentManager()!=null && getDeploymentManager().getServer()!=null) + System.err.println(getDeploymentManager().getServer().dump()); + } + } + + /* ------------------------------------------------------------ */ + protected File tmpdir(String name,String suffix) throws IOException + { + File dir=_tmpDir; + if (dir==null || !dir.isDirectory() || !dir.canWrite()) + { + dir=new File(_scanDir,"tmp"); + if (!dir.isDirectory() || !dir.canWrite()) + dir=null; + } + + File tmp = File.createTempFile(name+"_","."+suffix,dir); + tmp=tmp.getCanonicalFile(); + if (tmp.exists()) + IO.delete(tmp); + tmp.mkdir(); + tmp.deleteOnExit(); + return tmp; + } + + /* ------------------------------------------------------------ */ + /** + * Walks the defined webapps, templates, nodes and instances to + * determine what should be deployed, then adjust reality to match. + */ + protected void redeploy() + { + Map templates = new ConcurrentHashMap(); + + // Check for duplicate templates + for (Template template : _templates.values()) + { + Template other=templates.get(template.getTemplateName()); + if (other!=null) + { + __log.warn("Multiple Templates: {} & {}",template.getName(),other.getName()); + if (other.getName().compareToIgnoreCase(template.getName())<=0) + continue; + } + templates.put(template.getTemplateName(),template); + } + + // Match webapps to templates + for (Template template : templates.values()) + { + String webappname=template.getClassifier(); + + if (webappname==null) + continue; + + Webapp webapp = _webapps.get(webappname); + + if (webapp==null) + { + __log.warn("No webapp found for template: {}",template.getName()); + templates.remove(template.getTemplateName()); + } + else + { + template.setWebapp(webapp); + } + } + + // Match instance to templates and check if what needs to be deployed or undeployed. + Set deployed = new HashSet(); + List deploy = new ArrayList(); + + for (Instance instance : _instances.values()) + { + Template template=templates.get(instance.getTemplateName()); + instance.setTemplate(template); + if (template!=null) + { + String key=instance.getInstanceKey(); + App app = _deployed.get(key); + if (app==null) + deploy.add(instance); + else + deployed.add(key); + } + } + + // Look for deployed apps that need to be undeployed + List undeploy = new ArrayList(); + for (String key : _deployed.keySet()) + { + if (!deployed.contains(key)) + undeploy.add(key); + } + + // Do the undeploys + for (String key : undeploy) + { + App app = _deployed.remove(key); + if (app!=null) + { + __log.info("Undeploy {}",key); + _deploymentManager.removeApp(app); + } + } + + // ready the deploys + for (Instance instance : deploy) + { + String key=instance.getInstanceKey(); + OverlayedApp app = new OverlayedApp(_deploymentManager,this,key,instance); + _deployed.put(key,app); + } + + // Remove unused Shared stuff + Set sharedKeys = new HashSet(_shared.keySet()); + for (OverlayedApp app : _deployed.values()) + { + Instance instance = app.getInstance(); + sharedKeys.remove(instance.getSharedKey()); + } + for (String sharedKey: sharedKeys) + { + __log.debug("Remove "+sharedKey); + TemplateContext shared=_shared.remove(sharedKey); + if (shared!=null) + { + try + { + shared.stop(); + } + catch(Exception e) + { + __log.warn(e); + } + shared.destroy(); + } + } + + // Do the deploys + for (Instance instance : deploy) + { + String key=instance.getInstanceKey(); + OverlayedApp app = _deployed.get(key); + __log.info("Deploy {}",key); + _deploymentManager.addApp(app); + } + + + } + + /* ------------------------------------------------------------ */ + protected void removeInstance(String name) + { + _removedLayers.add(_instances.remove(name)); + } + + /* ------------------------------------------------------------ */ + protected Instance loadInstance(String name, File origin) + throws IOException + { + Instance instance=new Instance(name,origin); + _removedLayers.add(_instances.put(name,instance)); + return instance; + } + + /* ------------------------------------------------------------ */ + protected void removeNode() + { + if (_node!=null) + _removedLayers.add(_node); + _node=null; + } + + /* ------------------------------------------------------------ */ + protected Node loadNode(File origin) + throws IOException + { + if (_node!=null) + _removedLayers.add(_node); + _node=new Node(_nodeName,origin); + return _node; + } + + /* ------------------------------------------------------------ */ + protected void removeTemplate(String name) + { + _removedLayers.add(_templates.remove(name)); + } + + /* ------------------------------------------------------------ */ + protected Template loadTemplate(String name, File origin) + throws IOException + { + Template template=new Template(name,origin); + _removedLayers.add(_templates.put(name,template)); + return template; + } + + protected void removeWebapp(String name) + { + _removedLayers.add(_webapps.remove(name)); + } + + /* ------------------------------------------------------------ */ + protected Webapp loadWebapp(String name, File origin) + throws IOException + { + Webapp webapp = new Webapp(name,origin); + _removedLayers.add(_webapps.put(name,webapp)); + return webapp; + } + + /* ------------------------------------------------------------ */ + private static List getLayers(Layer... layers) + { + List resources = new ArrayList(); + for (Layer layer: layers) + { + if (layer==null) + continue; + Resource resource = layer.getBaseResource(); + if (resource.exists()) + resources.add(resource); + } + return resources; + } + + /* ------------------------------------------------------------ */ + private static List getLayeredResources(String path, Layer... layers) + { + List resources = new ArrayList(); + for (Layer layer: layers) + { + if (layer==null) + continue; + Resource resource = layer.getResource(path); + if (resource.exists()) + resources.add(resource); + } + return resources; + } + + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + class Layer + { + private final String _name; + private final File _origin; + private final long _loaded=_loading; + private final Resource _resourceBase; + private final boolean _resourceBaseIsCopy; + + public Layer(String name, File origin) + throws IOException + { + super(); + _name = name; + _origin = origin; + + Resource resource = Resource.newResource(origin.toURI()); + + if (resource.isDirectory()) + { + if (_copydir) + { + File tmp=tmpdir(name,"extract"); + __log.info("Extract {} to {}",origin,tmp); + IO.copyDir(origin,tmp); + _resourceBase=Resource.newResource(tmp.toURI()); + _resourceBaseIsCopy=true; + } + else + { + _resourceBase=resource; + _resourceBaseIsCopy=false; + } + } + else + { + Resource jar = JarResource.newJarResource(resource); + File tmp=tmpdir(name,"extract"); + __log.info("Extract {} to {}",jar,tmp); + jar.copyTo(tmp); + _resourceBase=Resource.newResource(tmp.toURI()); + _resourceBaseIsCopy=true; + } + } + + public String getName() + { + return _name; + } + + public File getOrigin() + { + return _origin; + } + + public long getLoaded() + { + return _loaded; + } + + public Resource getBaseResource() + { + return _resourceBase; + } + + public Resource getResource(String path) + { + try + { + return getBaseResource().addPath(path); + } + catch(Exception e) + { + __log.warn(e); + } + return null; + } + + public String getLoadedKey() + { + return _name+"@"+_loaded; + } + + public void release() + { + if (_resourceBaseIsCopy) + { + try + { + File file = _resourceBase.getFile(); + if (file!=null) + IO.delete(file); + } + catch(Exception e) + { + __log.warn(e); + } + } + } + + public String toString() + { + return getLoadedKey(); + } + } + + class Webapp extends Layer + { + public Webapp(String name, File origin) throws IOException + { + super(name,origin); + } + } + + class Overlay extends Layer + { + public Overlay(String name, File origin) throws IOException + { + super(name,origin); + } + + public Resource getContext() + { + return getResource(OVERLAY_XML); + } + } + + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + class Node extends Overlay + { + public Node(String name, File origin) throws IOException + { + super(name,origin); + } + } + + + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + class ClassifiedOverlay extends Overlay + { + private final String _templateName; + private final String _classifier; + + public ClassifiedOverlay(String name, File origin) throws IOException + { + super(name,origin); + + int l=1; + int e=name.indexOf('='); + if (e<0) + { + l=2; + e=name.indexOf("--"); + } + _templateName=e>=0?name.substring(0,e):name; + _classifier=e>=0?name.substring(e+l):null; + } + + public String getTemplateName() + { + return _templateName; + } + + public String getClassifier() + { + return _classifier; + } + } + + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + class Template extends ClassifiedOverlay + { + private Webapp _webapp; + + public Webapp getWebapp() + { + return _webapp; + } + + public void setWebapp(Webapp webapp) + { + _webapp = webapp; + } + + public Template(String name, File origin) throws IOException + { + super(name,origin); + } + } + + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + class Instance extends ClassifiedOverlay + { + Template _template; + String _sharedKey; + + public Instance(String name, File origin) throws IOException + { + super(name,origin); + if (getClassifier()==null) + throw new IllegalArgumentException("Instance without '=':"+name); + } + + public void setSharedKey(String key) + { + _sharedKey=key; + } + + public String getSharedKey() + { + return _sharedKey; + } + + public void setTemplate(Template template) + { + _template=template; + } + + public Template getTemplate() + { + return _template; + } + + public String getInstanceKey() + { + return + (_template.getWebapp()==null?"":_template.getWebapp().getLoadedKey())+"|"+ + _template.getLoadedKey()+"|"+ + (_node==null?"":_node.getLoadedKey())+"|"+ + getLoadedKey(); + } + } + + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + static class OverlayedApp extends App + { + final Instance _instance; + + public OverlayedApp(DeploymentManager manager, AppProvider provider, String originId, Instance instance) + { + super(manager,provider,originId); + _instance=instance; + } + + public Instance getInstance() + { + return _instance; + } + } + + + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + /* ------------------------------------------------------------ */ + private final class ParameterExpander implements ServletContextListener + { + private final Map _params; + private final ContextHandler _ctx; + + private ParameterExpander(Map params, ContextHandler ctx) + { + _params = params; + _ctx = ctx; + } + + public void contextInitialized(ServletContextEvent sce) + { + Enumeration e=_ctx.getInitParameterNames(); + while (e.hasMoreElements()) + { + String name = e.nextElement(); + _ctx.setInitParameter(name,expandParameter(_ctx.getInitParameter(name))); + } + + ServletHandler servletHandler = _ctx.getChildHandlerByClass(ServletHandler.class); + if (servletHandler!=null) + { + List> holders = new ArrayList>(); + if (servletHandler.getFilters()!=null) + holders.addAll(Arrays.asList(servletHandler.getFilters())); + if (servletHandler.getHandler()!=null) + holders.addAll(Arrays.asList(servletHandler.getServlets())); + for (Holder holder: holders) + { + e=holder.getInitParameterNames(); + while (e.hasMoreElements()) + { + String name = e.nextElement(); + holder.setInitParameter(name,expandParameter(holder.getInitParameter(name))); + } + } + } + } + + private String expandParameter(String value) + { + int i=0; + while (true) + { + int open=value.indexOf("${",i); + if (open<0) + return value; + int close=value.indexOf("}",open); + if (close<0) + return value; + + String param = value.substring(open+2,close); + if (_params.containsKey(param)) + { + String tmp=value.substring(0,open)+_params.get(param); + i=tmp.length(); + value=tmp+value.substring(close+1); + } + else + i=close+1; + } + } + + public void contextDestroyed(ServletContextEvent sce) + { + } + } +} diff --git a/jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/TemplateContext.java b/jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/TemplateContext.java new file mode 100644 index 00000000000..081451c3eb5 --- /dev/null +++ b/jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/TemplateContext.java @@ -0,0 +1,290 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +package org.eclipse.jetty.overlays; + +import java.io.IOException; +import java.security.PermissionCollection; +import java.util.Map; + +import org.eclipse.jetty.http.MimeTypes; +import org.eclipse.jetty.server.ResourceCache; +import org.eclipse.jetty.server.Server; +import org.eclipse.jetty.util.component.ContainerLifeCycle; +import org.eclipse.jetty.util.component.Destroyable; +import org.eclipse.jetty.util.resource.Resource; +import org.eclipse.jetty.webapp.ClasspathPattern; +import org.eclipse.jetty.webapp.WebAppClassLoader; +import org.eclipse.jetty.webapp.WebAppContext; +import org.eclipse.jetty.xml.XmlConfiguration; + +/** + * A Cloudtide template context. + *

+ * This class is configured by the template.xml files and is used to control the + * shared resource cache and classloader. + *

+ * This class is an AggregateLifeCycle, so dependent beans may be added to the template and will be started, stopped and destroyed with the template. + * The template is started after the template.xml file have been applied. It is stopped and destroyed after the last instance using the template is undeployed. + */ +public class TemplateContext extends ContainerLifeCycle implements WebAppClassLoader.Context, Destroyable +{ + private final ClassLoader _libLoader; + + private final Resource _baseResource; + private final ResourceCache _resourceCache; + private final Server _server; + private final MimeTypes _mimeTypes; + private final WebAppClassLoader _webappLoader; + + private ClasspathPattern _systemClasses; + private ClasspathPattern _serverClasses; + private PermissionCollection _permissions; + + private boolean _parentLoaderPriority; + + private String _extraClasspath; + + private Map _idMap; + + + public ClassLoader getLibLoader() + { + return _libLoader; + } + + public TemplateContext() + { + _server=null; + _baseResource=null; + _mimeTypes=new MimeTypes(); + _resourceCache=null; + _webappLoader=null; + _libLoader=null; + } + + public TemplateContext(String key, Server server,Resource baseResource, ClassLoader libLoader) throws IOException + { + _server=server; + _baseResource=baseResource; + _mimeTypes=new MimeTypes(); + _resourceCache=new ResourceCache(null,baseResource,_mimeTypes,false,false); + + String[] patterns = (String[])_server.getAttribute(WebAppContext.SERVER_SRV_CLASSES); + _serverClasses=new ClasspathPattern(patterns==null?WebAppContext.__dftServerClasses:patterns); + patterns = (String[])_server.getAttribute(WebAppContext.SERVER_SYS_CLASSES); + _systemClasses=new ClasspathPattern(patterns==null?WebAppContext.__dftSystemClasses:patterns); + _libLoader=libLoader; + + + // Is this a webapp or a normal context + Resource classes=getBaseResource().addPath("WEB-INF/classes/"); + Resource lib=getBaseResource().addPath("WEB-INF/lib/"); + if (classes.exists() && classes.isDirectory() || lib.exists() && lib.isDirectory()) + { + _webappLoader=new WebAppClassLoader(_libLoader,this); + _webappLoader.setName(key); + if (classes.exists()) + _webappLoader.addClassPath(classes); + if (lib.exists()) + _webappLoader.addJars(lib); + } + else + _webappLoader=null; + + } + + /* ------------------------------------------------------------ */ + public Resource getBaseResource() + { + return _baseResource; + } + + /* ------------------------------------------------------------ */ + /** + * @return Comma or semicolon separated path of filenames or URLs + * pointing to directories or jar files. Directories should end + * with '/'. + */ + public String getExtraClasspath() + { + return _extraClasspath; + } + + /* ------------------------------------------------------------ */ + public MimeTypes getMimeTypes() + { + return _mimeTypes; + } + + + /* ------------------------------------------------------------ */ + public PermissionCollection getPermissions() + { + return _permissions; + } + + /* ------------------------------------------------------------ */ + public ResourceCache getResourceCache() + { + return _resourceCache; + } + + /* ------------------------------------------------------------ */ + public Server getServer() + { + return _server; + } + + /* ------------------------------------------------------------ */ + WebAppClassLoader getWebappLoader() + { + return _webappLoader; + } + + /* ------------------------------------------------------------ */ + public boolean isParentLoaderPriority() + { + return _parentLoaderPriority; + } + + /* ------------------------------------------------------------ */ + public boolean isServerClass(String clazz) + { + return _serverClasses.match(clazz); + } + + /* ------------------------------------------------------------ */ + public boolean isSystemClass(String clazz) + { + return _systemClasses.match(clazz); + } + + /* ------------------------------------------------------------ */ + public Resource newResource(String urlOrPath) throws IOException + { + return Resource.newResource(urlOrPath); + } + + /* ------------------------------------------------------------ */ + /** + * @param extraClasspath Comma or semicolon separated path of filenames or URLs + * pointing to directories or jar files. Directories should end + * with '/'. + */ + public void setExtraClasspath(String extraClasspath) + { + _extraClasspath=extraClasspath; + } + + /* ------------------------------------------------------------ */ + /** + * @param java2compliant The java2compliant to set. + */ + public void setParentLoaderPriority(boolean java2compliant) + { + _parentLoaderPriority = java2compliant; + } + + /* ------------------------------------------------------------ */ + /** + * @param permissions The permissions to set. + */ + public void setPermissions(PermissionCollection permissions) + { + _permissions = permissions; + } + + /* ------------------------------------------------------------ */ + /** + * Set the server classes patterns. + *

+ * Server classes/packages are classes used to implement the server and are hidden + * from the context. If the context needs to load these classes, it must have its + * own copy of them in WEB-INF/lib or WEB-INF/classes. + * A class pattern is a string of one of the forms:

+ *
org.package.Classname
Match a specific class
+ *
org.package.
Match a specific package hierarchy
+ *
-org.package.Classname
Exclude a specific class
+ *
-org.package.
Exclude a specific package hierarchy
+ *
+ * @param serverClasses The serverClasses to set. + */ + public void setServerClasses(String[] serverClasses) + { + _serverClasses = new ClasspathPattern(serverClasses); + } + + /* ------------------------------------------------------------ */ + /** + * Set the system classes patterns. + *

+ * System classes/packages are classes provided by the JVM and that + * cannot be replaced by classes of the same name from WEB-INF, + * regardless of the value of {@link #setParentLoaderPriority(boolean)}. + * A class pattern is a string of one of the forms:

+ *
org.package.Classname
Match a specific class
+ *
org.package.
Match a specific package hierarchy
+ *
-org.package.Classname
Exclude a specific class
+ *
-org.package.
Exclude a specific package hierarchy
+ *
+ * @param systemClasses The systemClasses to set. + */ + public void setSystemClasses(String[] systemClasses) + { + _systemClasses = new ClasspathPattern(systemClasses); + } + + /* ------------------------------------------------------------ */ + public void addSystemClass(String classname) + { + _systemClasses.addPattern(classname); + } + + /* ------------------------------------------------------------ */ + public void addServerClass(String classname) + { + _serverClasses.addPattern(classname); + } + + /* ------------------------------------------------------------ */ + public void destroy() + { + if (_baseResource!=null) + _baseResource.release(); + if (_resourceCache!=null) + _resourceCache.flushCache(); + if(_idMap!=null) + _idMap.clear(); + } + + /* ------------------------------------------------------------ */ + public void setIdMap(Map idMap) + { + _idMap=idMap; + } + + /* ------------------------------------------------------------ */ + public Map getIdMap() + { + return _idMap; + } + + + +} \ No newline at end of file diff --git a/jetty-overlay-deployer/src/test/java/org/eclipse/jetty/overlays/OverlayServer.java b/jetty-overlay-deployer/src/test/java/org/eclipse/jetty/overlays/OverlayServer.java new file mode 100644 index 00000000000..f7167ab7cd1 --- /dev/null +++ b/jetty-overlay-deployer/src/test/java/org/eclipse/jetty/overlays/OverlayServer.java @@ -0,0 +1,100 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +package org.eclipse.jetty.overlays; + +import java.io.File; + +import org.eclipse.jetty.deploy.DeploymentManager; +import org.eclipse.jetty.jndi.NamingUtil; +import org.eclipse.jetty.overlays.OverlayedAppProvider; +import org.eclipse.jetty.server.Handler; +import org.eclipse.jetty.server.Server; +import org.eclipse.jetty.server.ServerConnector; +import org.eclipse.jetty.server.handler.ContextHandlerCollection; +import org.eclipse.jetty.server.handler.DefaultHandler; +import org.eclipse.jetty.server.handler.HandlerCollection; +import org.eclipse.jetty.server.handler.RequestLogHandler; +import org.eclipse.jetty.server.handler.StatisticsHandler; + +public class OverlayServer +{ + public static void main(String[] args) throws Exception + { + // NamingUtil.__log.setDebugEnabled(true); + String jetty_home = System.getProperty("jetty.home","target/test-classes/home"); + System.setProperty("jetty.home",jetty_home); + + Server server = new Server(); + server.setAttribute("org.eclipse.jetty.webapp.configuration", + new String[] + { + org.eclipse.jetty.webapp.WebInfConfiguration.class.getCanonicalName(), + org.eclipse.jetty.webapp.WebXmlConfiguration.class.getCanonicalName(), + org.eclipse.jetty.webapp.MetaInfConfiguration.class.getCanonicalName(), + org.eclipse.jetty.webapp.FragmentConfiguration.class.getCanonicalName(), + org.eclipse.jetty.plus.webapp.EnvConfiguration.class.getCanonicalName(), + org.eclipse.jetty.plus.webapp.PlusConfiguration.class.getCanonicalName(), + org.eclipse.jetty.webapp.JettyWebXmlConfiguration.class.getCanonicalName(), + org.eclipse.jetty.webapp.TagLibConfiguration.class.getCanonicalName() + } + ); + + // Setup Connectors + ServerConnector connector = new ServerConnector(server); + connector.setPort(8080); + server.addConnector(connector); + + HandlerCollection handlers = new HandlerCollection(); + ContextHandlerCollection contexts = new ContextHandlerCollection(); + RequestLogHandler requestLogHandler = new RequestLogHandler(); + handlers.setHandlers(new Handler[] + { contexts, new DefaultHandler(), requestLogHandler }); + + StatisticsHandler stats = new StatisticsHandler(); + stats.setHandler(handlers); + + server.setHandler(stats); + + // Setup deployers + DeploymentManager deployer = new DeploymentManager(); + deployer.setContexts(contexts); + server.addBean(deployer); + + OverlayedAppProvider provider = new OverlayedAppProvider(); + + provider.setNodeName("nodeA"); + provider.setScanDir(new File(jetty_home + "/overlays")); + provider.setScanInterval(2); + + deployer.addAppProvider(provider); + + server.setStopAtShutdown(true); + //server.setSendServerVersion(true); + + // Uncomment to work with JNDI examples + // new org.eclipse.jetty.plus.jndi.Transaction(new com.atomikos.icatch.jta.UserTransactionImp()); + + + + + server.start(); + server.join(); + } + +} diff --git a/jetty-overlay-deployer/src/test/java/org/eclipse/jetty/overlays/OverlayedAppProviderTest.java b/jetty-overlay-deployer/src/test/java/org/eclipse/jetty/overlays/OverlayedAppProviderTest.java new file mode 100644 index 00000000000..9a5ed717935 --- /dev/null +++ b/jetty-overlay-deployer/src/test/java/org/eclipse/jetty/overlays/OverlayedAppProviderTest.java @@ -0,0 +1,589 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +package org.eclipse.jetty.overlays; + +import java.io.File; +import java.io.FileOutputStream; +import java.net.URI; +import java.net.URISyntaxException; +import java.util.Set; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.TimeUnit; + +import org.eclipse.jetty.util.IO; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + + +public class OverlayedAppProviderTest +{ + File _tmp; + File _scan; + File _webapps; + File _templates; + File _nodes; + File _instances; + + @Before + public void before() throws Exception + { + _tmp=File.createTempFile("OAPTest",null); + if (_tmp.exists()) + IO.delete(_tmp); + _tmp.mkdir(); + + _scan = new File(_tmp,"scan").getCanonicalFile(); + _webapps = new File(_scan,OverlayedAppProvider.WEBAPPS); + _templates = new File(_scan,OverlayedAppProvider.TEMPLATES); + _nodes = new File(_scan,OverlayedAppProvider.NODES); + _instances = new File(_scan,OverlayedAppProvider.INSTANCES); + _webapps.mkdirs(); + _templates.mkdir(); + _nodes.mkdir(); + _instances.mkdir(); + } + + @After + public void after() throws Exception + { + if (_tmp.exists()) + IO.delete(_tmp); + } + + @Test + public void testScanForWars() throws Exception + { + final ConcurrentLinkedQueue> scanned = new ConcurrentLinkedQueue>(); + OverlayedAppProvider provider = new OverlayedAppProvider() + { + /* ------------------------------------------------------------ */ + /** + * @see org.eclipse.jetty.overlays.OverlayedAppProvider#updateLayers(java.util.Set) + */ + @Override + protected void updateLayers(Set filenames) + { + scanned.offer(filenames); + } + }; + provider.setScanInterval(0); + + + provider.setScanDir(_scan); + provider.start(); + provider.scan(); + provider.scan(); + + assertTrue(scanned.isEmpty()); + + + // Check scanning for archives + File war = new File(_webapps,"foo-1.2.3.war"); + touch(war); + File template = new File(_templates,"foo=foo-1.2.3.war"); + touch(template); + File node = new File(_nodes,"nodeA.war"); + touch(node); + File instance = new File(_instances,"foo=instance.war"); + touch(instance); + + provider.scan(); + provider.scan(); + + Set results = scanned.poll(); + assertTrue(results!=null); + assertEquals(4,results.size()); + assertTrue(results.contains("webapps/foo-1.2.3.war")); + assertTrue(results.contains("templates/foo=foo-1.2.3.war")); + assertTrue(results.contains("nodes/nodeA.war")); + assertTrue(results.contains("instances/foo=instance.war")); + + provider.scan(); + provider.scan(); + assertTrue(scanned.isEmpty()); + + IO.delete(war); + IO.delete(template); + IO.delete(node); + IO.delete(instance); + + provider.scan(); + provider.scan(); + results = scanned.poll(); + assertTrue(results!=null); + assertEquals(4,results.size()); + assertTrue(results.contains("webapps/foo-1.2.3.war")); + assertTrue(results.contains("templates/foo=foo-1.2.3.war")); + assertTrue(results.contains("nodes/nodeA.war")); + assertTrue(results.contains("instances/foo=instance.war")); + + } + + @Test + public void testScanForDirs() throws Exception + { + final ConcurrentLinkedQueue> scanned = new ConcurrentLinkedQueue>(); + OverlayedAppProvider provider = new OverlayedAppProvider() + { + /* ------------------------------------------------------------ */ + /** + * @see org.eclipse.jetty.overlays.OverlayedAppProvider#updateLayers(java.util.Set) + */ + @Override + protected void updateLayers(Set filenames) + { + scanned.offer(filenames); + } + }; + provider.setScanInterval(0); + + + provider.setScanDir(_scan); + provider.start(); + provider.scan(); + + assertTrue(scanned.isEmpty()); + + + // Check scanning for directories + File war = new File(_webapps,"foo-1.2.3"); + war.mkdir(); + File template = new File(_templates,"foo=foo-1.2.3"); + template.mkdir(); + File node = new File(_nodes,"nodeA"); + node.mkdir(); + File instance = new File(_instances,"foo=instance"); + instance.mkdir(); + for (File f : new File[] { war,template,node,instance } ) + { + File webinf = new File(f,"WEB-INF"); + webinf.mkdir(); + touch(webinf,"web.xml"); + } + + provider.scan(); + provider.scan(); + + Set results = scanned.poll(); + assertTrue(results!=null); + assertEquals(4,results.size()); + assertTrue(results.contains("webapps/foo-1.2.3")); + assertTrue(results.contains("templates/foo=foo-1.2.3")); + assertTrue(results.contains("nodes/nodeA")); + assertTrue(results.contains("instances/foo=instance")); + + provider.scan(); + provider.scan(); + assertTrue(scanned.isEmpty()); + + + // Touch everything + touch(war,"WEB-INF/web.xml"); + touch(war,"WEB-INF/spring.XML"); + touch(war,"WEB-INF/other"); + touch(war,"WEB-INF/lib/bar.jar"); + touch(war,"WEB-INF/classes/bar.class"); + + for (File d : new File[]{template,node,instance}) + { + touch(d,"WEB-INF/web-fragment.xml"); + touch(d,"WEB-INF/overlay.xml"); + touch(d,"WEB-INF/other"); + touch(d,"WEB-INF/lib/bar.jar"); + } + + provider.scan(); + provider.scan(); + results = scanned.poll(); + assertTrue(results!=null); + assertEquals(4,results.size()); + assertTrue(results.contains("webapps/foo-1.2.3")); + assertTrue(results.contains("templates/foo=foo-1.2.3")); + assertTrue(results.contains("nodes/nodeA")); + assertTrue(results.contains("instances/foo=instance")); + + + // Touch xml + Thread.sleep(1000); // needed so last modified is different + for (File d : new File[]{war,template,node,instance}) + touch(d,"WEB-INF/web.xml"); + provider.scan(); + provider.scan(); + results = scanned.poll(); + assertTrue(results!=null); + assertEquals(4,results.size()); + assertTrue(results.contains("webapps/foo-1.2.3")); + assertTrue(results.contains("templates/foo=foo-1.2.3")); + assertTrue(results.contains("nodes/nodeA")); + assertTrue(results.contains("instances/foo=instance")); + + // Touch XML + Thread.sleep(1000); + for (File d : new File[]{war,template,node,instance}) + touch(d,"WEB-INF/spring.XML"); + provider.scan(); + provider.scan(); + results = scanned.poll(); + assertTrue(results!=null); + assertEquals(4,results.size()); + assertTrue(results.contains("webapps/foo-1.2.3")); + assertTrue(results.contains("templates/foo=foo-1.2.3")); + assertTrue(results.contains("nodes/nodeA")); + assertTrue(results.contains("instances/foo=instance")); + + + // Touch unrelated + for (File d : new File[]{war,template,node,instance}) + touch(d,"index.html"); + provider.scan(); + provider.scan(); + results = scanned.poll(); + assertEquals(null,results); + + // Touch jar + Thread.sleep(1000); + for (File d : new File[]{war,template,node,instance}) + touch(d,"WEB-INF/lib/bar.jar"); + provider.scan(); + provider.scan(); + results = scanned.poll(); + assertTrue(results!=null); + assertEquals(4,results.size()); + assertTrue(results.contains("webapps/foo-1.2.3")); + assertTrue(results.contains("templates/foo=foo-1.2.3")); + assertTrue(results.contains("nodes/nodeA")); + assertTrue(results.contains("instances/foo=instance")); + + // touch other class + Thread.sleep(1000); + for (File d : new File[]{war,template,node,instance}) + touch(d,"index.html"); + provider.scan(); + provider.scan(); + results = scanned.poll(); + assertTrue(scanned.isEmpty()); + + + // delete all + IO.delete(war); + IO.delete(template); + IO.delete(node); + IO.delete(instance); + + provider.scan(); + provider.scan(); + results = scanned.poll(); + assertTrue(results!=null); + assertEquals(4,results.size()); + assertTrue(results.contains("webapps/foo-1.2.3")); + assertTrue(results.contains("templates/foo=foo-1.2.3")); + assertTrue(results.contains("nodes/nodeA")); + assertTrue(results.contains("instances/foo=instance")); + + } + + + @Test + public void testTriageURI() throws Exception + { + final BlockingQueue scanned = new LinkedBlockingQueue(); + OverlayedAppProvider provider = new OverlayedAppProvider() + { + protected void removeInstance(String name) + { + scanned.add("removeInstance "+name); + } + protected Instance loadInstance(String name, File origin) + { + scanned.add("loadInstance "+name); + scanned.add(origin.getAbsolutePath()); + return null; + } + protected void removeNode() + { + scanned.add("removeNode"); + } + protected Node loadNode(File origin) + { + scanned.add("loadNode"); + scanned.add(origin.getAbsolutePath()); + return null; + } + protected void removeTemplate(String name) + { + scanned.add("removeTemplate "+name); + } + protected Template loadTemplate(String name, File origin) + { + scanned.add("loadTemplate "+name); + scanned.add(origin.getAbsolutePath()); + return null; + } + protected void removeWebapp(String name) + { + scanned.add("removeWebapp "+name); + } + protected Webapp loadWebapp(String name, File origin) + { + scanned.add("loadWebapp "+name); + scanned.add(origin.getAbsolutePath()); + return null; + } + + protected void redeploy() + { + } + + }; + provider.setScanInterval(0); + provider.setNodeName("nodeA"); + + + provider.setScanDir(_scan); + provider.start(); + provider.scan(); + + assertTrue(scanned.isEmpty()); + + // Add a war + File war = new File(_webapps,"foo-1.2.3.war"); + touch(war); + provider.scan(); + provider.scan(); + assertEquals("loadWebapp foo-1.2.3",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(war.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + + // Add a template + File template = new File(_templates,"foo=foo-1.2.3.war"); + touch(template); + provider.scan(); + provider.scan(); + assertEquals("loadTemplate foo=foo-1.2.3",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(template.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + // Add a node + File nodeA = new File(_nodes,"nodeA.war"); + touch(nodeA); + provider.scan(); + provider.scan(); + assertEquals("loadNode",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(nodeA.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + // Add another node + File nodeB = new File(_nodes,"nodeB.war"); + provider.scan(); + provider.scan(); + assertTrue(scanned.isEmpty()); + + // Add an instance + File instance = new File(_instances,"foo=instance.war"); + touch(instance); + provider.scan(); + provider.scan(); + assertEquals("loadInstance foo=instance",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(instance.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + + // Add a war dir + File warDir = new File(_webapps,"foo-1.2.3"); + warDir.mkdir(); + File warDirWI = new File(warDir,"WEB-INF"); + warDirWI.mkdir(); + touch(warDirWI,"web.xml"); + provider.scan(); + provider.scan(); + assertEquals("loadWebapp foo-1.2.3",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(warDir.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + // Add a template dir + File templateDir = new File(_templates,"foo=foo-1.2.3"); + templateDir.mkdir(); + File templateDirWI = new File(templateDir,"WEB-INF"); + templateDirWI.mkdir(); + touch(templateDirWI,"web.xml"); + provider.scan(); + provider.scan(); + assertEquals("loadTemplate foo=foo-1.2.3",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(templateDir.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + // Add a node dir + File nodeADir = new File(_nodes,"nodeA"); + nodeADir.mkdir(); + File nodeADirWI = new File(nodeADir,"WEB-INF"); + nodeADirWI.mkdir(); + touch(nodeADirWI,"web.xml"); + provider.scan(); + provider.scan(); + assertEquals("loadNode",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(nodeADir.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + // Add another node dir + File nodeBDir = new File(_nodes,"nodeB"); + nodeBDir.mkdir(); + File nodeBDirWI = new File(nodeBDir,"WEB-INF"); + nodeBDirWI.mkdir(); + touch(nodeBDirWI,"web.xml"); + provider.scan(); + provider.scan(); + assertTrue(scanned.isEmpty()); + + // Add an instance dir + File instanceDir = new File(_instances,"foo=instance"); + instanceDir.mkdir(); + File instanceDirWI = new File(instanceDir,"WEB-INF"); + instanceDirWI.mkdir(); + touch(instanceDirWI,"web.xml"); + provider.scan(); + provider.scan(); + assertEquals("loadInstance foo=instance",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(instanceDir.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + + // touch archives will be ignored. + Thread.sleep(1000); + touch(war); + touch(template); + touch(nodeA); + touch(nodeB); + touch(instance); + provider.scan(); + provider.scan(); + assertTrue(scanned.isEmpty()); + + // Touch directories + for (File d : new File[]{warDir,templateDir,nodeADir,nodeBDir,instanceDir}) + touch(d,"WEB-INF/web.xml"); + provider.scan(); + provider.scan(); + assertEquals(8,scanned.size()); + scanned.clear(); + + // Remove web dir + IO.delete(warDir); + provider.scan(); + provider.scan(); + assertEquals("removeWebapp foo-1.2.3",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals("loadWebapp foo-1.2.3",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(war.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + // Remove template dir + IO.delete(templateDir); + provider.scan(); + provider.scan(); + assertEquals("removeTemplate foo=foo-1.2.3",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals("loadTemplate foo=foo-1.2.3",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(template.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + // Remove nodeA dir + IO.delete(nodeADir); + provider.scan(); + provider.scan(); + assertEquals("removeNode",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals("loadNode",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(nodeA.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + // Remove nodeB dir + IO.delete(nodeBDir); + provider.scan(); + provider.scan(); + assertTrue(scanned.isEmpty()); + + + // Remove instance dir + IO.delete(instanceDir); + provider.scan(); + provider.scan(); + assertEquals("removeInstance foo=instance",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals("loadInstance foo=instance",scanned.poll(1,TimeUnit.SECONDS)); + assertEquals(instance.getAbsolutePath(),scanned.poll(1,TimeUnit.SECONDS)); + + // Remove web + IO.delete(war); + provider.scan(); + provider.scan(); + assertEquals("removeWebapp foo-1.2.3",scanned.poll(1,TimeUnit.SECONDS)); + + // Remove template + IO.delete(template); + provider.scan(); + provider.scan(); + assertEquals("removeTemplate foo=foo-1.2.3",scanned.poll(1,TimeUnit.SECONDS)); + + // Remove nodeA dir + IO.delete(nodeA); + provider.scan(); + provider.scan(); + assertEquals("removeNode",scanned.poll(1,TimeUnit.SECONDS)); + + // Remove nodeB dir + IO.delete(nodeB); + provider.scan(); + provider.scan(); + assertTrue(scanned.isEmpty()); + + // Remove instance dir + IO.delete(instance); + provider.scan(); + provider.scan(); + assertEquals("removeInstance foo=instance",scanned.poll(1,TimeUnit.SECONDS)); + + provider.scan(); + provider.scan(); + assertTrue(scanned.isEmpty()); + + } + + + private void touch(File base,String path) + { + try + { + File target = new File(new URI(base.toURI().toString()+path)); + target.getParentFile().mkdirs(); + touch(target); + } + catch (URISyntaxException e) + { + e.printStackTrace(); + } + } + + + private void touch(File file) + { + try + { + IO.delete(file); + FileOutputStream out = new FileOutputStream(file,false); + out.write("

Hello

".getBytes()); + out.close(); + } + catch(Exception e) + { + e.printStackTrace(); + } + } +} diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/classes/resourceA.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/classes/resourceA.txt new file mode 100644 index 00000000000..9c74ff39523 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/classes/resourceA.txt @@ -0,0 +1 @@ +instance myfoo=blue WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/classes/resourceB.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/classes/resourceB.txt new file mode 100644 index 00000000000..9c74ff39523 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/classes/resourceB.txt @@ -0,0 +1 @@ +instance myfoo=blue WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/lib-overlay/resources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/lib-overlay/resources.jar new file mode 100644 index 0000000000000000000000000000000000000000..a94e69bb0ea974a806898e43834bf336f9062ec1 GIT binary patch literal 921 zcmWIWW@Zs#-~d9m+EiNxB*4kQ!r%MB z$s^K|8W}9ppK1O`QxktG9xgV0$ulwSif5{?Gd~r5EMf#ZWMA~3Aa|fOAdGN`LIkQW zc!9D-sm1xFMaij-dLDN))(VOQ+zvj9q!k<`0p6@^ PApfudVJ1*g3LMG+U~j=h literal 0 HcmV?d00001 diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/overlay.xml b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/overlay.xml new file mode 100644 index 00000000000..9d5eaea4563 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/overlay.xml @@ -0,0 +1,16 @@ + + + + + + /blue + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/web-overlay.xml b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/web-overlay.xml new file mode 100644 index 00000000000..8499944f90b --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/WEB-INF/web-overlay.xml @@ -0,0 +1,21 @@ + + + + Blue Test WebApp + + + overlay + instances/myfoo=blue/web.xml + + + instance + instances/myfoo=blue/web.xml + + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/lib/META-INF/MANIFEST.MF b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/lib/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..e7374eeb7dc --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/lib/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: 1.6.0_20 (Sun Microsystems Inc.) + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/lib/resources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/lib/resources.jar new file mode 100644 index 0000000000000000000000000000000000000000..a94e69bb0ea974a806898e43834bf336f9062ec1 GIT binary patch literal 921 zcmWIWW@Zs#-~d9m+EiNxB*4kQ!r%MB z$s^K|8W}9ppK1O`QxktG9xgV0$ulwSif5{?Gd~r5EMf#ZWMA~3Aa|fOAdGN`LIkQW zc!9D-sm1xFMaij-dLDN))(VOQ+zvj9q!k<`0p6@^ PApfudVJ1*g3LMG+U~j=h literal 0 HcmV?d00001 diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/logo.png b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..21e0d3024a490381a6fd603b940c2ea19e627b01 GIT binary patch literal 2128 zcma)7c{Cg77Ee%HY!#}OQd_mhSUO5uJJFIB&1(^DT1y43h-NATK~#yFv39homZt5L zc1A2k&s8Sx*@N z0H{KJye>+SBo(Bhyz~W9oC^0K{-U=hppI_vm-M5A@wpri0D!=I0t7s+I4D&rV4;3z z6ed8j+8U;dSC#6dDqZZEU@YVo8XXyj1wd{`hGQd? zkTk)sz+(c&4)wX|zi!OR%IX7{%iR3MYs%)1y!LTpEvK`GQ0J}g|LZ9v_k~*G#aG4t z-XDe!=n^x5cGzD@GW=#GN3usz&pkb5q2h~<2_lCRQEMEVg!G^gDt>V6HQQk#!CP^i zPjtooV)|)Zmw+~fXSfLd_IwIcG_KQ7`qACT-58i%l;J6(EJZmjDJmV!lGD=<4eV>N@7xsHNG%v?yzw*0IQ3G0MiA;QMkC`!5 z9ECtM>ds}B#1##z*Xb(GdV4M-ADxm5#=T!%B3@D+9yy z0sat1Wgz2)Ip#CY(Rw9#aOh_lqGv;jOUbT$45OLa)f|wtWULc|lHe5XVhG1Og7+sg zPqTAI%%=sdp;L{I$}INPx`A*u8F2Q!batz6cD|*tz4bL40S?P;3N}6Fz#47ft@C`^OY?(Ij-Tfiw zW7E0noHgyOzb6fZv?k1JWj!_8D;7*_;M+Ak)d%iMn5DcY!b$U4$8Q*EeI&B9F;Q-# zfsnv+{i3tTc)9ToWO@CkO=Zbu+cpqVqvxSOT)-I;!;DS7htwp-9mcUb#Ly#jORdzT>cYu5e{9aQgUO#~lgjW(yxO6$A#;V`!8M&szSD%>3FMYVp+XVS>}rO8A13aCAbcb^8a^wF+sW6@ObHu6^KbZIBuMZ&N@g z?d?vd(&P|3qMY#O9XIXZAV{m93p{kD2`w7k zcX+`+_?uP-q1&%jj>}nDpM0}G1y%#BwJ-cKbBu}ZRJ49 zd>#&`6T>5MU39L``6G<3)n`JO;qD;IfJ~2rRqEb_*S7QYz`sfJbg`9&$TcUr_K@!wkIA!j7S&STue}OaVqsj=G8#*Z?O7&y*`j zz9yJeVBOJ_FiWpgDi3@Mvv^k z=_y9vmUXFo$qYYO8zGh?))GnJXqf!flgi5Lq_Bz7Qr-%g$Ws|y&ru`FA`q?U#)p@K zfmHXSa(Gva`mA)Fn%Xb-CQpBN;zV2Ws}f`@={BYs|G-PSOiwthTWm9b9!Y>9lYVJD ztnN^sUpO=~Bg$|!@;%5GCzpNf4Q+u&%vji2`Q-24GJ4HkD*P7y>`@i#kGeuNJLO6* zGG{XR(IyG~{mukxl6lUYB-DK16h34HYtxv@4O5-w5NMn1mimu7+a1CID{E`d>n6XS zZQ5tr#F}L0gIR&76~pDq!33aSGHxPb^>4^*c2WybIk>RWvI zcu}ozz%M6Ez39G*cI2AH6S;4I%d%k$)r(XLL`E45O;5UE-64PO8|T{{dZu B2IT+% literal 0 HcmV?d00001 diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/WEB-INF/classes/resourceA.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/WEB-INF/classes/resourceA.txt new file mode 100644 index 00000000000..9c74ff39523 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/WEB-INF/classes/resourceA.txt @@ -0,0 +1 @@ +instance myfoo=blue WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/WEB-INF/classes/resourceB.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/WEB-INF/classes/resourceB.txt new file mode 100644 index 00000000000..9c74ff39523 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/WEB-INF/classes/resourceB.txt @@ -0,0 +1 @@ +instance myfoo=blue WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/logo.png b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=blue/webapp/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..21e0d3024a490381a6fd603b940c2ea19e627b01 GIT binary patch literal 2128 zcma)7c{Cg77Ee%HY!#}OQd_mhSUO5uJJFIB&1(^DT1y43h-NATK~#yFv39homZt5L zc1A2k&s8Sx*@N z0H{KJye>+SBo(Bhyz~W9oC^0K{-U=hppI_vm-M5A@wpri0D!=I0t7s+I4D&rV4;3z z6ed8j+8U;dSC#6dDqZZEU@YVo8XXyj1wd{`hGQd? zkTk)sz+(c&4)wX|zi!OR%IX7{%iR3MYs%)1y!LTpEvK`GQ0J}g|LZ9v_k~*G#aG4t z-XDe!=n^x5cGzD@GW=#GN3usz&pkb5q2h~<2_lCRQEMEVg!G^gDt>V6HQQk#!CP^i zPjtooV)|)Zmw+~fXSfLd_IwIcG_KQ7`qACT-58i%l;J6(EJZmjDJmV!lGD=<4eV>N@7xsHNG%v?yzw*0IQ3G0MiA;QMkC`!5 z9ECtM>ds}B#1##z*Xb(GdV4M-ADxm5#=T!%B3@D+9yy z0sat1Wgz2)Ip#CY(Rw9#aOh_lqGv;jOUbT$45OLa)f|wtWULc|lHe5XVhG1Og7+sg zPqTAI%%=sdp;L{I$}INPx`A*u8F2Q!batz6cD|*tz4bL40S?P;3N}6Fz#47ft@C`^OY?(Ij-Tfiw zW7E0noHgyOzb6fZv?k1JWj!_8D;7*_;M+Ak)d%iMn5DcY!b$U4$8Q*EeI&B9F;Q-# zfsnv+{i3tTc)9ToWO@CkO=Zbu+cpqVqvxSOT)-I;!;DS7htwp-9mcUb#Ly#jORdzT>cYu5e{9aQgUO#~lgjW(yxO6$A#;V`!8M&szSD%>3FMYVp+XVS>}rO8A13aCAbcb^8a^wF+sW6@ObHu6^KbZIBuMZ&N@g z?d?vd(&P|3qMY#O9XIXZAV{m93p{kD2`w7k zcX+`+_?uP-q1&%jj>}nDpM0}G1y%#BwJ-cKbBu}ZRJ49 zd>#&`6T>5MU39L``6G<3)n`JO;qD;IfJ~2rRqEb_*S7QYz`sfJbg`9&$TcUr_K@!wkIA!j7S&STue}OaVqsj=G8#*Z?O7&y*`j zz9yJeVBOJ_FiWpgDi3@Mvv^k z=_y9vmUXFo$qYYO8zGh?))GnJXqf!flgi5Lq_Bz7Qr-%g$Ws|y&ru`FA`q?U#)p@K zfmHXSa(Gva`mA)Fn%Xb-CQpBN;zV2Ws}f`@={BYs|G-PSOiwthTWm9b9!Y>9lYVJD ztnN^sUpO=~Bg$|!@;%5GCzpNf4Q+u&%vji2`Q-24GJ4HkD*P7y>`@i#kGeuNJLO6* zGG{XR(IyG~{mukxl6lUYB-DK16h34HYtxv@4O5-w5NMn1mimu7+a1CID{E`d>n6XS zZQ5tr#F}L0gIR&76~pDq!33aSGHxPb^>4^*c2WybIk>RWvI zcu}ozz%M6Ez39G*cI2AH6S;4I%d%k$)r(XLL`E45O;5UE-64PO8|T{{dZu B2IT+% literal 0 HcmV?d00001 diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/classes/resourceA.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/classes/resourceA.txt new file mode 100644 index 00000000000..4817b3f04de --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/classes/resourceA.txt @@ -0,0 +1 @@ +instance myfoo=green WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/classes/resourceB.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/classes/resourceB.txt new file mode 100644 index 00000000000..4817b3f04de --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/classes/resourceB.txt @@ -0,0 +1 @@ +instance myfoo=green WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/lib-overlay/resources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/lib-overlay/resources.jar new file mode 100644 index 0000000000000000000000000000000000000000..bfce59a00ba557902d2b7f79105a59e54642e38a GIT binary patch literal 925 zcmWIWW@Zs#-~d9m+EiNxB*4kQ!r%MB z$s^K|8W}9ppK1O`QxktG9xgV0$ulwSif5{?Gd~r5EMf#ZWMA~3Aa|fOAdGN`LIkQW zc!9D-sm1xFMaij-dLO>P$oyj&8Jsy!mz?)=K8JR>FP}2u2@ + + + + + /green + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/web-overlay.xml b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/web-overlay.xml new file mode 100644 index 00000000000..ddda5385c62 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/WEB-INF/web-overlay.xml @@ -0,0 +1,21 @@ + + + + Green Test WebApp + + + overlay + instances/myfoo=green/web.xml + + + instance + instances/myfoo=green/web.xml + + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/lib/META-INF/MANIFEST.MF b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/lib/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..e7374eeb7dc --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/lib/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: 1.6.0_20 (Sun Microsystems Inc.) + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/lib/resources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/lib/resources.jar new file mode 100644 index 0000000000000000000000000000000000000000..bfce59a00ba557902d2b7f79105a59e54642e38a GIT binary patch literal 925 zcmWIWW@Zs#-~d9m+EiNxB*4kQ!r%MB z$s^K|8W}9ppK1O`QxktG9xgV0$ulwSif5{?Gd~r5EMf#ZWMA~3Aa|fOAdGN`LIkQW zc!9D-sm1xFMaij-dLO>P$oyj&8Jsy!mz?)=K8JR>FP}2u2@v?|00l*)@I^FVW%c)H>sUxc_%ydDB#rPTGT-+`zH*-K?)DzO z06A}aYhQaiT7PF>Ct5{ibuGh491;M47N9IIqZhD#9%}4EY3O}x?)sbPaa6yGCDoCd z$t|Ad>EvnlX&3#y@bL)GiVUiQ3rfqH~ zx~Re4_^v$$PuboX8YzUQx72<24Nj8yt4jhg*U3@I5Ve)OrpQB)P&(4?bb?1(`}eS@jX4SoCJ$4ZaKmNt)QriY zk>Z2)c%_m&`wLW|Z6RmNXgmx0iW@m9;Mca?)vT(^xil(jx`IAkV9ev8=&2x?7DxMD`V(E?Z0E)BLlxh^P|o zO7yKjcr$Y_RjX}tvzz{!itz;Nsz&e^c6G8#0FI?tsy}GFOUkM!F<_ka_jFpBEboIq zN{5Q>G1ENwB4MniJSMlMDjQ#xO?Rt>;+@*n&Gm_zC z2()Z1)h2MRt_5t}wxmOa*SYv8Wwo2rH}gh(`4=ec3rl6T_b3WMO2_(2_P6yF$s1Qw zG;tR7#9o|a9a+|LXnlfWTCdS~PJLg8Duy}kide@Yus8xO0V{kAl~_%$yFsnGm{aWv zE6G7e$2s3!;*f(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g$7AS6*$Bm-X72QOjnXfgg z3Dh%B=F5_huHpD13FtB?)MjZ5{)yXI5Dem+gYx|h21$}ls_lOhguRRU0q#<<%qD<&9b8#>W_4X6BYE5I|c;6Y(7Ttu|HVD@5c3AdH_0 zD4;D0U4C$ZTLuHH(>;|GqejQB8mv~?4@>tFG!Pn%(m8ONTBV4Ww!9XaO~-lvXx8g0 z=ij`k8C%88**}aphb~*Dvwi$iHBX-5iIC<6OkNDq^wyXRa5xpiBD^13J;?|Gk%am` zoA`tDD5m@m(1#*$sxiA|GKa?4RTV_wZSp&p)?^DK-y%r{NQy zHK`!#r8>&u+*(pf06ov}>3o^q-H-hMXM!I#=6x>RZ>KlTieBd*DB(%rP)_z%s zW4@tNSpdNuu-(qjsDpiYFMLM6B=mMAg`3h5&K=0T-c5xj#{G_+6o2V+#QsFCxk6;ax z+b<7OlqI6Z|J~v&8sNLM40eo8muF@hm;P8h7xv%qD!KBnEe5zNxdr}zMp^$`{(baM Zis-IhA44|S9zJ^uP=2o=-y&-j^*>XfsSW@D literal 0 HcmV?d00001 diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/WEB-INF/classes/resourceA.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/WEB-INF/classes/resourceA.txt new file mode 100644 index 00000000000..4817b3f04de --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/WEB-INF/classes/resourceA.txt @@ -0,0 +1 @@ +instance myfoo=green WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/WEB-INF/classes/resourceB.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/WEB-INF/classes/resourceB.txt new file mode 100644 index 00000000000..4817b3f04de --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/WEB-INF/classes/resourceB.txt @@ -0,0 +1 @@ +instance myfoo=green WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/logo.png b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=green/webapp/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..67b04b96b80a36256e6365f3555fe0942da5c97f GIT binary patch literal 11230 zcmZ`v?|00l*)@I^FVW%c)H>sUxc_%ydDB#rPTGT-+`zH*-K?)DzO z06A}aYhQaiT7PF>Ct5{ibuGh491;M47N9IIqZhD#9%}4EY3O}x?)sbPaa6yGCDoCd z$t|Ad>EvnlX&3#y@bL)GiVUiQ3rfqH~ zx~Re4_^v$$PuboX8YzUQx72<24Nj8yt4jhg*U3@I5Ve)OrpQB)P&(4?bb?1(`}eS@jX4SoCJ$4ZaKmNt)QriY zk>Z2)c%_m&`wLW|Z6RmNXgmx0iW@m9;Mca?)vT(^xil(jx`IAkV9ev8=&2x?7DxMD`V(E?Z0E)BLlxh^P|o zO7yKjcr$Y_RjX}tvzz{!itz;Nsz&e^c6G8#0FI?tsy}GFOUkM!F<_ka_jFpBEboIq zN{5Q>G1ENwB4MniJSMlMDjQ#xO?Rt>;+@*n&Gm_zC z2()Z1)h2MRt_5t}wxmOa*SYv8Wwo2rH}gh(`4=ec3rl6T_b3WMO2_(2_P6yF$s1Qw zG;tR7#9o|a9a+|LXnlfWTCdS~PJLg8Duy}kide@Yus8xO0V{kAl~_%$yFsnGm{aWv zE6G7e$2s3!;*f(}cyXjS%x(C$h*oI(S68bmdX)f?LY_7 zAVX1|`d1dyy7vu>P=gq}(g*Xk^JyFgZ1!bgB;iSx&bj@yg zm=Z!}$@`ws=9V)L)WY_JA>_#?b}}Pg;{qMA^90-MJsGFQ=1#LqCHd^{ru=PwK~h^g z^LODzufol>In6BPP__d#XO*$kWxubM!G_qUMLtVpj+eHRWH7gL7ge{Gn^+T4$0DC1 z?~!px3C@6wp`W$+NKAViAI=8~M`WU0BR5MU{zWok1a7q2kou1ZxZcJ7_Cl)OK-#~2LO;i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A|GKa?4RTV_wZSp&p)?^DK-y%r{NQy zHK`!#r8>&u+*(pf06ov}>3o^q-H-hMXM!I#=6x>RZ>KlTieBd*DB(%rP)_z%s zW4@tNSpdNuu-(qjsDpiYFMLM6B=mMAg`3h5&K=0T-c5xj#{G_+6o2V+#QsFCxk6;ax z+b<7OlqI6Z|J~v&8sNLM40eo8muF@hm;P8h7xv%qD!KBnEe5zNxdr}zMp^$`{(baM Zis-IhA44|S9zJ^uP=2o=-y&-j^*>XfsSW@D literal 0 HcmV?d00001 diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/classes/resourceA.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/classes/resourceA.txt new file mode 100644 index 00000000000..47d45478c5d --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/classes/resourceA.txt @@ -0,0 +1 @@ +instance myfoo=red WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/classes/resourceB.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/classes/resourceB.txt new file mode 100644 index 00000000000..47d45478c5d --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/classes/resourceB.txt @@ -0,0 +1 @@ +instance myfoo=red WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/lib-overlay/resources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/lib-overlay/resources.jar new file mode 100644 index 0000000000000000000000000000000000000000..994a698f89908e6960d52c925a82c2255ac6b45a GIT binary patch literal 917 zcmWIWW@Zs#-~d9m+EiNxB*4kQ!r%MB z$s^K|8W}9ppK1O`QxktG9xgV0$ulwSif5{?Gd~r5EMf#ZWMA~3Aa|fOAdGN`LIkQW zc!9D-sm1xFMaij-dLHnHqCu%7z#CO7ax{Tb1p + + + + + /red + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/web-overlay.xml b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/web-overlay.xml new file mode 100644 index 00000000000..40927895b9c --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/WEB-INF/web-overlay.xml @@ -0,0 +1,21 @@ + + + + Red Test WebApp + + + overlay + instances/myfoo=red/web.xml + + + instance + instances/myfoo=red/web.xml + + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/lib/META-INF/MANIFEST.MF b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/lib/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..e7374eeb7dc --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/lib/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: 1.6.0_20 (Sun Microsystems Inc.) + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/lib/resources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/lib/resources.jar new file mode 100644 index 0000000000000000000000000000000000000000..994a698f89908e6960d52c925a82c2255ac6b45a GIT binary patch literal 917 zcmWIWW@Zs#-~d9m+EiNxB*4kQ!r%MB z$s^K|8W}9ppK1O`QxktG9xgV0$ulwSif5{?Gd~r5EMf#ZWMA~3Aa|fOAdGN`LIkQW zc!9D-sm1xFMaij-dLHnHqCu%7z#CO7ax{Tb1p>P)003kN0ssI2j?}E!00001b5ch_0Itp) z=>Px#32;bRa{vGf6951U69E94oEQKA00(qQO+^RV3j-Aq9;q*M{r~^~8FWQhbVF}# zZDnqB07G(RVRU6=Aa`kWXdp*PO;A^X4i^9b5dcXZ`+kdvba+el4ojVGk>k&x8%7*jcjT4Rg} z(Wn@Oq6h`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nCGU!opBcfZSY>R|CiZ4?ss*b;Xh;*tijiiKA}B|7QT3^{;o|#b5ry_+Fv2Gdw&H8;iATv0#Ct zmukrX4>!!lpsiDxSR~IOhZRXc?x8JWs(7w lNd{OZ8DN=YfMpU${{?9R0`h)Cw8j7c002ovPDHLkV1i3!hME8X literal 0 HcmV?d00001 diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/WEB-INF/classes/resourceA.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/WEB-INF/classes/resourceA.txt new file mode 100644 index 00000000000..47d45478c5d --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/WEB-INF/classes/resourceA.txt @@ -0,0 +1 @@ +instance myfoo=red WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/WEB-INF/classes/resourceB.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/WEB-INF/classes/resourceB.txt new file mode 100644 index 00000000000..47d45478c5d --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/WEB-INF/classes/resourceB.txt @@ -0,0 +1 @@ +instance myfoo=red WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/logo.png b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/myfoo=red/webapp/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..a121e4a6c11cdfa3a831d0663c39d129ed6d7dfc GIT binary patch literal 4499 zcmV;E5p3>>P)003kN0ssI2j?}E!00001b5ch_0Itp) z=>Px#32;bRa{vGf6951U69E94oEQKA00(qQO+^RV3j-Aq9;q*M{r~^~8FWQhbVF}# zZDnqB07G(RVRU6=Aa`kWXdp*PO;A^X4i^9b5dcXZ`+kdvba+el4ojVGk>k&x8%7*jcjT4Rg} z(Wn@Oq6h`tA}b9jX~GiOBrZ|D{;}Hym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*b;Xh;*tijiiKA}B|7QT3^{;o|#b5ry_+Fv2Gdw&H8;iATv0#Ct zmukrX4>!!lpsiDxSR~IOhZRXc?x8JWs(7w lNd{OZ8DN=YfMpU${{?9R0`h)Cw8j7c002ovPDHLkV1i3!hME8X literal 0 HcmV?d00001 diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/instances/root=root/WEB-INF/overlay.xml b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/root=root/WEB-INF/overlay.xml new file mode 100644 index 00000000000..47ad8a422f4 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/instances/root=root/WEB-INF/overlay.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceA.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceA.txt new file mode 100644 index 00000000000..170b5badf10 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceA.txt @@ -0,0 +1 @@ +node WEB-INF lib diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceB.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceB.txt new file mode 100644 index 00000000000..170b5badf10 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceB.txt @@ -0,0 +1 @@ +node WEB-INF lib diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceC.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceC.txt new file mode 100644 index 00000000000..170b5badf10 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceC.txt @@ -0,0 +1 @@ +node WEB-INF lib diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceD.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceD.txt new file mode 100644 index 00000000000..170b5badf10 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/classes/resourceD.txt @@ -0,0 +1 @@ +node WEB-INF lib diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/lib-overlay/nodeResources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/lib-overlay/nodeResources.jar new file mode 100644 index 0000000000000000000000000000000000000000..61f42e6bba84d32596a39bb328f2b079b7348828 GIT binary patch literal 1119 zcmWIWW@Zs#-~htkHL11?NPv@pg~8V~#8KDN&rSc|DFy~+h5&DN4v-2asImZ@nni#r z;F^6M{XE@VgG2Ou-9G!CIql=Et9OytTUYDcne&^246YbIcv__A<*VcAd$DvC3+IfN zl1HQ^H8NPHKhyk?rY8PWJX~!0l4oMt70*;(XMQUBSi}f+$iC=5LGD0nKp5c==5SPB z@B(FvQj7CTi;`0v^-3yAPM`Mo3_Wqu=MfXwl-;#mGTcBloJ5=AL={tJs#fHv2cV!Z literal 0 HcmV?d00001 diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/web-overlay.xml b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/web-overlay.xml new file mode 100644 index 00000000000..27c9960ab99 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/WEB-INF/web-overlay.xml @@ -0,0 +1,19 @@ + + + + + overlay + nodes/nodeA/web.xml + + + node + nodes/nodeA/web.xml + + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/lib/META-INF/MANIFEST.MF b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/lib/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..e7374eeb7dc --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/lib/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: 1.6.0_20 (Sun Microsystems Inc.) + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/lib/nodeResources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/lib/nodeResources.jar new file mode 100644 index 0000000000000000000000000000000000000000..61f42e6bba84d32596a39bb328f2b079b7348828 GIT binary patch literal 1119 zcmWIWW@Zs#-~htkHL11?NPv@pg~8V~#8KDN&rSc|DFy~+h5&DN4v-2asImZ@nni#r z;F^6M{XE@VgG2Ou-9G!CIql=Et9OytTUYDcne&^246YbIcv__A<*VcAd$DvC3+IfN zl1HQ^H8NPHKhyk?rY8PWJX~!0l4oMt70*;(XMQUBSi}f+$iC=5LGD0nKp5c==5SPB z@B(FvQj7CTi;`0v^-3yAPM`Mo3_Wqu=MfXwl-;#mGTcBloJ5=AL={tJs#fHv2cV!Z literal 0 HcmV?d00001 diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/META-INF/MANIFEST.MF b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..e7374eeb7dc --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: 1.6.0_20 (Sun Microsystems Inc.) + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceA.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceA.txt new file mode 100644 index 00000000000..170b5badf10 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceA.txt @@ -0,0 +1 @@ +node WEB-INF lib diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceB.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceB.txt new file mode 100644 index 00000000000..170b5badf10 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceB.txt @@ -0,0 +1 @@ +node WEB-INF lib diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceC.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceC.txt new file mode 100644 index 00000000000..170b5badf10 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceC.txt @@ -0,0 +1 @@ +node WEB-INF lib diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceD.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceD.txt new file mode 100644 index 00000000000..170b5badf10 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeA/webapp/WEB-INF/classes/resourceD.txt @@ -0,0 +1 @@ +node WEB-INF lib diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeB/WEB-INF/web.xml b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeB/WEB-INF/web.xml new file mode 100644 index 00000000000..d43dd8b52de --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/nodes/nodeB/WEB-INF/web.xml @@ -0,0 +1,19 @@ + + + + + overlay + nodes/nodeB/web.xml + + + node + nodes/nodeB/web.xml + + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceA.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceA.txt new file mode 100644 index 00000000000..9e00184c94d --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceA.txt @@ -0,0 +1 @@ +template WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceB.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceB.txt new file mode 100644 index 00000000000..9e00184c94d --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceB.txt @@ -0,0 +1 @@ +template WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceC.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceC.txt new file mode 100644 index 00000000000..9e00184c94d --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceC.txt @@ -0,0 +1 @@ +template WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceD.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceD.txt new file mode 100644 index 00000000000..9e00184c94d --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceD.txt @@ -0,0 +1 @@ +template WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceE.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceE.txt new file mode 100644 index 00000000000..9e00184c94d --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceE.txt @@ -0,0 +1 @@ +template WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceF.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceF.txt new file mode 100644 index 00000000000..9e00184c94d --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/classes/resourceF.txt @@ -0,0 +1 @@ +template WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/jetty-web.xml b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/jetty-web.xml new file mode 100644 index 00000000000..33526645e3c --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/jetty-web.xml @@ -0,0 +1,6 @@ + + + + + Executing jetty-web.xml for + \ No newline at end of file diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/lib-overlay/templateResources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/lib-overlay/templateResources.jar new file mode 100644 index 0000000000000000000000000000000000000000..4fb379cb2220dd66d34ba0b3464bb9de108ad426 GIT binary patch literal 1409 zcmWIWW@Zs#-~hslHL11?NPv@pg~8V~#8KDN&rSc|DFy~+h5&DN4v-2asImZ@nni#r z;F^6M{XE@VgG2Ou-9G!CIql=Et9OytTUYDcne&^246YbIcv__A<*VcAd$DvC3+IfN zl1HQ^H8NPHKhyk?rY8PWJX~!0l4oMt70*;(XMQUBSi}f+$iC=5LGD0nKp5eW#xPW0 z@B(FvQj7CTi;`0v^-3yAv^~%2p77N13_Wqu=MfXwB!^oM`1pb9Kx&CI$%$$vIaAFf z7pj@$N;Q+*sAiHoNhX~@OUuZqz>_GG7@0&EQ1b;W(Sz~@Du5?+P%a7ZM%9X(OhLH< z0YJG8t`#YdAe#V6&dA9VqQ#0{eqmZ& zzC+RqPN2kVwE#vPESSJ4l6b96NLs;35LqiImEn$@Ge}y&X)eH + + + + false + + true + 10000000 + 1000 + 64000000 + + + + bogus + application/bogon + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/web-default.xml b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/web-default.xml new file mode 100644 index 00000000000..6a116536993 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/web-default.xml @@ -0,0 +1,482 @@ + + + + + + + + + + + + + + + + + + + + + + + Default web.xml file. + This file is applied to a Web application before it's own WEB_INF/web.xml file + + + + + + + + + + + + + + + + + + + default + org.eclipse.jetty.servlet.DefaultServlet + + aliases + false + + + acceptRanges + true + + + dirAllowed + true + + + welcomeServlets + false + + + redirectWelcome + false + + + maxCacheSize + 256000000 + + + maxCachedFileSize + 10000000 + + + maxCachedFiles + 2048 + + + gzip + true + + + useFileMappedBuffer + true + + + resourceCache + org.eclipse.jetty.server.ResourceCache + + + 0 + + + + default + / + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + logVerbosityLevel + DEBUG + + + fork + false + + + xpoweredBy + false + + + 0 + + + + jsp + *.jsp + *.jspf + *.jspx + *.xsp + *.JSP + *.JSPF + *.JSPX + *.XSP + + + + + + 30 + + + + + + + + + + + + + index.jsp + index.html + index.htm + + + + + + ar + ISO-8859-6 + + + be + ISO-8859-5 + + + bg + ISO-8859-5 + + + ca + ISO-8859-1 + + + cs + ISO-8859-2 + + + da + ISO-8859-1 + + + de + ISO-8859-1 + + + el + ISO-8859-7 + + + en + ISO-8859-1 + + + es + ISO-8859-1 + + + et + ISO-8859-1 + + + fi + ISO-8859-1 + + + fr + ISO-8859-1 + + + hr + ISO-8859-2 + + + hu + ISO-8859-2 + + + is + ISO-8859-1 + + + it + ISO-8859-1 + + + iw + ISO-8859-8 + + + ja + Shift_JIS + + + ko + EUC-KR + + + lt + ISO-8859-2 + + + lv + ISO-8859-2 + + + mk + ISO-8859-5 + + + nl + ISO-8859-1 + + + no + ISO-8859-1 + + + pl + ISO-8859-2 + + + pt + ISO-8859-1 + + + ro + ISO-8859-2 + + + ru + ISO-8859-5 + + + sh + ISO-8859-5 + + + sk + ISO-8859-2 + + + sl + ISO-8859-2 + + + sq + ISO-8859-2 + + + sr + ISO-8859-5 + + + sv + ISO-8859-1 + + + tr + ISO-8859-9 + + + uk + ISO-8859-5 + + + zh + GB2312 + + + zh_TW + Big5 + + + + + + Disable TRACE + / + TRACE + + + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/web-overlay.xml b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/web-overlay.xml new file mode 100644 index 00000000000..c03f435a740 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/WEB-INF/web-overlay.xml @@ -0,0 +1,40 @@ + + + + Templated Test WebApp + + + overlay + templates/myfoo/web.xml + + + template + templates/myfoo/web.xml + + + overlay.template + ${overlay.template} + + + overlay.template.name + ${overlay.template.name} + + + overlay.template.classifier + ${overlay.template.classifier} + + + overlay.instance.classifier + ${overlay.instance.classifier} + + + overlay.instance + ${overlay.instance} + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/index.html b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/index.html new file mode 100644 index 00000000000..afebff7ad8f --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/index.html @@ -0,0 +1,10 @@ + +

Template foo webapp

+ + +Should see index.jsp instead of this!!! + +

+Red, +Blue, +Green diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/index.jsp b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/index.jsp new file mode 100644 index 00000000000..569338d2448 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/index.jsp @@ -0,0 +1,54 @@ + +<%@page import="java.io.BufferedReader"%> +<%@page import="java.io.InputStreamReader"%> +<%@page import="java.util.Enumeration"%> +

<%=application.getServletContextName()%>

+ + +

+Red, +Blue, +Green +

+ +

Overlays

+webapp=<%=application.getInitParameter("webapp")%>
+template=<%=application.getInitParameter("template")%>
+node=<%=application.getInitParameter("node")%>
+instance=<%=application.getInitParameter("instance")%>
+ +

Init Parameters

+<% +Enumeration e=application.getInitParameterNames(); +while (e.hasMoreElements()) +{ + String name=e.nextElement().toString(); + String value=application.getInitParameter(name); + out.println(name+": "+value+"
"); +} +%> +

Attributes

+<% +e=application.getAttributeNames(); +while (e.hasMoreElements()) +{ + String name=e.nextElement().toString(); + String value=String.valueOf(application.getAttribute(name)); + out.println(name+": "+value+"
"); +} +%> +

Resources

+<% +ClassLoader loader = Thread.currentThread().getContextClassLoader(); +%> +resourceA.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceA.txt").openStream())).readLine()%>
+resourceB.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceB.txt").openStream())).readLine()%>
+resourceC.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceC.txt").openStream())).readLine()%>
+resourceD.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceD.txt").openStream())).readLine()%>
+resourceE.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceE.txt").openStream())).readLine()%>
+resourceF.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceF.txt").openStream())).readLine()%>
+resourceG.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceG.txt").openStream())).readLine()%>
+resourceH.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceH.txt").openStream())).readLine()%>
+resourceI.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceI.txt").openStream())).readLine()%>
+resourceJ.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceJ.txt").openStream())).readLine()%>
+resourceK.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceK.txt").openStream())).readLine()%>
diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/lib/META-INF/MANIFEST.MF b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/lib/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..e7374eeb7dc --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/lib/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: 1.6.0_20 (Sun Microsystems Inc.) + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/lib/templateResources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/lib/templateResources.jar new file mode 100644 index 0000000000000000000000000000000000000000..4fb379cb2220dd66d34ba0b3464bb9de108ad426 GIT binary patch literal 1409 zcmWIWW@Zs#-~hslHL11?NPv@pg~8V~#8KDN&rSc|DFy~+h5&DN4v-2asImZ@nni#r z;F^6M{XE@VgG2Ou-9G!CIql=Et9OytTUYDcne&^246YbIcv__A<*VcAd$DvC3+IfN zl1HQ^H8NPHKhyk?rY8PWJX~!0l4oMt70*;(XMQUBSi}f+$iC=5LGD0nKp5eW#xPW0 z@B(FvQj7CTi;`0v^-3yAv^~%2p77N13_Wqu=MfXwB!^oM`1pb9Kx&CI$%$$vIaAFf z7pj@$N;Q+*sAiHoNhX~@OUuZqz>_GG7@0&EQ1b;W(Sz~@Du5?+P%a7ZM%9X(OhLH< z0YJG8t`#YdAe#V6&dA9VqQ#0{eqmZ& zzC+RqPN2kVwE#vPESSJ4l6b96NLs;35LqiImEn$@Ge}y&X)eH^(zW001_nvP#&v)MEeNr8;7y({sUH||D ztgS4aKzs~_FE=MRLmE(-KOo!*V*ykT$bJSFJlCz_Co!O0#D7m`ogcyt&y_U0d6=qvkTLig~}W5sBV? z;X&!yS)F#7Fg7&UDH~hz^Y!&*5bJLc`eR+1OQ>4-(9jw{IImYZ^6O-FYAR1^*PO1d zuHydoiWoqgY3JzNy0yKW9l1JXttXxP^VI=vKwVAEN@lt#vL+CfmX@X@%x#5$<+Qb( z52JcQ&5=kXO#I!_Ru9>=MhTYQ{ozBtp1wX0KnM)P=`ED8v5rwwNre7K^`9gP)d#OeN8?0_ zG~89zSx;%SQzj-RgxeM9hh^*m_ch(wn@tcPbh^27RRPU(Z6K}BqI(8GDqO%nJheuG zs=ZnSfwld^{QUgZzP`RYKmYnlZY^{H3xT|BXn+D$WOCTt8-aTn84B4}a9Fy66#o+n zMKU)x*S+bshlfm3Qj(5|NrpK*zM;VYFu!)~#TWhhp>G?2wd;5$pwAYtw0!?wm z1%#0;G%dwA?!XPq1dsoT-i)T@+o^;#eH>yk&m@?`gP=(k3IqZ{B$=)NOGgXJnS-p7@MLHM^ z#?jT4i#)|=v&g!$K`N?j_Cu4n10w{CuNbSUb@_FrThRLln1QTx z6u!K?e7-f|MAby5pq#PVI?0&2;k&`^Pty&jIBJ$n*)hqi4$s(F+LPs64Ogd|?|cg} z*p-kTGz5i0al{+R3Q}YD8}8D*d6MbGrBO|gFx0%UsR?a4f3Uj&HBU=V%LCd7+N zNE|xS3SPSQrc%?=c%zPwXm(hv%Fg$dDH_ThYbz(N(+iC@mV?0KTD%-b7dChRbqx(M zk?f%%CkR|f-qcQgY;4+3GoI!OHe*q9F<57fEwmpX8pmIz%P z{G9^;t5r9%Template foo webapp + + +Should see index.jsp instead of this!!! + +

+Red, +Blue, +Green diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/index.jsp b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/index.jsp new file mode 100644 index 00000000000..569338d2448 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/index.jsp @@ -0,0 +1,54 @@ + +<%@page import="java.io.BufferedReader"%> +<%@page import="java.io.InputStreamReader"%> +<%@page import="java.util.Enumeration"%> +

<%=application.getServletContextName()%>

+ + +

+Red, +Blue, +Green +

+ +

Overlays

+webapp=<%=application.getInitParameter("webapp")%>
+template=<%=application.getInitParameter("template")%>
+node=<%=application.getInitParameter("node")%>
+instance=<%=application.getInitParameter("instance")%>
+ +

Init Parameters

+<% +Enumeration e=application.getInitParameterNames(); +while (e.hasMoreElements()) +{ + String name=e.nextElement().toString(); + String value=application.getInitParameter(name); + out.println(name+": "+value+"
"); +} +%> +

Attributes

+<% +e=application.getAttributeNames(); +while (e.hasMoreElements()) +{ + String name=e.nextElement().toString(); + String value=String.valueOf(application.getAttribute(name)); + out.println(name+": "+value+"
"); +} +%> +

Resources

+<% +ClassLoader loader = Thread.currentThread().getContextClassLoader(); +%> +resourceA.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceA.txt").openStream())).readLine()%>
+resourceB.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceB.txt").openStream())).readLine()%>
+resourceC.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceC.txt").openStream())).readLine()%>
+resourceD.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceD.txt").openStream())).readLine()%>
+resourceE.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceE.txt").openStream())).readLine()%>
+resourceF.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceF.txt").openStream())).readLine()%>
+resourceG.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceG.txt").openStream())).readLine()%>
+resourceH.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceH.txt").openStream())).readLine()%>
+resourceI.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceI.txt").openStream())).readLine()%>
+resourceJ.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceJ.txt").openStream())).readLine()%>
+resourceK.txt=<%=new BufferedReader(new InputStreamReader(loader.getResource("resourceK.txt").openStream())).readLine()%>
diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/logo.png b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/myfoo=foo/webapp/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..b633447fff53fc3da462aecd0899c2255d0f53b2 GIT binary patch literal 2001 zcmbVNc{JN=8vZ4%ec!@G3AI)%b!|;-Rk^WdEOilDQA-7-LMs%dxArP()Y_|hYpJxB ztCb0jEmZ9dMTJsJLW`od+V8J3bLNlvXU>^(zW001_nvP#&v)MEeNr8;7y({sUH||D ztgS4aKzs~_FE=MRLmE(-KOo!*V*ykT$bJSFJlCz_Co!O0#D7m`ogcyt&y_U0d6=qvkTLig~}W5sBV? z;X&!yS)F#7Fg7&UDH~hz^Y!&*5bJLc`eR+1OQ>4-(9jw{IImYZ^6O-FYAR1^*PO1d zuHydoiWoqgY3JzNy0yKW9l1JXttXxP^VI=vKwVAEN@lt#vL+CfmX@X@%x#5$<+Qb( z52JcQ&5=kXO#I!_Ru9>=MhTYQ{ozBtp1wX0KnM)P=`ED8v5rwwNre7K^`9gP)d#OeN8?0_ zG~89zSx;%SQzj-RgxeM9hh^*m_ch(wn@tcPbh^27RRPU(Z6K}BqI(8GDqO%nJheuG zs=ZnSfwld^{QUgZzP`RYKmYnlZY^{H3xT|BXn+D$WOCTt8-aTn84B4}a9Fy66#o+n zMKU)x*S+bshlfm3Qj(5|NrpK*zM;VYFu!)~#TWhhp>G?2wd;5$pwAYtw0!?wm z1%#0;G%dwA?!XPq1dsoT-i)T@+o^;#eH>yk&m@?`gP=(k3IqZ{B$=)NOGgXJnS-p7@MLHM^ z#?jT4i#)|=v&g!$K`N?j_Cu4n10w{CuNbSUb@_FrThRLln1QTx z6u!K?e7-f|MAby5pq#PVI?0&2;k&`^Pty&jIBJ$n*)hqi4$s(F+LPs64Ogd|?|cg} z*p-kTGz5i0al{+R3Q}YD8}8D*d6MbGrBO|gFx0%UsR?a4f3Uj&HBU=V%LCd7+N zNE|xS3SPSQrc%?=c%zPwXm(hv%Fg$dDH_ThYbz(N(+iC@mV?0KTD%-b7dChRbqx(M zk?f%%CkR|f-qcQgY;4+3GoI!OHe*q9F<57fEwmpX8pmIz%P z{G9^;t5r9% + + + + + / + + + + + index.html + + + max-age=3600,public + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/root/index.html b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/root/index.html new file mode 100644 index 00000000000..67ed39608fc --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/root/index.html @@ -0,0 +1,7 @@ + +

Cloudtide Deployer Demo

+ +

+Red, +Blue, +Green diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/templates/root/webapp/index.html b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/root/webapp/index.html new file mode 100644 index 00000000000..67ed39608fc --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/templates/root/webapp/index.html @@ -0,0 +1,7 @@ + +

Cloudtide Deployer Demo

+ +

+Red, +Blue, +Green diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceA.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceA.txt new file mode 100644 index 00000000000..c8ca259d738 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceA.txt @@ -0,0 +1 @@ +webapp WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceB.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceB.txt new file mode 100644 index 00000000000..c8ca259d738 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceB.txt @@ -0,0 +1 @@ +webapp WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceC.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceC.txt new file mode 100644 index 00000000000..c8ca259d738 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceC.txt @@ -0,0 +1 @@ +webapp WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceD.txt b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceD.txt new file mode 100644 index 00000000000..c8ca259d738 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/classes/resourceD.txt @@ -0,0 +1 @@ +webapp WEB-INF classes diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/lib/webappResources.jar b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/WEB-INF/lib/webappResources.jar new file mode 100644 index 0000000000000000000000000000000000000000..4c450a43e304870b74178a7288129f64d35b625a GIT binary patch literal 901 zcmWIWW@Zs#-~d8_uvA+HB*4kQ!r%MB z$s^K|8W}9ppK1O`QxktG9xgV0$ulwSif5{?Gd~r5EMf#ZWMA~3Aa|fOAdGOx?@&}< z@B(FvQj7CTi;`1a^-3yAwEca(bTk4u%1bYO{Zbr!;-t?bCa`%k{kB_*0#ys6n8%D3 zD#+%!kzpPy9`oGEFpmw7c^)K~$H*kYfSL|qkqk-)r~n?Zpi~jyjj9znT0p4)0YIq> zt`#XwAe#V+KIDi11vdg512Rz}6Im-Lrf_Q&V?<~L#~ZR%P^942nueqm97V`lLE(>E a>oz2<;MfT8W@Q8UhYbibfs$ + + + Test WebApp + + + overlay + webapps/foo/WEB-INF/web.xml + + + webapp + webapps/foo-INF/web.xml + + + + + diff --git a/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/index.html b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/index.html new file mode 100644 index 00000000000..a98e28bfce9 --- /dev/null +++ b/jetty-overlay-deployer/src/test/resources/home/overlays/webapps/foo/index.html @@ -0,0 +1,2 @@ + +

foo webapp

diff --git a/jetty-proxy/src/test/java/org/eclipse/jetty/proxy/ProxyServletTest.java b/jetty-proxy/src/test/java/org/eclipse/jetty/proxy/ProxyServletTest.java index c16cbba984a..301543cc39f 100644 --- a/jetty-proxy/src/test/java/org/eclipse/jetty/proxy/ProxyServletTest.java +++ b/jetty-proxy/src/test/java/org/eclipse/jetty/proxy/ProxyServletTest.java @@ -68,6 +68,7 @@ import org.eclipse.jetty.toolchain.test.annotation.Slow; import org.eclipse.jetty.util.IO; import org.eclipse.jetty.util.log.Log; import org.eclipse.jetty.util.log.StdErrLog; +import org.eclipse.jetty.util.thread.QueuedThreadPool; import org.hamcrest.Matchers; import org.junit.After; import org.junit.Assert; @@ -233,6 +234,17 @@ public class ProxyServletTest public void testProxyWithResponseContent() throws Exception { prepareProxy(new ProxyServlet()); + + HttpClient result = new HttpClient(); + result.setProxyConfiguration(new ProxyConfiguration("localhost", proxyConnector.getLocalPort())); + QueuedThreadPool threadPool = new QueuedThreadPool(); + threadPool.setName("foo"); + threadPool.setMaxThreads(2); + result.setExecutor(threadPool); + result.start(); + + ContentResponse[] responses = new ContentResponse[10]; + final byte[] content = new byte[1024]; Arrays.fill(content, (byte)'A'); prepareServer(new HttpServlet() @@ -246,14 +258,22 @@ public class ProxyServletTest } }); - // Request is for the target server - ContentResponse response = client.newRequest("localhost", serverConnector.getLocalPort()) - .timeout(5, TimeUnit.SECONDS) - .send(); + for ( int i = 0; i < 10; ++i ) + { + // Request is for the target server + responses[i] = result.newRequest("localhost", serverConnector.getLocalPort()) + .timeout(5, TimeUnit.SECONDS) + .send(); + } + + + for ( int i = 0; i < 10; ++i ) + { - Assert.assertEquals(200, response.getStatus()); - Assert.assertTrue(response.getHeaders().containsKey(PROXIED_HEADER)); - Assert.assertArrayEquals(content, response.getContent()); + Assert.assertEquals(200, responses[i].getStatus()); + Assert.assertTrue(responses[i].getHeaders().containsKey(PROXIED_HEADER)); + Assert.assertArrayEquals(content, responses[i].getContent()); + } } @Test diff --git a/pom.xml b/pom.xml index 11ebfc3f212..0396e000489 100644 --- a/pom.xml +++ b/pom.xml @@ -456,6 +456,7 @@ jetty-rhttp jetty-http-spi --> + jetty-overlay-deployer From f403a1e1855374777769a6577a42f073852a8813 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Tue, 21 May 2013 10:52:28 -0700 Subject: [PATCH 06/10] 407386 - Cookies not copied in ServletWebSocketRequest + Adding missing to super.setCookies() + Adding test case to prevent regression --- .../server/ServletWebSocketRequest.java | 11 +- .../websocket/server/RequestHeadersTest.java | 132 ++++++++++++++++++ 2 files changed, 139 insertions(+), 4 deletions(-) create mode 100644 jetty-websocket/websocket-server/src/test/java/org/eclipse/jetty/websocket/server/RequestHeadersTest.java diff --git a/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/ServletWebSocketRequest.java b/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/ServletWebSocketRequest.java index ad24b23d94b..c1dda2c3d57 100644 --- a/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/ServletWebSocketRequest.java +++ b/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/ServletWebSocketRequest.java @@ -18,6 +18,7 @@ package org.eclipse.jetty.websocket.server; +import java.net.HttpCookie; import java.security.Principal; import java.util.ArrayList; import java.util.Arrays; @@ -37,7 +38,6 @@ import org.eclipse.jetty.websocket.api.util.QuoteUtil; public class ServletWebSocketRequest extends UpgradeRequest { - private Map cookieMap; private HttpServletRequest req; public ServletWebSocketRequest(HttpServletRequest request) @@ -53,11 +53,14 @@ public class ServletWebSocketRequest extends UpgradeRequest super.setParameterMap(request.getParameterMap()); // Copy Cookies - cookieMap = new HashMap(); - for (Cookie cookie : request.getCookies()) + List cookies = new ArrayList<>(); + for (Cookie rcookie : request.getCookies()) { - cookieMap.put(cookie.getName(),cookie.getValue()); + HttpCookie hcookie = new HttpCookie(rcookie.getName(),rcookie.getValue()); + // no point handling domain/path/expires/secure/httponly on client request cookies + cookies.add(hcookie); } + super.setCookies(cookies); // Copy Headers Enumeration headerNames = request.getHeaderNames(); diff --git a/jetty-websocket/websocket-server/src/test/java/org/eclipse/jetty/websocket/server/RequestHeadersTest.java b/jetty-websocket/websocket-server/src/test/java/org/eclipse/jetty/websocket/server/RequestHeadersTest.java new file mode 100644 index 00000000000..49866d30ff6 --- /dev/null +++ b/jetty-websocket/websocket-server/src/test/java/org/eclipse/jetty/websocket/server/RequestHeadersTest.java @@ -0,0 +1,132 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +package org.eclipse.jetty.websocket.server; + +import static org.hamcrest.Matchers.*; + +import java.net.HttpCookie; +import java.util.List; +import java.util.concurrent.TimeUnit; + +import org.eclipse.jetty.websocket.api.UpgradeRequest; +import org.eclipse.jetty.websocket.api.UpgradeResponse; +import org.eclipse.jetty.websocket.server.blockhead.BlockheadClient; +import org.eclipse.jetty.websocket.server.helper.EchoSocket; +import org.eclipse.jetty.websocket.servlet.WebSocketCreator; +import org.eclipse.jetty.websocket.servlet.WebSocketServlet; +import org.eclipse.jetty.websocket.servlet.WebSocketServletFactory; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.BeforeClass; +import org.junit.Test; + +public class RequestHeadersTest +{ + private static class EchoCreator implements WebSocketCreator + { + private UpgradeRequest lastRequest; + private UpgradeResponse lastResponse; + private EchoSocket echoSocket = new EchoSocket(); + + @Override + public Object createWebSocket(UpgradeRequest req, UpgradeResponse resp) + { + this.lastRequest = req; + this.lastResponse = resp; + return echoSocket; + } + + public UpgradeRequest getLastRequest() + { + return lastRequest; + } + + public UpgradeResponse getLastResponse() + { + return lastResponse; + } + } + + public static class EchoRequestServlet extends WebSocketServlet + { + /** + * + */ + private static final long serialVersionUID = -6575001979901924179L; + private final WebSocketCreator creator; + + public EchoRequestServlet(WebSocketCreator creator) + { + this.creator = creator; + } + + @Override + public void configure(WebSocketServletFactory factory) + { + factory.setCreator(this.creator); + } + } + + private static SimpleServletServer server; + private static EchoCreator echoCreator; + + @BeforeClass + public static void startServer() throws Exception + { + echoCreator = new EchoCreator(); + server = new SimpleServletServer(new EchoRequestServlet(echoCreator)); + server.start(); + } + + @AfterClass + public static void stopServer() + { + server.stop(); + } + + @Test + public void testAccessRequestCookies() throws Exception + { + BlockheadClient client = new BlockheadClient(server.getServerUri()); + client.setTimeout(TimeUnit.SECONDS,1); + + try + { + client.connect(); + client.addHeader("Cookie: fruit=Pear; type=Anjou\r\n"); + client.sendStandardRequest(); + client.expectUpgradeResponse(); + + UpgradeRequest req = echoCreator.getLastRequest(); + Assert.assertThat("Last Request",req,notNullValue()); + List cookies = req.getCookies(); + Assert.assertThat("Request cookies",cookies,notNullValue()); + Assert.assertThat("Request cookies.size",cookies.size(),is(2)); + for (HttpCookie cookie : cookies) + { + Assert.assertThat("Cookie name",cookie.getName(),anyOf(is("fruit"),is("type"))); + Assert.assertThat("Cookie value",cookie.getValue(),anyOf(is("Pear"),is("Anjou"))); + } + } + finally + { + client.close(); + } + } +} From dd3a918136ecd20ce7bcdcbc9e3794ef4a7edbdd Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Tue, 21 May 2013 11:33:38 -0700 Subject: [PATCH 07/10] 408118 - NullPointerException when parsing request cookies + Added NPE guard for non-Jetty containers. --- .../server/ServletWebSocketRequest.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/ServletWebSocketRequest.java b/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/ServletWebSocketRequest.java index c1dda2c3d57..44094eed40e 100644 --- a/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/ServletWebSocketRequest.java +++ b/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/ServletWebSocketRequest.java @@ -53,14 +53,18 @@ public class ServletWebSocketRequest extends UpgradeRequest super.setParameterMap(request.getParameterMap()); // Copy Cookies - List cookies = new ArrayList<>(); - for (Cookie rcookie : request.getCookies()) + Cookie rcookies[] = request.getCookies(); + if (rcookies != null) { - HttpCookie hcookie = new HttpCookie(rcookie.getName(),rcookie.getValue()); - // no point handling domain/path/expires/secure/httponly on client request cookies - cookies.add(hcookie); + List cookies = new ArrayList<>(); + for (Cookie rcookie : rcookies) + { + HttpCookie hcookie = new HttpCookie(rcookie.getName(),rcookie.getValue()); + // no point handling domain/path/expires/secure/httponly on client request cookies + cookies.add(hcookie); + } + super.setCookies(cookies); } - super.setCookies(cookies); // Copy Headers Enumeration headerNames = request.getHeaderNames(); From cede990d41374a2c09a26d0e1619f2f8918d021b Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Tue, 21 May 2013 15:07:24 -0500 Subject: [PATCH 08/10] Add package-info.java to all jetty packages --- .../src/main/java/org/eclipse/jetty/client/package-info.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/package-info.java b/jetty-client/src/main/java/org/eclipse/jetty/client/package-info.java index 1e3b29aa273..1c9b859c4e1 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/package-info.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/package-info.java @@ -17,6 +17,8 @@ // /** + * Jetty Client : Implementation and Core Classes + * * This package provides APIs, utility classes and an implementation of an asynchronous HTTP client. *

* The core class is {@link HttpClient}, which acts as a central configuration object (for example From 74a4077dad360b10723aafe9ddad282f58ae1e55 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Tue, 21 May 2013 15:09:29 -0500 Subject: [PATCH 09/10] Add package-info.java files to all jetty packages. --- .../jetty/annotations/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/ant/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/ant/types/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/ant/utils/package-info.java | 23 +++++++++++++++++++ .../jetty/client/api/package-info.java | 23 +++++++++++++++++++ .../jetty/client/util/package-info.java | 23 +++++++++++++++++++ .../jetty/continuation/package-info.java | 23 +++++++++++++++++++ .../jetty/deploy/bindings/package-info.java | 23 +++++++++++++++++++ .../jetty/deploy/graph/package-info.java | 23 +++++++++++++++++++ .../jetty/deploy/jmx/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/deploy/package-info.java | 23 +++++++++++++++++++ .../jetty/deploy/providers/package-info.java | 23 +++++++++++++++++++ .../jetty/deploy/util/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/http/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/io/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/io/ssl/package-info.java | 23 +++++++++++++++++++ .../jetty/jaas/callback/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/jaas/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/jaas/spi/package-info.java | 23 +++++++++++++++++++ .../security/jaspi/callback/package-info.java | 23 +++++++++++++++++++ .../security/jaspi/modules/package-info.java | 23 +++++++++++++++++++ .../jetty/security/jaspi/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/jmx/package-info.java | 23 +++++++++++++++++++ .../jetty/util/log/jmx/package-info.java | 23 +++++++++++++++++++ .../jetty/jndi/factories/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/jndi/java/package-info.java | 23 +++++++++++++++++++ .../jetty/jndi/local/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/jndi/package-info.java | 23 +++++++++++++++++++ .../jetty/jspc/plugin/package-info.java | 23 +++++++++++++++++++ .../jetty/maven/plugin/package-info.java | 23 +++++++++++++++++++ .../monitor/integration/package-info.java | 23 +++++++++++++++++++ .../jetty/monitor/jmx/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/monitor/package-info.java | 23 +++++++++++++++++++ .../jetty/monitor/thread/package-info.java | 23 +++++++++++++++++++ .../jetty/monitor/triggers/package-info.java | 23 +++++++++++++++++++ .../jetty/nosql/mongodb/jmx/package-info.java | 23 +++++++++++++++++++ .../jetty/nosql/mongodb/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/nosql/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/overlays/package-info.java | 23 +++++++++++++++++++ .../jetty/plus/annotation/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/plus/jndi/package-info.java | 23 +++++++++++++++++++ .../jetty/plus/security/package-info.java | 23 +++++++++++++++++++ .../jetty/plus/servlet/package-info.java | 23 +++++++++++++++++++ .../jetty/plus/webapp/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/proxy/package-info.java | 23 +++++++++++++++++++ .../jetty/rewrite/handler/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/runner/package-info.java | 23 +++++++++++++++++++ .../security/authentication/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/security/package-info.java | 23 +++++++++++++++++++ .../server/handler/jmx/package-info.java | 23 +++++++++++++++++++ .../jetty/server/handler/package-info.java | 23 +++++++++++++++++++ .../jetty/server/jmx/package-info.java | 23 +++++++++++++++++++ .../jetty/server/nio/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/server/package-info.java | 23 +++++++++++++++++++ .../server/session/jmx/package-info.java | 23 +++++++++++++++++++ .../jetty/server/session/package-info.java | 23 +++++++++++++++++++ .../jetty/servlet/jmx/package-info.java | 23 +++++++++++++++++++ .../jetty/servlet/listener/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/servlet/package-info.java | 23 +++++++++++++++++++ .../jetty/servlets/gzip/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/servlets/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/spring/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/start/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/util/ajax/package-info.java | 23 +++++++++++++++++++ .../jetty/util/annotation/package-info.java | 23 +++++++++++++++++++ .../jetty/util/component/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/util/log/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/util/package-info.java | 23 +++++++++++++++++++ .../jetty/util/preventers/package-info.java | 23 +++++++++++++++++++ .../jetty/util/resource/package-info.java | 23 +++++++++++++++++++ .../jetty/util/security/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/util/ssl/package-info.java | 23 +++++++++++++++++++ .../jetty/util/statistic/package-info.java | 23 +++++++++++++++++++ .../jetty/util/thread/package-info.java | 23 +++++++++++++++++++ .../eclipse/jetty/webapp/package-info.java | 23 +++++++++++++++++++ .../org/eclipse/jetty/xml/package-info.java | 23 +++++++++++++++++++ 76 files changed, 1748 insertions(+) create mode 100644 jetty-annotations/src/main/java/org/eclipse/jetty/annotations/package-info.java create mode 100644 jetty-ant/src/main/java/org/eclipse/jetty/ant/package-info.java create mode 100644 jetty-ant/src/main/java/org/eclipse/jetty/ant/types/package-info.java create mode 100644 jetty-ant/src/main/java/org/eclipse/jetty/ant/utils/package-info.java create mode 100644 jetty-client/src/main/java/org/eclipse/jetty/client/api/package-info.java create mode 100644 jetty-client/src/main/java/org/eclipse/jetty/client/util/package-info.java create mode 100644 jetty-continuation/src/main/java/org/eclipse/jetty/continuation/package-info.java create mode 100644 jetty-deploy/src/main/java/org/eclipse/jetty/deploy/bindings/package-info.java create mode 100644 jetty-deploy/src/main/java/org/eclipse/jetty/deploy/graph/package-info.java create mode 100644 jetty-deploy/src/main/java/org/eclipse/jetty/deploy/jmx/package-info.java create mode 100644 jetty-deploy/src/main/java/org/eclipse/jetty/deploy/package-info.java create mode 100644 jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/package-info.java create mode 100644 jetty-deploy/src/main/java/org/eclipse/jetty/deploy/util/package-info.java create mode 100644 jetty-http/src/main/java/org/eclipse/jetty/http/package-info.java create mode 100644 jetty-io/src/main/java/org/eclipse/jetty/io/package-info.java create mode 100644 jetty-io/src/main/java/org/eclipse/jetty/io/ssl/package-info.java create mode 100644 jetty-jaas/src/main/java/org/eclipse/jetty/jaas/callback/package-info.java create mode 100644 jetty-jaas/src/main/java/org/eclipse/jetty/jaas/package-info.java create mode 100644 jetty-jaas/src/main/java/org/eclipse/jetty/jaas/spi/package-info.java create mode 100644 jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/callback/package-info.java create mode 100644 jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/modules/package-info.java create mode 100644 jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/package-info.java create mode 100644 jetty-jmx/src/main/java/org/eclipse/jetty/jmx/package-info.java create mode 100644 jetty-jmx/src/main/java/org/eclipse/jetty/util/log/jmx/package-info.java create mode 100644 jetty-jndi/src/main/java/org/eclipse/jetty/jndi/factories/package-info.java create mode 100644 jetty-jndi/src/main/java/org/eclipse/jetty/jndi/java/package-info.java create mode 100644 jetty-jndi/src/main/java/org/eclipse/jetty/jndi/local/package-info.java create mode 100644 jetty-jndi/src/main/java/org/eclipse/jetty/jndi/package-info.java create mode 100644 jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/package-info.java create mode 100644 jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/package-info.java create mode 100644 jetty-monitor/src/main/java/org/eclipse/jetty/monitor/integration/package-info.java create mode 100644 jetty-monitor/src/main/java/org/eclipse/jetty/monitor/jmx/package-info.java create mode 100644 jetty-monitor/src/main/java/org/eclipse/jetty/monitor/package-info.java create mode 100644 jetty-monitor/src/main/java/org/eclipse/jetty/monitor/thread/package-info.java create mode 100644 jetty-monitor/src/main/java/org/eclipse/jetty/monitor/triggers/package-info.java create mode 100644 jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/jmx/package-info.java create mode 100644 jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/package-info.java create mode 100644 jetty-nosql/src/main/java/org/eclipse/jetty/nosql/package-info.java create mode 100644 jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/package-info.java create mode 100644 jetty-plus/src/main/java/org/eclipse/jetty/plus/annotation/package-info.java create mode 100644 jetty-plus/src/main/java/org/eclipse/jetty/plus/jndi/package-info.java create mode 100644 jetty-plus/src/main/java/org/eclipse/jetty/plus/security/package-info.java create mode 100644 jetty-plus/src/main/java/org/eclipse/jetty/plus/servlet/package-info.java create mode 100644 jetty-plus/src/main/java/org/eclipse/jetty/plus/webapp/package-info.java create mode 100644 jetty-proxy/src/main/java/org/eclipse/jetty/proxy/package-info.java create mode 100644 jetty-rewrite/src/main/java/org/eclipse/jetty/rewrite/handler/package-info.java create mode 100644 jetty-runner/src/main/java/org/eclipse/jetty/runner/package-info.java create mode 100644 jetty-security/src/main/java/org/eclipse/jetty/security/authentication/package-info.java create mode 100644 jetty-security/src/main/java/org/eclipse/jetty/security/package-info.java create mode 100644 jetty-server/src/main/java/org/eclipse/jetty/server/handler/jmx/package-info.java create mode 100644 jetty-server/src/main/java/org/eclipse/jetty/server/handler/package-info.java create mode 100644 jetty-server/src/main/java/org/eclipse/jetty/server/jmx/package-info.java create mode 100644 jetty-server/src/main/java/org/eclipse/jetty/server/nio/package-info.java create mode 100644 jetty-server/src/main/java/org/eclipse/jetty/server/package-info.java create mode 100644 jetty-server/src/main/java/org/eclipse/jetty/server/session/jmx/package-info.java create mode 100644 jetty-server/src/main/java/org/eclipse/jetty/server/session/package-info.java create mode 100644 jetty-servlet/src/main/java/org/eclipse/jetty/servlet/jmx/package-info.java create mode 100644 jetty-servlet/src/main/java/org/eclipse/jetty/servlet/listener/package-info.java create mode 100644 jetty-servlet/src/main/java/org/eclipse/jetty/servlet/package-info.java create mode 100644 jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/package-info.java create mode 100644 jetty-servlets/src/main/java/org/eclipse/jetty/servlets/package-info.java create mode 100644 jetty-spring/src/main/java/org/eclipse/jetty/spring/package-info.java create mode 100644 jetty-start/src/main/java/org/eclipse/jetty/start/package-info.java create mode 100644 jetty-util-ajax/src/main/java/org/eclipse/jetty/util/ajax/package-info.java create mode 100644 jetty-util/src/main/java/org/eclipse/jetty/util/annotation/package-info.java create mode 100644 jetty-util/src/main/java/org/eclipse/jetty/util/component/package-info.java create mode 100644 jetty-util/src/main/java/org/eclipse/jetty/util/log/package-info.java create mode 100644 jetty-util/src/main/java/org/eclipse/jetty/util/package-info.java create mode 100644 jetty-util/src/main/java/org/eclipse/jetty/util/preventers/package-info.java create mode 100644 jetty-util/src/main/java/org/eclipse/jetty/util/resource/package-info.java create mode 100644 jetty-util/src/main/java/org/eclipse/jetty/util/security/package-info.java create mode 100644 jetty-util/src/main/java/org/eclipse/jetty/util/ssl/package-info.java create mode 100644 jetty-util/src/main/java/org/eclipse/jetty/util/statistic/package-info.java create mode 100644 jetty-util/src/main/java/org/eclipse/jetty/util/thread/package-info.java create mode 100644 jetty-webapp/src/main/java/org/eclipse/jetty/webapp/package-info.java create mode 100644 jetty-xml/src/main/java/org/eclipse/jetty/xml/package-info.java diff --git a/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/package-info.java b/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/package-info.java new file mode 100644 index 00000000000..2842ea93c03 --- /dev/null +++ b/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Annotations : Support for Servlet Annotations + */ +package org.eclipse.jetty.annotations; + diff --git a/jetty-ant/src/main/java/org/eclipse/jetty/ant/package-info.java b/jetty-ant/src/main/java/org/eclipse/jetty/ant/package-info.java new file mode 100644 index 00000000000..5c0b654481f --- /dev/null +++ b/jetty-ant/src/main/java/org/eclipse/jetty/ant/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Ant : Ant Tasks and Configuration + */ +package org.eclipse.jetty.ant; + diff --git a/jetty-ant/src/main/java/org/eclipse/jetty/ant/types/package-info.java b/jetty-ant/src/main/java/org/eclipse/jetty/ant/types/package-info.java new file mode 100644 index 00000000000..1894ebc27fb --- /dev/null +++ b/jetty-ant/src/main/java/org/eclipse/jetty/ant/types/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Ant : Ant Wrappers of Jetty Internals + */ +package org.eclipse.jetty.ant.types; + diff --git a/jetty-ant/src/main/java/org/eclipse/jetty/ant/utils/package-info.java b/jetty-ant/src/main/java/org/eclipse/jetty/ant/utils/package-info.java new file mode 100644 index 00000000000..a86897798e7 --- /dev/null +++ b/jetty-ant/src/main/java/org/eclipse/jetty/ant/utils/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Ant : Utility Classes + */ +package org.eclipse.jetty.ant.utils; + diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/api/package-info.java b/jetty-client/src/main/java/org/eclipse/jetty/client/api/package-info.java new file mode 100644 index 00000000000..70d16ab47b3 --- /dev/null +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/api/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Client : API Classes + */ +package org.eclipse.jetty.client.api; + diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/util/package-info.java b/jetty-client/src/main/java/org/eclipse/jetty/client/util/package-info.java new file mode 100644 index 00000000000..02a2935d7cc --- /dev/null +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/util/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Client : Utility Classes + */ +package org.eclipse.jetty.client.util; + diff --git a/jetty-continuation/src/main/java/org/eclipse/jetty/continuation/package-info.java b/jetty-continuation/src/main/java/org/eclipse/jetty/continuation/package-info.java new file mode 100644 index 00000000000..339765470be --- /dev/null +++ b/jetty-continuation/src/main/java/org/eclipse/jetty/continuation/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Continuation : Generic Async Servlet Method + */ +package org.eclipse.jetty.continuation; + diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/bindings/package-info.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/bindings/package-info.java new file mode 100644 index 00000000000..25e3bebad4d --- /dev/null +++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/bindings/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Deploy : Standard Deployment Bindings + */ +package org.eclipse.jetty.deploy.bindings; + diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/graph/package-info.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/graph/package-info.java new file mode 100644 index 00000000000..b3c6ea29dc7 --- /dev/null +++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/graph/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Deploy : Deployment Graph + */ +package org.eclipse.jetty.deploy.graph; + diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/jmx/package-info.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/jmx/package-info.java new file mode 100644 index 00000000000..cd8e76bba3a --- /dev/null +++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/jmx/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Deploy : JMX Integration + */ +package org.eclipse.jetty.deploy.jmx; + diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/package-info.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/package-info.java new file mode 100644 index 00000000000..fd21df8ffe8 --- /dev/null +++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Deploy : Webapp Deploy Management + */ +package org.eclipse.jetty.deploy; + diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/package-info.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/package-info.java new file mode 100644 index 00000000000..7287a557043 --- /dev/null +++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Deploy : Webapp Deployment Providers + */ +package org.eclipse.jetty.deploy.providers; + diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/util/package-info.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/util/package-info.java new file mode 100644 index 00000000000..4dc053f0e0f --- /dev/null +++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/util/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Deploy : Utilities + */ +package org.eclipse.jetty.deploy.util; + diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/package-info.java b/jetty-http/src/main/java/org/eclipse/jetty/http/package-info.java new file mode 100644 index 00000000000..8c64292c4da --- /dev/null +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Http : Tools for Http processing + */ +package org.eclipse.jetty.http; + diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/package-info.java b/jetty-io/src/main/java/org/eclipse/jetty/io/package-info.java new file mode 100644 index 00000000000..e4d28860c12 --- /dev/null +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty IO : Core classes for Jetty IO subsystem + */ +package org.eclipse.jetty.io; + diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/package-info.java b/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/package-info.java new file mode 100644 index 00000000000..843378f71dd --- /dev/null +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty IO : Core SSL Support + */ +package org.eclipse.jetty.io.ssl; + diff --git a/jetty-jaas/src/main/java/org/eclipse/jetty/jaas/callback/package-info.java b/jetty-jaas/src/main/java/org/eclipse/jetty/jaas/callback/package-info.java new file mode 100644 index 00000000000..d9728083329 --- /dev/null +++ b/jetty-jaas/src/main/java/org/eclipse/jetty/jaas/callback/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jaas : Jaas Callbacks + */ +package org.eclipse.jetty.jaas.callback; + diff --git a/jetty-jaas/src/main/java/org/eclipse/jetty/jaas/package-info.java b/jetty-jaas/src/main/java/org/eclipse/jetty/jaas/package-info.java new file mode 100644 index 00000000000..6d895ffbc69 --- /dev/null +++ b/jetty-jaas/src/main/java/org/eclipse/jetty/jaas/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jaas : Support for Jaas + */ +package org.eclipse.jetty.jaas; + diff --git a/jetty-jaas/src/main/java/org/eclipse/jetty/jaas/spi/package-info.java b/jetty-jaas/src/main/java/org/eclipse/jetty/jaas/spi/package-info.java new file mode 100644 index 00000000000..0c332b36ced --- /dev/null +++ b/jetty-jaas/src/main/java/org/eclipse/jetty/jaas/spi/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jaas : Various Jaas Implementations for Jetty + */ +package org.eclipse.jetty.jaas.spi; + diff --git a/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/callback/package-info.java b/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/callback/package-info.java new file mode 100644 index 00000000000..61c6afab796 --- /dev/null +++ b/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/callback/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jaspi : Callbacks + */ +package org.eclipse.jetty.security.jaspi.callback; + diff --git a/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/modules/package-info.java b/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/modules/package-info.java new file mode 100644 index 00000000000..5ff39d23ca6 --- /dev/null +++ b/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/modules/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jaspi : Authentication Modules + */ +package org.eclipse.jetty.security.jaspi.modules; + diff --git a/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/package-info.java b/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/package-info.java new file mode 100644 index 00000000000..d8526ee017b --- /dev/null +++ b/jetty-jaspi/src/main/java/org/eclipse/jetty/security/jaspi/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jaspi : Java Authentication SPI + */ +package org.eclipse.jetty.security.jaspi; + diff --git a/jetty-jmx/src/main/java/org/eclipse/jetty/jmx/package-info.java b/jetty-jmx/src/main/java/org/eclipse/jetty/jmx/package-info.java new file mode 100644 index 00000000000..ebbba3391ee --- /dev/null +++ b/jetty-jmx/src/main/java/org/eclipse/jetty/jmx/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty JMX : Integration for JMX in Jetty + */ +package org.eclipse.jetty.jmx; + diff --git a/jetty-jmx/src/main/java/org/eclipse/jetty/util/log/jmx/package-info.java b/jetty-jmx/src/main/java/org/eclipse/jetty/util/log/jmx/package-info.java new file mode 100644 index 00000000000..e1cd1db98c4 --- /dev/null +++ b/jetty-jmx/src/main/java/org/eclipse/jetty/util/log/jmx/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty JMX : Jetty Logging JMX Integration + */ +package org.eclipse.jetty.util.log.jmx; + diff --git a/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/factories/package-info.java b/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/factories/package-info.java new file mode 100644 index 00000000000..f05bb33128a --- /dev/null +++ b/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/factories/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jndi : Factories + */ +package org.eclipse.jetty.jndi.factories; + diff --git a/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/java/package-info.java b/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/java/package-info.java new file mode 100644 index 00000000000..23ea5c17f7d --- /dev/null +++ b/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/java/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jndi : Mappings for java + */ +package org.eclipse.jetty.jndi.java; + diff --git a/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/local/package-info.java b/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/local/package-info.java new file mode 100644 index 00000000000..1da8696b276 --- /dev/null +++ b/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/local/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jndi : Mappings for local + */ +package org.eclipse.jetty.jndi.local; + diff --git a/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/package-info.java b/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/package-info.java new file mode 100644 index 00000000000..3e09427b220 --- /dev/null +++ b/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jndi : Java Naming Directory Interface + */ +package org.eclipse.jetty.jndi; + diff --git a/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/package-info.java b/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/package-info.java new file mode 100644 index 00000000000..c95adf3cf69 --- /dev/null +++ b/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Jspc Maven Plugin : Support for precompiling jsps + */ +package org.eclipse.jetty.jspc.plugin; + diff --git a/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/package-info.java b/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/package-info.java new file mode 100644 index 00000000000..93558c960b6 --- /dev/null +++ b/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Maven Plugin : Support for Jetty in Maven build lifecycle + */ +package org.eclipse.jetty.maven.plugin; + diff --git a/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/integration/package-info.java b/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/integration/package-info.java new file mode 100644 index 00000000000..df4afa6fe58 --- /dev/null +++ b/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/integration/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Monitor : Intregation with Java Monitor + */ +package org.eclipse.jetty.monitor.integration; + diff --git a/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/jmx/package-info.java b/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/jmx/package-info.java new file mode 100644 index 00000000000..e9a62d64157 --- /dev/null +++ b/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/jmx/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Monitor : JMX Integration + */ +package org.eclipse.jetty.monitor.jmx; + diff --git a/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/package-info.java b/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/package-info.java new file mode 100644 index 00000000000..2dbc747be1f --- /dev/null +++ b/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Monitor : Tool for Monitoring Threads + */ +package org.eclipse.jetty.monitor; + diff --git a/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/thread/package-info.java b/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/thread/package-info.java new file mode 100644 index 00000000000..13ec778e412 --- /dev/null +++ b/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/thread/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Monitor : Thread Monitoring + */ +package org.eclipse.jetty.monitor.thread; + diff --git a/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/triggers/package-info.java b/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/triggers/package-info.java new file mode 100644 index 00000000000..c235ef80dd9 --- /dev/null +++ b/jetty-monitor/src/main/java/org/eclipse/jetty/monitor/triggers/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Monitor : Triggers for Monitor Events + */ +package org.eclipse.jetty.monitor.triggers; + diff --git a/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/jmx/package-info.java b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/jmx/package-info.java new file mode 100644 index 00000000000..aff2f868321 --- /dev/null +++ b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/jmx/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty NoSql : MongoDB Sessions JMX Integration + */ +package org.eclipse.jetty.nosql.mongodb.jmx; + diff --git a/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/package-info.java b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/package-info.java new file mode 100644 index 00000000000..3c4c161b49c --- /dev/null +++ b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty NoSql : MongoDB Integration + */ +package org.eclipse.jetty.nosql.mongodb; + diff --git a/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/package-info.java b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/package-info.java new file mode 100644 index 00000000000..98e73d5a95e --- /dev/null +++ b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty NoSql : Generic Nosql Session Management + */ +package org.eclipse.jetty.nosql; + diff --git a/jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/package-info.java b/jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/package-info.java new file mode 100644 index 00000000000..967d4b82365 --- /dev/null +++ b/jetty-overlay-deployer/src/main/java/org/eclipse/jetty/overlays/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Overlay : Overlay Deployment Provider + */ +package org.eclipse.jetty.overlays; + diff --git a/jetty-plus/src/main/java/org/eclipse/jetty/plus/annotation/package-info.java b/jetty-plus/src/main/java/org/eclipse/jetty/plus/annotation/package-info.java new file mode 100644 index 00000000000..2865c354712 --- /dev/null +++ b/jetty-plus/src/main/java/org/eclipse/jetty/plus/annotation/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Plus : Limited JEE Annotation Support + */ +package org.eclipse.jetty.plus.annotation; + diff --git a/jetty-plus/src/main/java/org/eclipse/jetty/plus/jndi/package-info.java b/jetty-plus/src/main/java/org/eclipse/jetty/plus/jndi/package-info.java new file mode 100644 index 00000000000..b3d3c148382 --- /dev/null +++ b/jetty-plus/src/main/java/org/eclipse/jetty/plus/jndi/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Plus : Limited JEE Jndi Support + */ +package org.eclipse.jetty.plus.jndi; + diff --git a/jetty-plus/src/main/java/org/eclipse/jetty/plus/security/package-info.java b/jetty-plus/src/main/java/org/eclipse/jetty/plus/security/package-info.java new file mode 100644 index 00000000000..33606e8b7b5 --- /dev/null +++ b/jetty-plus/src/main/java/org/eclipse/jetty/plus/security/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Plus : Limited JEE Security Support + */ +package org.eclipse.jetty.plus.security; + diff --git a/jetty-plus/src/main/java/org/eclipse/jetty/plus/servlet/package-info.java b/jetty-plus/src/main/java/org/eclipse/jetty/plus/servlet/package-info.java new file mode 100644 index 00000000000..f83c607cc6c --- /dev/null +++ b/jetty-plus/src/main/java/org/eclipse/jetty/plus/servlet/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Plus : Servlet Handler for Limited Additional JEE support + */ +package org.eclipse.jetty.plus.servlet; + diff --git a/jetty-plus/src/main/java/org/eclipse/jetty/plus/webapp/package-info.java b/jetty-plus/src/main/java/org/eclipse/jetty/plus/webapp/package-info.java new file mode 100644 index 00000000000..dae277ef35d --- /dev/null +++ b/jetty-plus/src/main/java/org/eclipse/jetty/plus/webapp/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Plus : Limited Additional JEE Webapp Support + */ +package org.eclipse.jetty.plus.webapp; + diff --git a/jetty-proxy/src/main/java/org/eclipse/jetty/proxy/package-info.java b/jetty-proxy/src/main/java/org/eclipse/jetty/proxy/package-info.java new file mode 100644 index 00000000000..74dbcb095ff --- /dev/null +++ b/jetty-proxy/src/main/java/org/eclipse/jetty/proxy/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Proxy : Async Proxy Support + */ +package org.eclipse.jetty.proxy; + diff --git a/jetty-rewrite/src/main/java/org/eclipse/jetty/rewrite/handler/package-info.java b/jetty-rewrite/src/main/java/org/eclipse/jetty/rewrite/handler/package-info.java new file mode 100644 index 00000000000..9d4ff211765 --- /dev/null +++ b/jetty-rewrite/src/main/java/org/eclipse/jetty/rewrite/handler/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Rewrite : Rewrite Handler and Rules for Jetty + */ +package org.eclipse.jetty.rewrite.handler; + diff --git a/jetty-runner/src/main/java/org/eclipse/jetty/runner/package-info.java b/jetty-runner/src/main/java/org/eclipse/jetty/runner/package-info.java new file mode 100644 index 00000000000..7bf367e38c7 --- /dev/null +++ b/jetty-runner/src/main/java/org/eclipse/jetty/runner/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Runner : Embedded Jetty Tool for running webapps directly + */ +package org.eclipse.jetty.runner; + diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/package-info.java b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/package-info.java new file mode 100644 index 00000000000..d126a96283a --- /dev/null +++ b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Security : Authenticators and Callbacks + */ +package org.eclipse.jetty.security.authentication; + diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/package-info.java b/jetty-security/src/main/java/org/eclipse/jetty/security/package-info.java new file mode 100644 index 00000000000..9b067dbf9e5 --- /dev/null +++ b/jetty-security/src/main/java/org/eclipse/jetty/security/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Security : Modular Support for Security in Jetty + */ +package org.eclipse.jetty.security; + diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/jmx/package-info.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/jmx/package-info.java new file mode 100644 index 00000000000..98bc498785e --- /dev/null +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/jmx/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Server : Handler JMX Integration + */ +package org.eclipse.jetty.server.handler.jmx; + diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/package-info.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/package-info.java new file mode 100644 index 00000000000..bf6730a4c86 --- /dev/null +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Server : Core Handler API + */ +package org.eclipse.jetty.server.handler; + diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/jmx/package-info.java b/jetty-server/src/main/java/org/eclipse/jetty/server/jmx/package-info.java new file mode 100644 index 00000000000..034b608cd57 --- /dev/null +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/jmx/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Server : Server JMX Integration + */ +package org.eclipse.jetty.server.jmx; + diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/nio/package-info.java b/jetty-server/src/main/java/org/eclipse/jetty/server/nio/package-info.java new file mode 100644 index 00000000000..d42356efc53 --- /dev/null +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/nio/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Server : Core Server Connector + */ +package org.eclipse.jetty.server.nio; + diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/package-info.java b/jetty-server/src/main/java/org/eclipse/jetty/server/package-info.java new file mode 100644 index 00000000000..edea1030d4e --- /dev/null +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Server : Core Server API + */ +package org.eclipse.jetty.server; + diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/session/jmx/package-info.java b/jetty-server/src/main/java/org/eclipse/jetty/server/session/jmx/package-info.java new file mode 100644 index 00000000000..35a180ce1dc --- /dev/null +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/session/jmx/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Server : Session Management JMX Integration + */ +package org.eclipse.jetty.server.session.jmx; + diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/session/package-info.java b/jetty-server/src/main/java/org/eclipse/jetty/server/session/package-info.java new file mode 100644 index 00000000000..274059e75e1 --- /dev/null +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/session/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Server : Session Management Implementations + */ +package org.eclipse.jetty.server.session; + diff --git a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/jmx/package-info.java b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/jmx/package-info.java new file mode 100644 index 00000000000..02e286f8e0d --- /dev/null +++ b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/jmx/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Servlet : Servlet JMX Integration + */ +package org.eclipse.jetty.servlet.jmx; + diff --git a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/listener/package-info.java b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/listener/package-info.java new file mode 100644 index 00000000000..970cb2c44fa --- /dev/null +++ b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/listener/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Servlet : Useful Servlet Listeners + */ +package org.eclipse.jetty.servlet.listener; + diff --git a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/package-info.java b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/package-info.java new file mode 100644 index 00000000000..14d50082878 --- /dev/null +++ b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Server : Modular Servlet Integration + */ +package org.eclipse.jetty.servlet; + diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/package-info.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/package-info.java new file mode 100644 index 00000000000..f10ba495320 --- /dev/null +++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/gzip/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Servlets : GZIP Filter Classes + */ +package org.eclipse.jetty.servlets.gzip; + diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/package-info.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/package-info.java new file mode 100644 index 00000000000..833ef67c58e --- /dev/null +++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Servlets : Generally Useful Servlets, Handlers and Filters + */ +package org.eclipse.jetty.servlets; + diff --git a/jetty-spring/src/main/java/org/eclipse/jetty/spring/package-info.java b/jetty-spring/src/main/java/org/eclipse/jetty/spring/package-info.java new file mode 100644 index 00000000000..5f1ab5a6ecd --- /dev/null +++ b/jetty-spring/src/main/java/org/eclipse/jetty/spring/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Spring : Spring IoC Configuration for Jetty + */ +package org.eclipse.jetty.spring; + diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/package-info.java b/jetty-start/src/main/java/org/eclipse/jetty/start/package-info.java new file mode 100644 index 00000000000..501aba3be8f --- /dev/null +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Start : Generic Java Start Mechanism + */ +package org.eclipse.jetty.start; + diff --git a/jetty-util-ajax/src/main/java/org/eclipse/jetty/util/ajax/package-info.java b/jetty-util-ajax/src/main/java/org/eclipse/jetty/util/ajax/package-info.java new file mode 100644 index 00000000000..029c6f9ee47 --- /dev/null +++ b/jetty-util-ajax/src/main/java/org/eclipse/jetty/util/ajax/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Simple JSON Utility classes + */ +package org.eclipse.jetty.util.ajax; + diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/annotation/package-info.java b/jetty-util/src/main/java/org/eclipse/jetty/util/annotation/package-info.java new file mode 100644 index 00000000000..bd479ed52b8 --- /dev/null +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/annotation/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Common Utility Annotations + */ +package org.eclipse.jetty.util.annotation; + diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/component/package-info.java b/jetty-util/src/main/java/org/eclipse/jetty/util/component/package-info.java new file mode 100644 index 00000000000..0162f94228d --- /dev/null +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/component/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Jetty Lifecycle Management + */ +package org.eclipse.jetty.util.component; + diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/log/package-info.java b/jetty-util/src/main/java/org/eclipse/jetty/util/log/package-info.java new file mode 100644 index 00000000000..c7a3e593b9a --- /dev/null +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/log/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Common Logging Integrations + */ +package org.eclipse.jetty.util.log; + diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/package-info.java b/jetty-util/src/main/java/org/eclipse/jetty/util/package-info.java new file mode 100644 index 00000000000..bdb68441680 --- /dev/null +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Common Utility Classes + */ +package org.eclipse.jetty.util; + diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/package-info.java b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/package-info.java new file mode 100644 index 00000000000..34a2677a976 --- /dev/null +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/preventers/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Common Memory Leak Prevention Tooling + */ +package org.eclipse.jetty.util.preventers; + diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/package-info.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/package-info.java new file mode 100644 index 00000000000..5fef7324bf6 --- /dev/null +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Common Resource Utilities + */ +package org.eclipse.jetty.util.resource; + diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/security/package-info.java b/jetty-util/src/main/java/org/eclipse/jetty/util/security/package-info.java new file mode 100644 index 00000000000..c439a22ad19 --- /dev/null +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/security/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Common Security Utilities + */ +package org.eclipse.jetty.util.security; + diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/ssl/package-info.java b/jetty-util/src/main/java/org/eclipse/jetty/util/ssl/package-info.java new file mode 100644 index 00000000000..8d5d228a404 --- /dev/null +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/ssl/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Common SSL Utility Classes + */ +package org.eclipse.jetty.util.ssl; + diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/statistic/package-info.java b/jetty-util/src/main/java/org/eclipse/jetty/util/statistic/package-info.java new file mode 100644 index 00000000000..919804f9cfa --- /dev/null +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/statistic/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Common Statistics Utility classes + */ +package org.eclipse.jetty.util.statistic; + diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/thread/package-info.java b/jetty-util/src/main/java/org/eclipse/jetty/util/thread/package-info.java new file mode 100644 index 00000000000..e441ebbd644 --- /dev/null +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/thread/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Common ThreadPool Utilities + */ +package org.eclipse.jetty.util.thread; + diff --git a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/package-info.java b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/package-info.java new file mode 100644 index 00000000000..2eb28057a21 --- /dev/null +++ b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Util : Modular Web Application Support + */ +package org.eclipse.jetty.webapp; + diff --git a/jetty-xml/src/main/java/org/eclipse/jetty/xml/package-info.java b/jetty-xml/src/main/java/org/eclipse/jetty/xml/package-info.java new file mode 100644 index 00000000000..4ab5d08ce8a --- /dev/null +++ b/jetty-xml/src/main/java/org/eclipse/jetty/xml/package-info.java @@ -0,0 +1,23 @@ +// +// ======================================================================== +// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. +// ------------------------------------------------------------------------ +// All rights reserved. This program and the accompanying materials +// are made available under the terms of the Eclipse Public License v1.0 +// and Apache License v2.0 which accompanies this distribution. +// +// The Eclipse Public License is available at +// http://www.eclipse.org/legal/epl-v10.html +// +// The Apache License v2.0 is available at +// http://www.opensource.org/licenses/apache2.0.php +// +// You may elect to redistribute this code under either of these licenses. +// ======================================================================== +// + +/** + * Jetty Xml : IoC Mechanism for Jetty Configuration + */ +package org.eclipse.jetty.xml; + From 79486b5949c054e028dfc0f0413b96c83261bd30 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 23 May 2013 09:48:06 +1000 Subject: [PATCH 10/10] 408720 NPE in AsyncContext.getRequest() Do not null the _event during the complete method --- .../src/main/java/org/eclipse/jetty/server/HttpChannelState.java | 1 - 1 file changed, 1 deletion(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelState.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelState.java index f2e7d3c3fd3..0d542d542f4 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelState.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelState.java @@ -452,7 +452,6 @@ public class HttpChannelState _state=State.COMPLETED; aListeners=_asyncListeners; event=_event; - _event=null; break; default: