[Jetty-support] Filter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Jetty-support] Filter

cudaguy
How do I add a filter to a context definition in a configuration xml  
file?

    <New id="ThisContext"  
class="org.mortbay.jetty.webapp.WebAppContext">
      <Arg><Ref id="contexts"/></Arg>
      <Arg><SystemProperty name="jetty.home" default="."/>/webapps/
this/</Arg>
      <Arg>/</Arg>
        <!-- NEED FILTER HERE THAT SAYS IF A REQUEST FOR "/that", USE  
ThatContext DEFINED BELOW -->
    </New>

    <New id="ThatContext"  
class="org.mortbay.jetty.webapp.WebAppContext">
      <Arg><Ref id="contexts"/></Arg>
      <Arg><SystemProperty name="jetty.home" default="."/>/webapps/
that</Arg>
      <Arg>/</Arg>
    </New>

Or is that not possible?
Thanks

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support