You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by am...@apache.org on 2002/01/25 21:12:27 UTC
cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves ValveBase.java
amyroh 02/01/25 12:12:27
Modified: catalina/src/share/org/apache/catalina/valves ValveBase.java
Log:
Add "debug" property so it's accessible from its MBeans.
Revision Changes Path
1.4 +32 -4 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/ValveBase.java
Index: ValveBase.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/ValveBase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ValveBase.java 22 Jul 2001 20:25:15 -0000 1.3
+++ ValveBase.java 25 Jan 2002 20:12:27 -0000 1.4
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/ValveBase.java,v 1.3 2001/07/22 20:25:15 pier Exp $
- * $Revision: 1.3 $
- * $Date: 2001/07/22 20:25:15 $
+ * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/ValveBase.java,v 1.4 2002/01/25 20:12:27 amyroh Exp $
+ * $Revision: 1.4 $
+ * $Date: 2002/01/25 20:12:27 $
*
* ====================================================================
*
@@ -84,7 +84,7 @@
* management and lifecycle support.
*
* @author Craig R. McClanahan
- * @version $Revision: 1.3 $ $Date: 2001/07/22 20:25:15 $
+ * @version $Revision: 1.4 $ $Date: 2002/01/25 20:12:27 $
*/
public abstract class ValveBase
@@ -101,6 +101,12 @@
/**
+ * The debugging detail level for this component.
+ */
+ protected int debug = 0;
+
+
+ /**
* Descriptive information about this Valve implementation. This value
* should be overridden by subclasses.
*/
@@ -136,6 +142,28 @@
public void setContainer(Container container) {
this.container = container;
+
+ }
+
+
+ /**
+ * Return the debugging detail level for this component.
+ */
+ public int getDebug() {
+
+ return (this.debug);
+
+ }
+
+
+ /**
+ * Set the debugging detail level for this component.
+ *
+ * @param debug The new debugging detail level
+ */
+ public void setDebug(int debug) {
+
+ this.debug = debug;
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>