Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2015-10-22 08:34:47 -0400
committerGreg Wilkins2015-10-22 08:34:47 -0400
commit746c556c94ca79fdffdf4093074b3d2afc769679 (patch)
tree6f28921ee49ba54f09c2c59d2a82539022854d2d /jetty-rewrite
parent03b994a32c6f97fda8089f6d31d72fe89ce9c61e (diff)
downloadorg.eclipse.jetty.project-746c556c94ca79fdffdf4093074b3d2afc769679.tar.gz
org.eclipse.jetty.project-746c556c94ca79fdffdf4093074b3d2afc769679.tar.xz
org.eclipse.jetty.project-746c556c94ca79fdffdf4093074b3d2afc769679.zip
Added ASYNC to default DispatcherTypes in rewriteHandler
Diffstat (limited to 'jetty-rewrite')
-rw-r--r--jetty-rewrite/src/main/config/etc/jetty-rewrite.xml10
-rw-r--r--jetty-rewrite/src/main/java/org/eclipse/jetty/rewrite/handler/RewriteHandler.java2
2 files changed, 11 insertions, 1 deletions
diff --git a/jetty-rewrite/src/main/config/etc/jetty-rewrite.xml b/jetty-rewrite/src/main/config/etc/jetty-rewrite.xml
index 43ae117c17..63af3c21d7 100644
--- a/jetty-rewrite/src/main/config/etc/jetty-rewrite.xml
+++ b/jetty-rewrite/src/main/config/etc/jetty-rewrite.xml
@@ -20,8 +20,18 @@
<Set name="rewritePathInfo"><Property name="jetty.rewrite.rewritePathInfo" deprecated="rewrite.rewritePathInfo" default="false"/></Set>
<Set name="originalPathAttribute"><Property name="jetty.rewrite.originalPathAttribute" deprecated="rewrite.originalPathAttribute" default="requestedPath"/></Set>
</New>
+
+ <!-- Set DispatcherTypes -->
+ <Set name="dispatcherTypes">
+ <Array type="javax.servlet.DispatcherType">
+ <Item><Call class="javax.servlet.DispatcherType" name="valueOf"><Arg>REQUEST</Arg></Call></Item>
+ <Item><Call class="javax.servlet.DispatcherType" name="valueOf"><Arg>ASYNC</Arg></Call></Item>
+ </Array>
+ </Set>
</Set>
+
+
<!-- example rule -->
<!--
<Call name="addRule">
diff --git a/jetty-rewrite/src/main/java/org/eclipse/jetty/rewrite/handler/RewriteHandler.java b/jetty-rewrite/src/main/java/org/eclipse/jetty/rewrite/handler/RewriteHandler.java
index 3eab973187..20c1a87b57 100644
--- a/jetty-rewrite/src/main/java/org/eclipse/jetty/rewrite/handler/RewriteHandler.java
+++ b/jetty-rewrite/src/main/java/org/eclipse/jetty/rewrite/handler/RewriteHandler.java
@@ -173,7 +173,7 @@ import org.eclipse.jetty.server.handler.HandlerWrapper;
public class RewriteHandler extends HandlerWrapper
{
private RuleContainer _rules;
- private EnumSet<DispatcherType> _dispatchTypes = EnumSet.of(DispatcherType.REQUEST);
+ private EnumSet<DispatcherType> _dispatchTypes = EnumSet.of(DispatcherType.REQUEST, DispatcherType.ASYNC);
/* ------------------------------------------------------------ */
public RewriteHandler()

Back to the top