You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2003/07/11 19:03:28 UTC
cvs commit: cocoon-2.1/src/blocks/jsp/mocks/weblogic/servlet/internal ServletContextImpl.java ServletResponseImpl.java ServletOutputStreamImpl.java
joerg 2003/07/11 10:03:27
Modified: src/blocks/jsp/mocks/weblogic/servlet/internal
ServletContextImpl.java ServletResponseImpl.java
ServletOutputStreamImpl.java
Log:
added deprecation warnings (push through from ServletContext) to avoid possible usage in JSPEngineImplWLS class
Revision Changes Path
1.2 +10 -2 cocoon-2.1/src/blocks/jsp/mocks/weblogic/servlet/internal/ServletContextImpl.java
Index: ServletContextImpl.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/jsp/mocks/weblogic/servlet/internal/ServletContextImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServletContextImpl.java 9 Mar 2003 00:04:16 -0000 1.1
+++ ServletContextImpl.java 11 Jul 2003 17:03:27 -0000 1.2
@@ -63,7 +63,7 @@
* This is a mock object of the class, not the actual class.
* It's used to compile the code in absence of the actual class.
*
- * This clsss is created by hand, not automatically.
+ * This class is created by hand, not automatically.
*
* **********************************************************************
*
@@ -72,6 +72,8 @@
public class ServletContextImpl implements ServletContext{
+ /** @deprecated The method ServletContextImpl.getServlets() overrides a
+ * deprecated method from ServletContext */
public Enumeration getServlets(){
return null;
}
@@ -120,14 +122,20 @@
return "";
}
+ /** @deprecated The method ServletContextImpl.getServletNames() overrides
+ * a deprecated method from ServletContext */
public Enumeration getServletNames(){
return null;
}
+ /** @deprecated The method ServletContextImpl.getServlet(String) overrides
+ * a deprecated method from ServletContext */
public Servlet getServlet(String string){
return null;
}
+ /** @deprecated The method ServletContextImpl.log(Exception, String)
+ * overrides a deprecated method from ServletContext */
public void log(Exception exception, String string){
}
1.2 +8 -2 cocoon-2.1/src/blocks/jsp/mocks/weblogic/servlet/internal/ServletResponseImpl.java
Index: ServletResponseImpl.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/jsp/mocks/weblogic/servlet/internal/ServletResponseImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServletResponseImpl.java 9 Mar 2003 00:04:16 -0000 1.1
+++ ServletResponseImpl.java 11 Jul 2003 17:03:27 -0000 1.2
@@ -62,7 +62,7 @@
* This is a mock object of the class, not the actual class.
* It's used to compile the code in absence of the actual class.
*
- * This clsss is created by hand, not automatically.
+ * This class is created by hand, not automatically.
*
* **********************************************************************
*
@@ -98,6 +98,8 @@
return false;
}
+ /** @deprecated The method ServletResponseImpl.encodeRedirectUrl(String)
+ * overrides a deprecated method from HttpServletResponse */
public String encodeRedirectUrl(String arg1) {
return null;
}
@@ -106,6 +108,8 @@
return null;
}
+ /** @deprecated The method ServletResponseImpl.encodeUrl(String) overrides
+ * a deprecated method from HttpServletResponse */
public String encodeUrl(String arg1) {
return null;
}
@@ -207,6 +211,8 @@
public void setStatus(int status) {
}
+ /** @deprecated The method ServletResponseImpl.setStatus(int, String)
+ * overrides a deprecated method from HttpServletResponse */
public void setStatus(int arg1, String arg2) {
}
1.2 +2 -2 cocoon-2.1/src/blocks/jsp/mocks/weblogic/servlet/internal/ServletOutputStreamImpl.java
Index: ServletOutputStreamImpl.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/jsp/mocks/weblogic/servlet/internal/ServletOutputStreamImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServletOutputStreamImpl.java 9 Mar 2003 00:04:16 -0000 1.1
+++ ServletOutputStreamImpl.java 11 Jul 2003 17:03:27 -0000 1.2
@@ -62,7 +62,7 @@
* This is a mock object of the class, not the actual class.
* It's used to compile the code in absence of the actual class.
*
- * This clsss is created by hand, not automatically.
+ * This class is created by hand, not automatically.
*
* **********************************************************************
*