[CVS spice] Added new web-applications for testing
sjoberg-yCVjj/[email protected] 22 Sep 2005 12:07:52 -0000
| Newsgroups | gmane.comp.java.spice.cvs |
|---|---|
| Message-ID | <[email protected]> |
<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>spice/components/jervlet/testdata</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt>jetty/<a href="#file1">jetty.xml</a></tt></td><td align="right" id="added">+12</td><td align="right" id="removed">-14</td><td nowrap="nowrap" align="center">1.1 -> 1.2</td></tr>
<tr class="alt"><td><tt>webapps/avalon/WEB-INF/<a href="#file2"><span id="added">web.xml</span></a></tt></td><td align="right" id="added">+38</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr><td><tt>webapps/avalon/<a href="#file3"><span id="added">message.txt</span></a></tt></td><td align="right" id="added">+1</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr class="alt"><td><tt>webapps/dna/WEB-INF/<a href="#file4"><span id="added">web.xml</span></a></tt></td><td align="right" id="added">+38</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr><td><tt>webapps/dna/<a href="#file5"><span id="added">message.txt</span></a></tt></td><td align="right" id="added">+1</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr class="alt"><td><tt>webapps/pico/WEB-INF/<a href="#file6"><span id="added">web.xml</span></a></tt></td><td align="right" id="added">+38</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr><td><tt>webapps/pico/<a href="#file7"><span id="added">message.txt</span></a></tt></td><td align="right" id="added">+1</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr class="alt"><td><tt>webapps/plain/WEB-INF/<a href="#file8"><span id="added">web.xml</span></a></tt></td><td align="right" id="added">+38</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr><td><tt>webapps/plain/<a href="#file9"><span id="added">message.txt</span></a></tt></td><td align="right" id="added">+1</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr class="alt"><td><tt>webapps/template/WEB-INF/<a href="#file10"><span id="removed">web.xml</span></a></tt></td><td></td><td align="right" id="removed">-45</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr><td><tt>webapps/template/src/com/acme/<a href="#file11"><span id="removed">DemoFilter.java</span></a></tt></td><td></td><td align="right" id="removed">-44</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr class="alt"><td><tt> /<a href="#file12"><span id="removed">DumpServlet.java</span></a></tt></td><td></td><td align="right" id="removed">-100</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr><td><tt>webapps/template/<a href="#file13"><span id="removed">build.xml</span></a></tt></td><td></td><td align="right" id="removed">-71</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr class="alt"><td><tt> /<a href="#file14"><span id="removed">index.html</span></a></tt></td><td></td><td align="right" id="removed">-46</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr><td><tt> /<span id="removed">jetty_banner.gif</span></tt></td><td colspan="2" align="center"><small id="info">[binary]</small></td><td nowrap="nowrap">1.1 removed</td></tr>
<tr class="alt"><td><tt>webapps/<span id="added">plain.war</span></tt></td><td colspan="2" align="center"><small id="info">[binary]</small></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr><td><tt> /<span id="removed">template2.war</span></tt></td><td colspan="2" align="center"><small id="info">[binary]</small></td><td nowrap="nowrap">1.1 removed</td></tr>
<tr><td></td><td align="right" id="added">+168</td><td align="right" id="removed">-320</td><td></td></tr>
</table>
<small id="info">9 added + 7 removed + 1 modified, total 17 files</small><br />
<pre class="comment">
Added new web-applications for testing
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">spice/components/jervlet/testdata/jetty<br /></span>
<div class="fileheader"><big><b>jetty.xml</b></big> <small id="info">1.1 -> 1.2</small></div>
<pre class="diff"><small id="info">diff -u -r1.1 -r1.2
--- jetty.xml 5 Jul 2005 13:32:12 -0000 1.1
+++ jetty.xml 22 Sep 2005 12:07:50 -0000 1.2
@@ -52,7 +52,7 @@
</small></pre><pre class="diff" id="context"> <Arg>
<New class="org.mortbay.http.SocketListener">
<Set name="Port"><SystemProperty name="jetty.port" default="10080"/></Set>
</pre><pre class="diff" id="removed">- <Set name="PoolName">P1</Set>
</pre><pre class="diff" id="added">+ <span id="addedchars"> </span><Set name="PoolName">P1</Set>
</pre><pre class="diff" id="context"> <Set name="MinThreads">10</Set>
<Set name="MaxThreads">200</Set>
<Set name="MaxIdleTimeMs">30000</Set>
</pre><pre class="diff"><small id="info">@@ -94,13 +94,13 @@
</small></pre><pre class="diff" id="context">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
</pre><pre class="diff" id="removed">- <!-- Add a AJP13 listener on port 1<span id="removedchars">8</span>009 -->
</pre><pre class="diff" id="added">+ <!-- Add a AJP13 listener on port 1<span id="addedchars">0</span>009 -->
</pre><pre class="diff" id="context"> <!-- This protocol can be used with mod_jk in apache, IIS etc. -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<Call name="addListener">
<Arg>
<New class="org.mortbay.http.ajp.AJP13Listener">
</pre><pre class="diff" id="removed">- <Set name="Port">1<span id="removedchars">8</span>009</Set>
</pre><pre class="diff" id="added">+ <Set name="Port">1<span id="addedchars">0</span>009</Set>
</pre><pre class="diff" id="context"> <Set name="MinThreads">5</Set>
<Set name="MaxThreads">20</Set>
<Set name="MaxIdleTimeMs">0</Set>
</pre><pre class="diff"><small id="info">@@ -148,15 +148,16 @@
</small></pre><pre class="diff" id="context"> <!-- + Use the webdefault.xml resource for the defaults descriptor -->
<!-- + Upack the war file -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
</pre><pre class="diff" id="added">+ <!-- UNCOMMENT TO ACTIVATE
</pre><pre class="diff" id="context"> <Set name="rootWebApp">root</Set>
</pre><pre class="diff" id="removed">-
</pre><pre class="diff" id="added">+
</pre><pre class="diff" id="context"> <Call name="addWebApplications">
<Arg></Arg>
</pre><pre class="diff" id="removed">- <Arg><SystemProperty name="jetty.home" default="."/>/testdata/webapps/</Arg>
- <Arg><SystemProperty name="jetty.home" default="."/>/testdata/jetty/webdefault.xml</Arg>
- <Arg type="boolean">true</Arg><!--extract WARs-->
</pre><pre class="diff" id="added">+ <Arg><SystemProperty name="jetty.home" default="../.."/>/testdata/webapps/</Arg>
+ <Arg><SystemProperty name="jetty.home" default="../.."/>/testdata/jetty/webdefault.xml</Arg>
+ <Arg type="boolean">true</Arg>
</pre><pre class="diff" id="context"> </Call>
</pre><pre class="diff" id="removed">-
</pre><pre class="diff" id="added">+ -->
</pre><pre class="diff" id="context">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- Add and configure a specific web application -->
</pre><pre class="diff"><small id="info">@@ -165,10 +166,9 @@
</small></pre><pre class="diff" id="context"> <!-- + Set java 2 complaint classloading -->
<!-- + Set Virtual Hosts. A Null host or empty array means all hosts -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
</pre><pre class="diff" id="removed">- <!-- UNCOMMENT TO ACTIVATE
</pre><pre class="diff" id="context"> <Call name="addWebApplication">
</pre><pre class="diff" id="removed">- <Arg>/context</Arg>
- <Arg>./webapps/root</Arg>
</pre><pre class="diff" id="added">+ <Arg>/plain</Arg>
+ <Arg>../../testdata/webapps/plain</Arg>
</pre><pre class="diff" id="context">
<Set name="extractWAR">false</Set>
<Set name="defaultsDescriptor">org/mortbay/jetty/servlet/webdefault.xml</Set>
</pre><pre class="diff"><small id="info">@@ -179,18 +179,16 @@
</small></pre><pre class="diff" id="context"> <Item></Item>
<Item>127.0.0.1</Item>
<Item>localhost</Item>
</pre><pre class="diff" id="removed">- <Item>www.acme.com</Item>
</pre><pre class="diff" id="context"> </Array>
</Set>
</Call>
</pre><pre class="diff" id="removed">- -->
</pre><pre class="diff" id="context">
<!-- =============================================================== -->
<!-- Configure the Request Log -->
<!-- =============================================================== -->
<Set name="RequestLog">
<New class="org.mortbay.http.NCSARequestLog">
</pre><pre class="diff" id="removed">- <Arg><SystemProperty name="jetty.home" default="."/><span id="removedchars">/testdata/jetty/logs/</span>yyyy_mm_dd.request.log</Arg>
</pre><pre class="diff" id="added">+ <Arg><SystemProperty name="jetty.home" default="."/>yyyy_mm_dd.request.log</Arg>
</pre><pre class="diff" id="context"> <Set name="retainDays">90</Set>
<Set name="append">true</Set>
<Set name="extended">false</Set>
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet/testdata/webapps/avalon/WEB-INF<br /></span>
<div class="fileheader" id="added"><big><b>web.xml</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N web.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ web.xml 22 Sep 2005 12:07:50 -0000 1.1
@@ -0,0 +1,38 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app
+ xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <display-name>WebApp for Avalon test cases</display-name>
+
+ <filter>
+ <filter-name>AvalonFilter</filter-name>
+ <filter-class>org.codehaus.spice.jervlet.impl.avalon.AvalonTestFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>AvalonFilter</filter-name>
+ <url-pattern>/avalon-filter-servlet</url-pattern>
+ </filter-mapping>
+
+ <servlet>
+ <servlet-name>AvalonServlet</servlet-name>
+ <servlet-class>org.codehaus.spice.jervlet.impl.avalon.AvalonTestServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>AvalonServlet</servlet-name>
+ <url-pattern>/avalon-servlet</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>AvalonServlet</servlet-name>
+ <url-pattern>/avalon-filter-servlet</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
+
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet/testdata/webapps/avalon<br /></span>
<div class="fileheader" id="added"><big><b>message.txt</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N message.txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ message.txt 22 Sep 2005 12:07:50 -0000 1.1
@@ -0,0 +1 @@
</small></pre><pre class="diff" id="added">+avalon
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file4" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet/testdata/webapps/dna/WEB-INF<br /></span>
<div class="fileheader" id="added"><big><b>web.xml</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N web.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ web.xml 22 Sep 2005 12:07:50 -0000 1.1
@@ -0,0 +1,38 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app
+ xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <display-name>WebApp for DNA test cases</display-name>
+
+ <filter>
+ <filter-name>DNAFilter</filter-name>
+ <filter-class>org.codehaus.spice.jervlet.impl.dna.DNATestFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>DNAFilter</filter-name>
+ <url-pattern>/dna-filter-servlet</url-pattern>
+ </filter-mapping>
+
+ <servlet>
+ <servlet-name>DNAServlet</servlet-name>
+ <servlet-class>org.codehaus.spice.jervlet.impl.dna.DNATestServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>DNAServlet</servlet-name>
+ <url-pattern>/dna-servlet</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>DNAServlet</servlet-name>
+ <url-pattern>/dna-filter-servlet</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
+
</pre></div>
<hr /><a name="file5" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet/testdata/webapps/dna<br /></span>
<div class="fileheader" id="added"><big><b>message.txt</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N message.txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ message.txt 22 Sep 2005 12:07:50 -0000 1.1
@@ -0,0 +1 @@
</small></pre><pre class="diff" id="added">+dna
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file6" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet/testdata/webapps/pico/WEB-INF<br /></span>
<div class="fileheader" id="added"><big><b>web.xml</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N web.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ web.xml 22 Sep 2005 12:07:50 -0000 1.1
@@ -0,0 +1,38 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app
+ xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <display-name>WebApp for Pico test cases</display-name>
+
+ <filter>
+ <filter-name>PicoFilter</filter-name>
+ <filter-class>org.codehaus.spice.jervlet.impl.pico.PicoTestFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>PicoFilter</filter-name>
+ <url-pattern>/pico-filter-servlet</url-pattern>
+ </filter-mapping>
+
+ <servlet>
+ <servlet-name>PicoServlet</servlet-name>
+ <servlet-class>org.codehaus.spice.jervlet.impl.pico.PicoTestServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>PicoServlet</servlet-name>
+ <url-pattern>/pico-servlet</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>PicoServlet</servlet-name>
+ <url-pattern>/pico-filter-servlet</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
+
</pre></div>
<hr /><a name="file7" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet/testdata/webapps/pico<br /></span>
<div class="fileheader" id="added"><big><b>message.txt</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N message.txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ message.txt 22 Sep 2005 12:07:51 -0000 1.1
@@ -0,0 +1 @@
</small></pre><pre class="diff" id="added">+pico
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file8" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet/testdata/webapps/plain/WEB-INF<br /></span>
<div class="fileheader" id="added"><big><b>web.xml</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N web.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ web.xml 22 Sep 2005 12:07:51 -0000 1.1
@@ -0,0 +1,38 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app
+ xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <display-name>WebApp for plain, standard servlet and filter test cases</display-name>
+
+ <filter>
+ <filter-name>PlainFilter</filter-name>
+ <filter-class>org.codehaus.spice.jervlet.impl.PlainTestFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>PlainFilter</filter-name>
+ <url-pattern>/plain-filter-servlet</url-pattern>
+ </filter-mapping>
+
+ <servlet>
+ <servlet-name>PlainServlet</servlet-name>
+ <servlet-class>org.codehaus.spice.jervlet.impl.PlainTestServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>PlainServlet</servlet-name>
+ <url-pattern>/plain-servlet</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>PlainServlet</servlet-name>
+ <url-pattern>/plain-filter-servlet</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
+
</pre></div>
<hr /><a name="file9" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet/testdata/webapps/plain<br /></span>
<div class="fileheader" id="added"><big><b>message.txt</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N message.txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ message.txt 22 Sep 2005 12:07:51 -0000 1.1
@@ -0,0 +1 @@
</small></pre><pre class="diff" id="added">+plain
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file10" /><div class="file">
<span class="pathname" id="removed">spice/components/jervlet/testdata/webapps/template/WEB-INF<br /></span>
<div class="fileheader" id="removed"><big><b>web.xml</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N web.xml
--- web.xml 5 Jul 2005 13:32:14 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,45 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0" encoding="ISO-8859-1"?>
-<web-app
- xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
- version="2.4">
-
- <display-name>Template WebApp</display-name>
-
-<!--
- <filter>
- <filter-name>Filter</filter-name>
- <filter-class>com.acme.DemoFilter</filter-class>
- </filter>
-
- <filter-mapping>
- <filter-name>Filter</filter-name>
- <url-pattern>/</url-pattern>
- </filter-mapping>
-
- <servlet>
- <servlet-name>Dump</servlet-name>
- <servlet-class>com.acme.DumpServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>Dump</servlet-name>
- <url-pattern>/dump/*</url-pattern>
- </servlet-mapping>
-
- <servlet-mapping>
- <servlet-name>Dump</servlet-name>
- <url-pattern>*.dump</url-pattern>
- </servlet-mapping>
-
- <error-page>
- <error-code>404</error-code>
- <location>/dump/ERROR</location>
- </error-page>
--->
-
-</web-app>
-
-
</pre></div>
<hr /><a name="file11" /><div class="file">
<span class="pathname" id="removed">spice/components/jervlet/testdata/webapps/template/src/com/acme<br /></span>
<div class="fileheader" id="removed"><big><b>DemoFilter.java</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N DemoFilter.java
--- DemoFilter.java 5 Jul 2005 13:32:14 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,44 +0,0 @@
</small></pre><pre class="diff" id="removed">-// ===========================================================================
-// Copyright (c) 1996-2003 Mort Bay Consulting Pty. Ltd. All rights reserved.
-// $Id: DemoFilter.java,v 1.1 2005/07/05 13:32:14 proyal Exp $
-// ---------------------------------------------------------------------------
-
-package com.acme;
-import java.io.IOException;
-
-import javax.servlet.Filter;
-import javax.servlet.FilterChain;
-import javax.servlet.FilterConfig;
-import javax.servlet.ServletException;
-import javax.servlet.ServletRequest;
-import javax.servlet.ServletResponse;
-
-
-/* ------------------------------------------------------------ */
-public class DemoFilter implements Filter
-{
- private FilterConfig config;
-
- /* ------------------------------------------------------------ */
- public void init(FilterConfig filterConfig)
- throws ServletException
- {
- config=filterConfig;
- }
-
- /* ------------------------------------------------------------ */
- public void doFilter(ServletRequest request,
- ServletResponse response,
- FilterChain chain)
- throws IOException, ServletException
- {
- // Do your funky filter thang here ...
- chain.doFilter(request, response);
- }
-
- /* ------------------------------------------------------------ */
- public void destroy()
- {
- }
-}
-
</pre></div>
<hr /><a name="file12" /><div class="file">
<span class="pathname" id="removed">spice/components/jervlet/testdata/webapps/template/src/com/acme<br /></span>
<div class="fileheader" id="removed"><big><b>DumpServlet.java</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N DumpServlet.java
--- DumpServlet.java 5 Jul 2005 13:32:14 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,100 +0,0 @@
</small></pre><pre class="diff" id="removed">-package com.acme;
-
-import java.io.*;
-import java.util.Enumeration;
-import javax.servlet.ServletException;
-import javax.servlet.ServletRequest;
-import javax.servlet.ServletRequestWrapper;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-public class DumpServlet extends HttpServlet
-{
- public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException,
- ServletException
- {
- String furi = (String) request.getAttribute("javax.servlet.forward.request_uri");
- if (furi == null) furi = request.getRequestURI();
- String url = request.getScheme() + "://" + request.getServerName() + ":"
- + request.getServerPort() + furi;
-
- String uri = (String) request.getAttribute("javax.servlet.forward.request_uri");
- if (uri == null) uri = request.getRequestURI();
-
- String servlet = (String) request.getAttribute("javax.servlet.include.servlet_path");
- if (servlet == null) servlet = request.getServletPath();
-
- String info = (String) request.getAttribute("javax.servlet.include.path_info");
- if (info == null) info = request.getPathInfo();
-
- PrintWriter out = null;
- try
- {
- out = new PrintWriter(new OutputStreamWriter(response.getOutputStream()));
- }
- catch (IllegalStateException e)
- {
- out = response.getWriter();
- }
-
- String referer = request.getHeader("referer");
- response.setContentType("text/html");
-
- out.write("<html><body>");
- out.write("<h1>Dump from " + getServletContext().getServerInfo() + "</h1>");
- out.write("<h3>Logical Values</h3>");
- out.write("<table border=\"1\"><tr><th>Name</th><th>Value</th><th>Expected Value</th></tr>");
- out.write("<tr><td>Client URL</td><td>" + url
- + "</td><td>Same as browser location bar</td></tr>");
- out.write("<tr><td>Client URI</td><td>" + uri
- + "</td><td>Tail of browser location bar</td></tr>");
- out.write("<tr><td>This Servlet</td><td>" + servlet + "</td><td>/dump</td></tr>");
- out.write("<tr><td>This Info</td><td>" + info + "</td><td>/info</td></tr>");
- out.write("</table>");
-
- // loop over all wrappers
- ServletRequest sr = request;
-
- while (sr != null)
- {
- out.write("<h3>" + sr.getClass() + ":" + sr.hashCode() + "</h3>");
-
- out.write("<table border=\"1\"><tr><th>Name</th><th>Value</th></tr>");
- out.write("<tr><td>getScheme()</td><td>" + sr.getScheme() + "</td></tr>");
- out.write("<tr><td>getServerName()</td><td>" + sr.getServerName() + "</td></tr>");
- out.write("<tr><td>getServlerPort()</td><td>" + sr.getServerPort() + "</td></tr>");
-
- if (sr instanceof HttpServletRequest)
- {
- HttpServletRequest hsr = (HttpServletRequest) sr;
-
- out.write("<tr><td>getRequestURL()</td><td>" + hsr.getRequestURL() + "</td></tr>");
- out.write("<tr><td>getRequestURI()</td><td>" + hsr.getRequestURI() + "</td></tr>");
- out.write("<tr><td>getContextPath()</td><td>" + hsr.getContextPath()
- + "</td></tr>");
- out.write("<tr><td>getServletPath()</td><td>" + hsr.getServletPath()
- + "</td></tr>");
- out.write("<tr><td>getPathInfo()</td><td>" + hsr.getPathInfo() + "</td></tr>");
- }
-
- Enumeration e = sr.getAttributeNames();
- while (e.hasMoreElements())
- {
- String name = (String) e.nextElement();
- out.write("<tr><td>getAttribute(\"" + name + "\")</td><td>" + sr.getAttribute(name)
- + "</td></tr>");
- }
- out.write("</table>");
-
- if (sr instanceof ServletRequestWrapper)
- sr = ((ServletRequestWrapper) sr).getRequest();
- else
- sr = null;
- }
-
- if (referer != null) out.write("<p><a href=\"" + referer + "\">BACK</a></p>");
- out.write("</body></html>");
- out.flush();
- }
-}
</pre></div>
<hr /><a name="file13" /><div class="file">
<span class="pathname" id="removed">spice/components/jervlet/testdata/webapps/template<br /></span>
<div class="fileheader" id="removed"><big><b>build.xml</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N build.xml
--- build.xml 5 Jul 2005 13:32:14 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,71 +0,0 @@
</small></pre><pre class="diff" id="removed">-
-<project name="template" default="classes" basedir=".">
-
- <property name="src" value="${basedir}/src"/>
- <property name="webinf" value="${basedir}/WEB-INF"/>
- <property name="webinf.lib" value="${webinf}/lib"/>
- <property name="webinf.classes" value="${webinf}/classes"/>
- <property name="lib" value="${basedir}/../../lib" />
- <property name="ext" value="${basedir}/../../ext" />
- <property name="war" value="${basedir}/../${ant.project.name}.war" />
- <property name="javac.debug" value="true" />
- <property name="javac.optimize" value="true" />
- <property name="javac.deprecation" value="true" />
-
-
- <target name="classpath">
- <mkdir dir="${webinf.lib}"/>
- <path id="classpath">
- <fileset dir="${webinf.lib}">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${lib}">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${ext}">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <property name="expanded.classpath" refid="classpath"/>
- <echo message="classpath=${expanded.classpath}" level="info"/>
- </target>
-
-
- <target name="classes" depends="classpath" description="Compile classes">
- <mkdir dir="${webinf.classes}"/>
- <javac srcdir="${src}"
- destdir="${webinf.classes}"
- debug="${javac.debug}"
- optimize="${javac.optimize}"
- deprecation="${javac.deprecation}"
- >
- <classpath>
- <path refid="classpath"/>
- </classpath>
-
- <include name="**/*.java"/>
- </javac>
- </target>
-
- <target name="war" depends="classes" description="build WAR">
- <war destfile="${war}"
- webxml="${webinf}/web.xml"
- basedir="${basedir}">
- <exclude name="build.xml"/>
- <exclude name="WEB-INF/web.xml"/>
- <exclude name="**/CVS/**"/>
- <exclude name="src/**"/>
- </war>
- </target>
-
- <target name="clean" description="Remove generated files">
- <delete file="${war}" quiet="false"/>
- <delete dir="${webinf.classes}"/>
- <delete dir="${webinf.lib}"/>
- </target>
-
-</project>
-
-
-
</pre></div>
<hr /><a name="file14" /><div class="file">
<span class="pathname" id="removed">spice/components/jervlet/testdata/webapps/template<br /></span>
<div class="fileheader" id="removed"><big><b>index.html</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N index.html
--- index.html 5 Jul 2005 13:32:14 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,46 +0,0 @@
</small></pre><pre class="diff" id="removed">-<HTML>
- <HEAD>
- <TITLE>Powered By Jetty</TITLE>
- <META http-equiv="Pragma" content="no-cache">
- <META http-equiv="Cache-Control" content="no-cache,no-store">
- </HEAD>
-<BODY>
-<A HREF="http://jetty.mortbay.org"><IMG SRC="jetty_banner.gif"></A>
-<P>
-This is a template web application context, which can be used as the
-basis of your own web application. It contains some static content
-and a <a href="dump">Dump Servlet</a>.
-It's location is $JETTY_HOME/webapps/template.
-<p>
-If you want to see a full demonstration of Jetty, then you will need
-to have either the Jetty-5.0.x-extra or Jetty-5.0.x-all package installed.
-You will then be able to run the demo with:<PRE>
- java -jar start.jar etc/admin.xml etc/demo.xml
-</PRE>
-<p>
-For a standard installation of Jetty, the <a href="/javadoc">javadoc</a>
-will be available.
-<p>
-If this server was started with the etc/admin.xml configuration, then
-a <A href="http://localhost:8081">simple admin UI</a> may be
-available (default username/password is admin/admin).
-<p>
-If this server was started via JMX, then a
-<A href="http://localhost:8082">JMX console UI</a> should be available.
-To start Jetty with JMX use: <PRE>
- java -Dstart.class=org.mortbay.util.jmx.Main -jar start.jar etc/jetty.mlet
-</PRE>
-
-To start a server using the jars and resource in the extra packages, use:
-<PRE>
-java -DSTART=extra/etc/start.config -jar start.jar
-</PRE>
-or
-<PRE>
-java -Dmain.class=org.mortbay.jetty.plus.Server -DSTART=extra/etc/start.config -jar start.jar
-</PRE>
-
-
-
-</BODY>
-</HTML>
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.8</small></center>
</body></html>