Author: markt
Date: Mon Jan 12 06:20:54 2009
New Revision: 733771
URL: http://svn.apache.org/viewvc?rev=733771&view=rev
Log:
Deprecate wrapper methods that wrap deprecated methods.
The assumption is that the EG will accept the patch to do this too. If not, it
should be reverted.
Modified:
tomcat/trunk/java/javax/servlet/ServletRequestWrapper.java
tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java
tomcat/trunk/java/javax/servlet/http/HttpServletResponseWrapper.java
Modified: tomcat/trunk/java/javax/servlet/ServletRequestWrapper.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/ServletRequestWrapper.java?rev=733771&r1=733770&r2=733771&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/ServletRequestWrapper.java (original)
+++ tomcat/trunk/java/javax/servlet/ServletRequestWrapper.java Mon Jan 12
06:20:54 2009
@@ -349,6 +349,7 @@
/**
* The default behavior of this method is to return getRealPath(String
path)
* on the wrapped request object.
+ * @deprecated As of Version 3.0 of the Java Servlet API
*/
public String getRealPath(String path) {
Modified: tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java?rev=733771&r1=733770&r2=733771&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java
(original)
+++ tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java Mon Jan
12 06:20:54 2009
@@ -253,6 +253,7 @@
/**
* The default behavior of this method is to return
isRequestedSessionIdFromUrl()
* on the wrapped request object.
+ * @deprecated As of Version 3.0 of the Java Servlet API
*/
public boolean isRequestedSessionIdFromUrl() {
return this._getHttpServletRequest().isRequestedSessionIdFromUrl();
Modified: tomcat/trunk/java/javax/servlet/http/HttpServletResponseWrapper.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/http/HttpServletResponseWrapper.java?rev=733771&r1=733770&r2=733771&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/http/HttpServletResponseWrapper.java
(original)
+++ tomcat/trunk/java/javax/servlet/http/HttpServletResponseWrapper.java Mon
Jan 12 06:20:54 2009
@@ -87,6 +87,7 @@
/**
* The default behavior of this method is to call encodeUrl(String url)
* on the wrapped response object.
+ * @deprecated As of Version 3.0 of the Java Servlet API
*/
public String encodeUrl(String url) {
return this._getHttpServletResponse().encodeUrl(url);
@@ -95,6 +96,7 @@
/**
* The default behavior of this method is to return
encodeRedirectUrl(String url)
* on the wrapped response object.
+ * @deprecated As of Version 3.0 of the Java Servlet API
*/
public String encodeRedirectUrl(String url) {
return this._getHttpServletResponse().encodeRedirectUrl(url);
@@ -187,6 +189,7 @@
/**
* The default behavior of this method is to call setStatus(int sc, String
sm)
* on the wrapped response object.
+ * @deprecated As of Version 3.0 of the Java Servlet API
*/
public void setStatus(int sc, String sm) {
this._getHttpServletResponse().setStatus(sc, sm);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]