mercredi 25 février 2015

Making Exceptions with Jetty Rewrite

Is it possible to have such rules in Jetty-Rewrite.xml file?





<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.RewriteRegexRule">
<Set name="regex">/destination-app/(.*)</Set>
<Set name="replacement">/verification-app/</Set>
<Set name="terminating">false</Set>
</New>
</Arg>
</Call>
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.RewriteRegexRule">
<Set name="regex">/dummy-path/</Set>
<Set name="replacement">/destination-app/login.jsp</Set>
<Set name="terminating">false</Set>
</New>
</Arg>
</Call>



As you may notice, every call to destination-app is redirected. But then I need a redirection from "dummy-path" to the login page of "destination-app".


It seems like Jetty's process blocks the call.





Aucun commentaire:

Enregistrer un commentaire