You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gk...@apache.org on 2008/08/13 15:27:37 UTC

svn commit: r685540 - in /cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment: http/HttpSession.java impl/AbstractSession.java

Author: gkossakowski
Date: Wed Aug 13 06:27:36 2008
New Revision: 685540

URL: http://svn.apache.org/viewvc?rev=685540&view=rev
Log:
AbstractSession must implement org.apache.cocoon.environment.Session not javax.servlet.http.HttpSession interface in order to get getCocoonSession() method working properly.
Added some more deprecation statements.

Modified:
    cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/http/HttpSession.java
    cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/impl/AbstractSession.java

Modified: cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/http/HttpSession.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/http/HttpSession.java?rev=685540&r1=685539&r2=685540&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/http/HttpSession.java (original)
+++ cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/http/HttpSession.java Wed Aug 13 06:27:36 2008
@@ -18,6 +18,7 @@
 
 import java.util.Enumeration;
 
+import org.apache.cocoon.environment.Session;
 import org.apache.cocoon.environment.impl.AbstractSession;
 
 /**
@@ -45,7 +46,8 @@
  * will not be directly visible in another.
  *
  * @version $Id$
- *
+ * @deprecated This class extends deprecated class and will be removed in the future.
+ *             See {@link Session} interface for details.
  */
 public final class HttpSession
 extends AbstractSession {

Modified: cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/impl/AbstractSession.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/impl/AbstractSession.java?rev=685540&r1=685539&r2=685540&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/impl/AbstractSession.java (original)
+++ cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/environment/impl/AbstractSession.java Wed Aug 13 06:27:36 2008
@@ -19,16 +19,19 @@
 import java.util.Map;
 
 import javax.servlet.ServletContext;
-import javax.servlet.http.HttpSession;
 import javax.servlet.http.HttpSessionContext;
 
+import org.apache.cocoon.environment.Session;
+
 /**
  * Base class for any session
  *
  * @version $Id$
+ * @deprecated This class implements deprecated interface and will be removed in the future.
+ *             See {@link Session} interface for details. 
  */
 public abstract class AbstractSession 
-    implements HttpSession {
+    implements Session {
 
     public Map getAttributes() {
 	return new SessionMap(this);