You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by cr...@locus.apache.org on 2000/02/13 00:08:55 UTC
cvs commit: jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/core StandardContext.java
craigmcc 00/02/12 15:08:54
Modified: proposals/catalina/src/share/org/apache/tomcat Context.java
proposals/catalina/src/share/org/apache/tomcat/core
StandardContext.java
Log:
Add a createWrapper() factory method to Context. This will be used by
the startup shell that processes the web.xml file (one call per
<servlet> definition), as well as by the invoker servlet, if enabled.
Revision Changes Path
1.3 +13 -4 jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/Context.java
Index: Context.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/Context.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Context.java 2000/02/08 03:34:44 1.2
+++ Context.java 2000/02/12 23:08:54 1.3
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/Context.java,v 1.2 2000/02/08 03:34:44 craigmcc Exp $
- * $Revision: 1.2 $
- * $Date: 2000/02/08 03:34:44 $
+ * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/Context.java,v 1.3 2000/02/12 23:08:54 craigmcc Exp $
+ * $Revision: 1.3 $
+ * $Date: 2000/02/12 23:08:54 $
*
* ====================================================================
*
@@ -88,7 +88,7 @@
* deployment descriptor!</b>
*
* @author Craig R. McClanahan
- * @version $Revision: 1.2 $ $Date: 2000/02/08 03:34:44 $
+ * @version $Revision: 1.3 $ $Date: 2000/02/12 23:08:54 $
*/
public interface Context extends Container {
@@ -259,6 +259,15 @@
* @param name New welcome file name
*/
public void addWelcomeFile(String name);
+
+
+ /**
+ * Factory method to create and return a new Wrapper instance, of
+ * the Java implementation class appropriate for this Context
+ * implementation. The constructor of the instantiated Wrapper
+ * will have been called, but no properties will have been set.
+ */
+ public Wrapper createWrapper();
/**
1.5 +17 -4 jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/core/StandardContext.java
Index: StandardContext.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/core/StandardContext.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- StandardContext.java 2000/02/08 05:43:36 1.4
+++ StandardContext.java 2000/02/12 23:08:54 1.5
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/core/StandardContext.java,v 1.4 2000/02/08 05:43:36 craigmcc Exp $
- * $Revision: 1.4 $
- * $Date: 2000/02/08 05:43:36 $
+ * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/core/StandardContext.java,v 1.5 2000/02/12 23:08:54 craigmcc Exp $
+ * $Revision: 1.5 $
+ * $Date: 2000/02/12 23:08:54 $
*
* ====================================================================
*
@@ -89,7 +89,7 @@
* requests directed to a particular servlet.
*
* @author Craig R. McClanahan
- * @version $Revision: 1.4 $ $Date: 2000/02/08 05:43:36 $
+ * @version $Revision: 1.5 $ $Date: 2000/02/12 23:08:54 $
*/
public final class StandardContext
@@ -503,6 +503,19 @@
welcomeFiles.put(name, name);
fireContainerEvent("addWelcomeFile", name);
+
+ }
+
+
+ /**
+ * Factory method to create and return a new Wrapper instance, of
+ * the Java implementation class appropriate for this Context
+ * implementation. The constructor of the instantiated Wrapper
+ * will have been called, but no properties will have been set.
+ */
+ public Wrapper createWrapper() {
+
+ return (new StandardWrapper());
}