Author: remy.maucherat(a)jboss.com
Date: 2009-10-29 11:28:15 -0400 (Thu, 29 Oct 2009)
New Revision: 1230
Modified:
trunk/java/org/jboss/web/rewrite/RewriteRule.java
trunk/java/org/jboss/web/rewrite/RewriteValve.java
trunk/java/org/jboss/web/rewrite/TomcatResolver.java
Log:
- No proxy, so raise an error if the flag is used.
Modified: trunk/java/org/jboss/web/rewrite/RewriteRule.java
===================================================================
--- trunk/java/org/jboss/web/rewrite/RewriteRule.java 2009-10-29 15:27:50 UTC (rev 1229)
+++ trunk/java/org/jboss/web/rewrite/RewriteRule.java 2009-10-29 15:28:15 UTC (rev 1230)
@@ -278,11 +278,11 @@
* module. Use this flag to achieve a more powerful implementation of the
* ProxyPass directive, to map some remote stuff into the namespace of
* the local server.
- * FIXME: No proxy
+ * Note: No proxy
*/
/**
- * FIXME: No passthrough ?
+ * Note: No passthrough
*/
/**
Modified: trunk/java/org/jboss/web/rewrite/RewriteValve.java
===================================================================
--- trunk/java/org/jboss/web/rewrite/RewriteValve.java 2009-10-29 15:27:50 UTC (rev 1229)
+++ trunk/java/org/jboss/web/rewrite/RewriteValve.java 2009-10-29 15:28:15 UTC (rev 1230)
@@ -674,9 +674,9 @@
rule.setNocase(true);
} else if (flag.startsWith("noescape") ||
flag.startsWith("NE")) {
rule.setNoescape(true);
+ /* Proxy not supported, would require strong proxy capabilities
} else if (flag.startsWith("proxy") || flag.startsWith("P"))
{
- // FIXME: Proxy not supported at the moment, would require proxy
capabilities
- //rule.setProxy(true);
+ rule.setProxy(true);*/
} else if (flag.startsWith("qsappend") ||
flag.startsWith("QSA")) {
rule.setQsappend(true);
} else if (flag.startsWith("redirect") ||
flag.startsWith("R")) {
Modified: trunk/java/org/jboss/web/rewrite/TomcatResolver.java
===================================================================
--- trunk/java/org/jboss/web/rewrite/TomcatResolver.java 2009-10-29 15:27:50 UTC (rev
1229)
+++ trunk/java/org/jboss/web/rewrite/TomcatResolver.java 2009-10-29 15:28:15 UTC (rev
1230)
@@ -77,7 +77,7 @@
} else if (key.equals("REQUEST_METHOD")) {
return request.getMethod();
} else if (key.equals("SCRIPT_FILENAME")) {
- return request.getRealPath(request.getServletPath()); //FIXME ?
+ return request.getRealPath(request.getServletPath());
} else if (key.equals("REQUEST_PATH")) {
return request.getRequestPathMB().toString();
} else if (key.equals("CONTEXT_PATH")) {
Show replies by date