[jboss-cvs] jboss-seam/src/main/org/jboss/seam/web ...
Peter Muir
peter at bleepbleep.org.uk
Wed Oct 17 18:28:53 EDT 2007
User: pmuir
Date: 07/10/17 18:28:53
Modified: src/main/org/jboss/seam/web AbstractFilter.java
Log:
Ability to disable filters
Revision Changes Path
1.5 +14 -0 jboss-seam/src/main/org/jboss/seam/web/AbstractFilter.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AbstractFilter.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/web/AbstractFilter.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- AbstractFilter.java 25 Jun 2007 22:56:50 -0000 1.4
+++ AbstractFilter.java 17 Oct 2007 22:28:53 -0000 1.5
@@ -7,6 +7,8 @@
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
+import org.jboss.cache.util.setCache;
+
/**
* Abstract superclass for Seam components that act
* as servlet filters. Note that since a filter is
@@ -27,6 +29,8 @@
private String urlPattern;
+ private boolean disabled;
+
public void init(FilterConfig filterConfig) throws ServletException
{
servletContext = filterConfig.getServletContext();
@@ -47,6 +51,16 @@
this.urlPattern = urlPattern;
}
+ public boolean isDisabled()
+ {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled)
+ {
+ this.disabled = disabled;
+ }
+
/**
* Pattern matching code, adapted from Tomcat. This method checks to see if
* the specified path matches the specified pattern.
More information about the jboss-cvs-commits
mailing list