You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2003/07/04 13:02:49 UTC
cvs commit: cocoon-2.0/src/java/org/apache/cocoon/webapps/session SessionConstants.java
cziegeler 2003/07/04 04:02:48
Modified: src/java/org/apache/cocoon/webapps/session/context
StandardSessionContextProvider.java
src/java/org/apache/cocoon/webapps/session/components
SessionManager.java
src/documentation/xdocs/developing/webapps session.xml
src/java/org/apache/cocoon/webapps/session
SessionConstants.java
Removed: src/java/org/apache/cocoon/webapps/session/context
ResponseSessionContext.java
Log:
Removing response context
Revision Changes Path
1.2 +1 -5 cocoon-2.0/src/java/org/apache/cocoon/webapps/session/context/StandardSessionContextProvider.java
Index: StandardSessionContextProvider.java
===================================================================
RCS file: /home/cvs/cocoon-2.0/src/java/org/apache/cocoon/webapps/session/context/StandardSessionContextProvider.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- StandardSessionContextProvider.java 9 Mar 2003 00:03:43 -0000 1.1
+++ StandardSessionContextProvider.java 4 Jul 2003 11:02:48 -0000 1.2
@@ -89,10 +89,6 @@
context = new RequestSessionContext();
context.setup(name, null, null);
((RequestSessionContext)context).setup( objectModel, manager );
- } else if ( name.equals(SessionConstants.RESPONSE_CONTEXT) ) {
- context = new ResponseSessionContext();
- context.setup(name, null, null);
- ((ResponseSessionContext)context).setup( objectModel );
}
return context;
}
1.2 +1 -2 cocoon-2.0/src/java/org/apache/cocoon/webapps/session/components/SessionManager.java
Index: SessionManager.java
===================================================================
RCS file: /home/cvs/cocoon-2.0/src/java/org/apache/cocoon/webapps/session/components/SessionManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SessionManager.java 9 Mar 2003 00:03:42 -0000 1.1
+++ SessionManager.java 4 Jul 2003 11:02:48 -0000 1.2
@@ -146,7 +146,6 @@
try {
SessionManager.addSessionContextProvider(provider, SessionConstants.TEMPORARY_CONTEXT);
SessionManager.addSessionContextProvider(provider, SessionConstants.REQUEST_CONTEXT);
- SessionManager.addSessionContextProvider(provider, SessionConstants.RESPONSE_CONTEXT);
} catch (ProcessingException local) {
throw new CascadingRuntimeException("Unable to register provider for standard contexts.", local);
}
1.3 +2 -39 cocoon-2.0/src/documentation/xdocs/developing/webapps/session.xml
Index: session.xml
===================================================================
RCS file: /home/cvs/cocoon-2.0/src/documentation/xdocs/developing/webapps/session.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- session.xml 18 May 2003 11:42:13 -0000 1.2
+++ session.xml 4 Jul 2003 11:02:48 -0000 1.3
@@ -27,7 +27,7 @@
the session transformer.</p>
<p>The chapter "Special Contexts" explains some special
contexts which do not require a session. They are available everytime. These
- special contexts are the request context, the response context and the
+ special contexts are the request context and the
temporary context.</p>
</s1>
<s1 title="Session Tracking">
@@ -195,7 +195,7 @@
<s1 title="Special Contexts">
<p>Cocoon creates and maintains special contexts that allow the
applications to access the environment. This allows the read-only access
- to such things as the current request or the response using the same XPath
+ to such things as the current request using the same XPath
commands previously described. These context do not require any session, they
are always available and change on every request.</p>
<s2 title="The Request Context - Accessing the Environment, Part One">
@@ -291,43 +291,6 @@
<isRequestedSessionIdFromCookie>value</isRequestedSessionIdFromCookie>
<isRequestedSessionIdFromCookie>value</isRequestedSessionIdFromCookie>
<isRequestedSessionIdValid>value</isRequestedSessionIdValid></source>
- </s2>
- <s2 title="The Response Context - Accessing the Environment, Part Two">
- <p>The response context is an XML description of the current
- (HTTP) response. This context is a special write only context that can be
- accessed with the usual commands:</p>
- <p><em><session:setxml context="response"
- path="/header"/></em></p>
- <p>This command will be removed from the XML and the information will
- be added to the response. Headers and cookies can be
- added using the response context .</p>
- <s3 title="Adding headers">
- <p>Headers can be added either by <em>setxml</em> or by
- <em>appendxml</em>. If <em>setxml</em> is used, the header with the name gets
- the given value, regardless if the header had any value beforehand or not. If
- <em>appendxml</em> is used the value will be added.</p>
- <source><session:setxml context="response" path="/header/headername">The value</session:setxml>
-
- or
-
-<session:appendxml context="response" path="/header/headername">The value</session:appendxml></source>
- </s3>
- <s3 title="Adding cookies">
- <p>Cookies can be added either by setxml or by appendxml. There is
- no difference between these commands.</p>
- <source><session:setxml context="response" path="/cookie">
- <!-- Now follows the cookie definition -->
- <name>The cookie name</name>
- <value>The value of the cookie</value>
- <!-- The following are optional -->
- <path>value</path>
- <domain>value</domain>
- <secure>true or false</secure>
- <comment>value</comment>
- <maxAge>value</maxAge>
- <version>value</version>
-</session:setxml></source>
- </s3>
</s2>
<s2 title="The Temporary Context">
<p>The temporary context with the name <em>"temp"</em> is available on
1.3 +1 -4 cocoon-2.0/src/java/org/apache/cocoon/webapps/session/SessionConstants.java
Index: SessionConstants.java
===================================================================
RCS file: /home/cvs/cocoon-2.0/src/java/org/apache/cocoon/webapps/session/SessionConstants.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SessionConstants.java 18 May 2003 11:42:13 -0000 1.2
+++ SessionConstants.java 4 Jul 2003 11:02:48 -0000 1.3
@@ -64,9 +64,6 @@
/** Reserved Context: Request context */
String REQUEST_CONTEXT = "request";
- /** Reserved Context: Response context */
- String RESPONSE_CONTEXT= "response";
-
/** Reserved Context: Temp */
String TEMPORARY_CONTEXT = "temporary";