JETTY-1380 Jetty Rewrite example does not work in Hightide

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3458 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Michael Gorovoy 2011-07-01 21:06:34 +00:00
parent c8375b286a
commit 9807ac7f21
4 changed files with 12 additions and 9 deletions

View File

@ -1,3 +1,6 @@
jetty-7.4.4-SNAPSHOT
+ JETTY-1380 Jetty Rewrite example does not work in Hightide
jetty-7.4.3.v20110701 01 July 2011 jetty-7.4.3.v20110701 01 July 2011
+ 295832 ProxyServlet more extensible and configurable + 295832 ProxyServlet more extensible and configurable
+ 302566 GZIP handler for embedded Jetty servers + 302566 GZIP handler for embedded Jetty servers

View File

@ -64,6 +64,6 @@ public class RewriteServlet extends HttpServlet
@Override @Override
public String getServletInfo() public String getServletInfo()
{ {
return "Rewrite sServlet"; return "Rewrite Servlet";
} }
} }

View File

@ -8,6 +8,6 @@
<body> <body>
<h1>Rewrite not enabled</h1> <h1>Rewrite not enabled</h1>
<p>The rewrite handler is currently not enabled. To enable this demo, start up Jetty with:</p> <p>The rewrite handler is currently not enabled. To enable this demo, start up Jetty with:</p>
<code>java -jar start.jar OPTIONS=default,rewrite etc/jetty.xml etc/jetty-rewrite.xml</code> <code>java -jar start.jar OPTIONS=rewrite etc/jetty-rewrite.xml</code>
</body> </body>
</html> </html>

View File

@ -11,23 +11,23 @@
<h2>Internal URI rewrite</h2> <h2>Internal URI rewrite</h2>
<dl> <dl>
<dt><a href="/some/old/context">Rewrite "/some/old/context" to "/rewritten/newcontext"</a></dt> <dt><a href="../some/old/context">Rewrite "../some/old/context" to "../rewritten/newcontext"</a></dt>
<dd>This demo shows how the entire request URI can be internally rewritten to point to another context, using simple text matching</dd> <dd>This demo shows how the entire request URI can be internally rewritten to point to another context, using simple text matching</dd>
<dt><a href="/rewrite/for/beginning">Rewrite "/rewrite/for/beginning" to "/rewritten/beginning"</a></dt> <dt><a href="../rewrite/for/beginning">Rewrite "../rewrite/for/beginning" to "../rewritten/beginning"</a></dt>
<dd>This demo shows how the beginning of the request URI can be rewritten, while keeping the ending section</dd> <dd>This demo shows how the beginning of the request URI can be rewritten, while keeping the ending section</dd>
<dt><a href="/rewritten/reverse/bar/foo">Rewrite "bar/foo" to "foo/bar" using regex</a></dt> <dt><a href="../rewritten/reverse/bar/foo">Rewrite "bar/foo" to "foo/bar" using regex</a></dt>
<dd>This demo shows how sections of the request URI can be rearranged. It uses regex to parse out each section, and then return them in reverse order</dd> <dd>This demo shows how sections of the request URI can be rearranged. It uses regex to parse out each section, and then return them in reverse order</dd>
<dt><a href="/rewrite/for/reverse/bar/foo">Rewrite the beginning, and reverse the path sections</a></dt> <dt><a href="../rewrite/for/reverse/bar/foo">Rewrite the beginning, and reverse the path sections</a></dt>
<dd>This demo shows how rewrite patterns can be chained.</dd> <dd>This demo shows how rewrite patterns can be chained.</dd>
<dt><a href="/dump/reverse/bar/foo">Rewrite "bar/foo" to "foo/bar", full dump view</a></dt> <dt><a href="../dump/reverse/bar/foo">Rewrite "bar/foo" to "foo/bar", full dump view</a></dt>
<dd>This demo rewrites "bar/foo" to "foo/bar" the same as earlier, but shows a full dump of the request</dd> <dd>This demo rewrites "bar/foo" to "foo/bar" the same as earlier, but shows a full dump of the request</dd>
<h2>Redirect</h2> <h2>Redirect</h2>
<dt><a href="/redirect/this">Redirect "/redirect/this" to "/redirected/this"</a></dt> <dt><a href="../redirect/this">Redirect "../redirect/this" to "../redirected/this"</a></dt>
<dd>This demo redirects the request in a manner visible to the user agent, instead of doing an internal rewrite.</dd> <dd>This demo redirects the request in a manner visible to the user agent, instead of doing an internal rewrite.</dd>
<h2>Cookie</h2> <h2>Cookie</h2>
@ -35,7 +35,7 @@
<dd>This demo rule sets a "visited" cookie for each page you visit. The second time you go to any of the links above, you will see an additional line, "Previously visited: yes".</dd> <dd>This demo rule sets a "visited" cookie for each page you visit. The second time you go to any of the links above, you will see an additional line, "Previously visited: yes".</dd>
<h2>Response Code</h2> <h2>Response Code</h2>
<dt><a href="/400Error">Return a 400 error status</a></dt> <dt><a href="../400Error">Return a 400 error status</a></dt>
<dd>This demo shows how to modify the response code of a page to an error, based on its URL</dd> <dd>This demo shows how to modify the response code of a page to an error, based on its URL</dd>
</dl> </dl>