From: <fg...@us...> - 2007-01-04 15:45:46
|
Revision: 145 http://svn.sourceforge.net/openutils/?rev=145&view=rev Author: fgiust Date: 2007-01-04 07:45:45 -0800 (Thu, 04 Jan 2007) Log Message: ----------- new utility filter Modified Paths: -------------- trunk/openutils-spring/pom.xml trunk/openutils-tags-spring/pom.xml trunk/openutils-testing/src/main/java/it/openutils/testing/junit/DbUnitTestCase.java trunk/pom.xml Added Paths: ----------- trunk/openutils-web/src/main/java/it/ trunk/openutils-web/src/main/java/it/openutils/ trunk/openutils-web/src/main/java/it/openutils/web/ trunk/openutils-web/src/main/java/it/openutils/web/filters/ trunk/openutils-web/src/main/java/it/openutils/web/filters/NoCachingFilter.java Property Changed: ---------------- trunk/openutils-backup/ trunk/openutils-bshd5/ trunk/openutils-dbmigration/ trunk/openutils-deployment/ trunk/openutils-log4j/ trunk/openutils-spring/ trunk/openutils-tags-spring/ trunk/openutils-testing/ trunk/openutils-usermanagement/ trunk/openutils-usermanagement-dataobjects/ trunk/openutils-web/ Property changes on: trunk/openutils-backup ___________________________________________________________________ Name: svn:ignore + .checkstyle target Property changes on: trunk/openutils-bshd5 ___________________________________________________________________ Name: svn:ignore - .wtpmodules target .classpath .project .settings + .wtpmodules target .classpath .project .settings .checkstyle Property changes on: trunk/openutils-dbmigration ___________________________________________________________________ Name: svn:ignore - target + target .checkstyle Property changes on: trunk/openutils-deployment ___________________________________________________________________ Name: svn:ignore - .wtpmodules target .classpath .project .settings + .wtpmodules target .classpath .project .settings .checkstyle Property changes on: trunk/openutils-log4j ___________________________________________________________________ Name: svn:ignore - .wtpmodules .project .classpath target .settings + .wtpmodules .project .classpath target .settings .checkstyle Property changes on: trunk/openutils-spring ___________________________________________________________________ Name: svn:ignore - .wtpmodules .settings target .classpath .project + .wtpmodules .settings target .classpath .project .checkstyle Modified: trunk/openutils-spring/pom.xml =================================================================== --- trunk/openutils-spring/pom.xml 2007-01-04 14:15:02 UTC (rev 144) +++ trunk/openutils-spring/pom.xml 2007-01-04 15:45:45 UTC (rev 145) @@ -1,4 +1,5 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sourceforge.openutils</groupId> @@ -59,6 +60,12 @@ <version>1.0.1</version> </dependency> <dependency> + <groupId>org.hibernate</groupId> + <artifactId>hibernate-annotations</artifactId> + <version>3.2.1.ga</version> + <optional>true</optional> + </dependency> + <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> Property changes on: trunk/openutils-tags-spring ___________________________________________________________________ Name: svn:ignore - target + target .checkstyle Modified: trunk/openutils-tags-spring/pom.xml =================================================================== --- trunk/openutils-tags-spring/pom.xml 2007-01-04 14:15:02 UTC (rev 144) +++ trunk/openutils-tags-spring/pom.xml 2007-01-04 15:45:45 UTC (rev 145) @@ -1,4 +1,5 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>net.sourceforge.openutils</groupId> @@ -10,4 +11,12 @@ <name>openutils tags for spring MVC</name> <version>1.0-SNAPSHOT</version> <description /> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> </project> \ No newline at end of file Property changes on: trunk/openutils-testing ___________________________________________________________________ Name: svn:ignore - .classpath .project .settings target + .classpath .project .settings target .checkstyle Modified: trunk/openutils-testing/src/main/java/it/openutils/testing/junit/DbUnitTestCase.java =================================================================== --- trunk/openutils-testing/src/main/java/it/openutils/testing/junit/DbUnitTestCase.java 2007-01-04 14:15:02 UTC (rev 144) +++ trunk/openutils-testing/src/main/java/it/openutils/testing/junit/DbUnitTestCase.java 2007-01-04 15:45:45 UTC (rev 145) @@ -187,6 +187,7 @@ * Returns the full test name. * @see junit.framework.TestCase#getName() */ + @Override public String getName() { return ClassUtils.getShortClassName(this.getClass()) + "::" + super.getName(); Property changes on: trunk/openutils-usermanagement ___________________________________________________________________ Name: svn:ignore - target .classpath .project .settings db *.log + target .classpath .project .settings db *.log .checkstyle Property changes on: trunk/openutils-usermanagement-dataobjects ___________________________________________________________________ Name: svn:ignore - .classpath .project .settings target + .classpath .project .settings target .checkstyle Property changes on: trunk/openutils-web ___________________________________________________________________ Name: svn:ignore - target + target .checkstyle Added: trunk/openutils-web/src/main/java/it/openutils/web/filters/NoCachingFilter.java =================================================================== --- trunk/openutils-web/src/main/java/it/openutils/web/filters/NoCachingFilter.java (rev 0) +++ trunk/openutils-web/src/main/java/it/openutils/web/filters/NoCachingFilter.java 2007-01-04 15:45:45 UTC (rev 145) @@ -0,0 +1,51 @@ +package it.openutils.web.filters; + +import java.io.IOException; + +import javax.servlet.Filter; +import javax.servlet.FilterChain; +import javax.servlet.FilterConfig; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletResponse; + + +/** + * Simple webapp filter that disables caching by setting the appropriate headers on the response. + * @author fgiust + * @version $Id$ + */ +public class NoCachingFilter implements Filter +{ + + /** + * {@inheritDoc} + */ + public void init(FilterConfig filterConfig) + { + // unused + } + + /** + * {@inheritDoc} + */ + public void destroy() + { + // unused + } + + /** + * {@inheritDoc} + */ + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, + ServletException + { + HttpServletResponse httpResponse = (HttpServletResponse) response; + + httpResponse.setHeader("Cache-Control", "no-cache"); + httpResponse.setDateHeader("Expires", 0); + httpResponse.setHeader("Pragma", "No-cache"); + chain.doFilter(request, response); + } +} \ No newline at end of file Property changes on: trunk/openutils-web/src/main/java/it/openutils/web/filters/NoCachingFilter.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:keywords + Author Date Id Revision Name: svn:eol-style + native Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2007-01-04 14:15:02 UTC (rev 144) +++ trunk/pom.xml 2007-01-04 15:45:45 UTC (rev 145) @@ -15,9 +15,7 @@ </issueManagement> <scm> <connection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/trunk</connection> - <developerConnection> - scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/trunk - </developerConnection> + <developerConnection>scm:svn:https://openutils.svn.sourceforge.net/svnroot/openutils/trunk</developerConnection> <url>http://openutils.svn.sourceforge.net/viewcvs.cgi/openutils/trunk</url> </scm> <organization> @@ -82,6 +80,32 @@ </execution> </executions> </plugin> + <plugin> + <artifactId>maven-eclipse-plugin</artifactId> + <version>2.3</version> + <configuration> + <wtpversion>1.5</wtpversion> + <additionalBuildcommands> + <additionalBuildcommand>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</additionalBuildcommand> + </additionalBuildcommands> + <additionalProjectnatures> + <additionalProjectnature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</additionalProjectnature> + </additionalProjectnatures> + <additionalConfig> + <file> + <name>.checkstyle</name> + <content> + <![CDATA[<fileset-config file-format-version="1.2.0" simple-config="true"> + <fileset name="all" enabled="true" check-config-name="project" local="false"> + <file-match-pattern match-pattern="." include-pattern="true" /> + </fileset> + <filter name="NonSrcDirs" enabled="true" /> +</fileset-config>]]> + </content> + </file> + </additionalConfig> + </configuration> + </plugin> </plugins> </build> <reporting> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |