dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20370
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9263: FRED-API: added two new filters. ShallowEtagHeaderFilter for basic E-tag support, less bandwidth, ...
------------------------------------------------------------
revno: 9263
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-12-11 12:34:15 +0300
message:
FRED-API: added two new filters. ShallowEtagHeaderFilter for basic E-tag support, less bandwidth, same server usage. HiddenHttpMethodFilter adds new query parameter _method, for doing puts/deletes/etc through a form.
modified:
dhis-2/dhis-web/dhis-web-api-fred/src/main/webapp/WEB-INF/web.xml
dhis-2/dhis-web/dhis-web-portal/src/main/webapp/WEB-INF/web.xml
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api-fred/src/main/webapp/WEB-INF/web.xml'
--- dhis-2/dhis-web/dhis-web-api-fred/src/main/webapp/WEB-INF/web.xml 2012-12-06 20:06:23 +0000
+++ dhis-2/dhis-web/dhis-web-api-fred/src/main/webapp/WEB-INF/web.xml 2012-12-11 09:34:15 +0000
@@ -18,6 +18,14 @@
</init-param>
</filter>
<filter>
+ <filter-name>shallowEtagHeaderFilter</filter-name>
+ <filter-class>org.springframework.web.filter.ShallowEtagHeaderFilter</filter-class>
+ </filter>
+ <filter>
+ <filter-name>hiddenHttpMethodFilter</filter-name>
+ <filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
+ </filter>
+ <filter>
<filter-name>OpenSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate4.support.OpenSessionInViewFilter</filter-class>
</filter>
@@ -59,6 +67,14 @@
<url-pattern>/api/*</url-pattern>
</filter-mapping>
<filter-mapping>
+ <filter-name>shallowEtagHeaderFilter</filter-name>
+ <url-pattern>/api-fred/*</url-pattern>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>hiddenHttpMethodFilter</filter-name>
+ <url-pattern>/api-fred/*</url-pattern>
+ </filter-mapping>
+ <filter-mapping>
<filter-name>OpenSessionInViewFilter</filter-name>
<url-pattern>/api-fred/*</url-pattern>
</filter-mapping>
=== modified file 'dhis-2/dhis-web/dhis-web-portal/src/main/webapp/WEB-INF/web.xml'
--- dhis-2/dhis-web/dhis-web-portal/src/main/webapp/WEB-INF/web.xml 2012-12-07 21:28:50 +0000
+++ dhis-2/dhis-web/dhis-web-portal/src/main/webapp/WEB-INF/web.xml 2012-12-11 09:34:15 +0000
@@ -22,6 +22,14 @@
</init-param>
</filter>
<filter>
+ <filter-name>shallowEtagHeaderFilter</filter-name>
+ <filter-class>org.springframework.web.filter.ShallowEtagHeaderFilter</filter-class>
+ </filter>
+ <filter>
+ <filter-name>hiddenHttpMethodFilter</filter-name>
+ <filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
+ </filter>
+ <filter>
<filter-name>OpenSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate4.support.OpenSessionInViewFilter</filter-class>
</filter>
@@ -66,6 +74,14 @@
<url-pattern>/api/*</url-pattern>
</filter-mapping>
<filter-mapping>
+ <filter-name>shallowEtagHeaderFilter</filter-name>
+ <url-pattern>/api-fred/*</url-pattern>
+ </filter-mapping>
+ <filter-mapping>
+ <filter-name>hiddenHttpMethodFilter</filter-name>
+ <url-pattern>/api-fred/*</url-pattern>
+ </filter-mapping>
+ <filter-mapping>
<filter-name>OpenSessionInViewFilter</filter-name>
<url-pattern>/api-fred/*</url-pattern>
</filter-mapping>