craigmcc 00/10/21 06:33:13
Modified: catalina/src/share/org/apache/catalina/core
StandardContext.java
Log:
Add getDisplayName and setDisplayName.
Revision Changes Path
1.22 +34 -4
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java
Index: StandardContext.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- StandardContext.java 2000/10/14 21:43:54 1.21
+++ StandardContext.java 2000/10/21 13:33:12 1.22
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
1.21 2000/10/14 21:43:54 craigmcc Exp $
- * $Revision: 1.21 $
- * $Date: 2000/10/14 21:43:54 $
+ * $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
1.22 2000/10/21 13:33:12 craigmcc Exp $
+ * $Revision: 1.22 $
+ * $Date: 2000/10/21 13:33:12 $
*
* ====================================================================
*
@@ -113,7 +113,7 @@
* requests directed to a particular servlet.
*
* @author Craig R. McClanahan
- * @version $Revision: 1.21 $ $Date: 2000/10/14 21:43:54 $
+ * @version $Revision: 1.22 $ $Date: 2000/10/21 13:33:12 $
*/
public final class StandardContext
@@ -204,6 +204,12 @@
/**
+ * The display name of this web application.
+ */
+ private String displayName = null;
+
+
+ /**
* The distributable flag for this web application.
*/
private boolean distributable = false;
@@ -521,6 +527,30 @@
new Boolean(oldCrossContext),
new Boolean(this.crossContext));
+ }
+
+
+ /**
+ * Return the display name of this web application.
+ */
+ public String getDisplayName() {
+
+ return (this.displayName);
+
+ }
+
+
+ /**
+ * Set the display name of this web application.
+ *
+ * @param displayName The new display name
+ */
+ public void setDisplayName(String displayName) {
+
+ String oldDisplayName = this.displayName;
+ this.displayName = displayName;
+ support.firePropertyChange("displayName", oldDisplayName,
+ this.displayName);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]