filter order [message #696857] |
Thu, 14 July 2011 20:55  |
Eclipse User |
|
|
|
I was wondering if there was a way for the code to move to the next filter that matches the URLPattern if the snap name is not found. If not is there a way to say check this filter and if the URL Pattern doesn't match then move to this filter.
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app
version="2.5">
<filter>
<filter-name>host-filter</filter-name>
<filter-class>org.eclipse.virgo.snaps.core.SnapHostFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>host-filter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextClass</param-name>
<param-value>org.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext</param-value>
</context-param>
<!-- Handles all requests into the slice -->
<servlet>
<servlet-name>standard</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>2</load-on-startup>
<init-param>
<param-name>contextClass</param-name>
<param-value>org.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>standard</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
<filter>
<filter-name>httpMethodFilter</filter-name>
<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>httpMethodFilter</filter-name>
<servlet-name>standard</servlet-name>
</filter-mapping>
</web-app>
I want it to check the MethodFilter first. I don't mind if I put all methods in a /services subdir and then if the URL doesn't match /services then it checks the ssnaps.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04109 seconds