cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r609768 - in /cocoon/trunk/blocks/cocoon-portal: cocoon-portal-api/src/main/java/org/apache/cocoon/portal/ cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/ cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/profile/ c...
Date Mon, 07 Jan 2008 20:13:57 GMT
Author: cziegeler
Date: Mon Jan  7 12:13:49 2008
New Revision: 609768

URL: http://svn.apache.org/viewvc?rev=609768&view=rev
Log:
Add base path to request context.

Modified:
    cocoon/trunk/blocks/cocoon-portal/cocoon-portal-api/src/main/java/org/apache/cocoon/portal/RequestContext.java
    cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/Event.java
    cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/profile/ProfileStore.java
    cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sitemap/src/main/java/org/apache/cocoon/portal/sitemap/impl/CocoonRequestContextProvider.java

Modified: cocoon/trunk/blocks/cocoon-portal/cocoon-portal-api/src/main/java/org/apache/cocoon/portal/RequestContext.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-portal/cocoon-portal-api/src/main/java/org/apache/cocoon/portal/RequestContext.java?rev=609768&r1=609767&r2=609768&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-portal/cocoon-portal-api/src/main/java/org/apache/cocoon/portal/RequestContext.java
(original)
+++ cocoon/trunk/blocks/cocoon-portal/cocoon-portal-api/src/main/java/org/apache/cocoon/portal/RequestContext.java
Mon Jan  7 12:13:49 2008
@@ -28,16 +28,18 @@
  */
 public interface RequestContext {
 
-     HttpServletRequest getRequest();
+    String getBasePath();
 
-     HttpServletResponse getResponse();
+    HttpServletRequest getRequest();
 
-     /**
-      * Is the request an Ajax request?
-      *
-      * @return true if this is an Ajax request
-      */
-     boolean isAjaxRequest();
+    HttpServletResponse getResponse();
 
-     ServletContext getServletContext();
+    /**
+     * Is the request an Ajax request?
+     *
+     * @return true if this is an Ajax request
+     */
+    boolean isAjaxRequest();
+
+    ServletContext getServletContext();
 }

Modified: cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/Event.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/Event.java?rev=609768&r1=609767&r2=609768&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/Event.java
(original)
+++ cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/Event.java
Mon Jan  7 12:13:49 2008
@@ -17,7 +17,7 @@
 package org.apache.cocoon.portal.event;
 
 /**
- * Marker interface for an portal event
+ * Marker interface for a portal event.
  *
  * @version $Id$
  */

Modified: cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/profile/ProfileStore.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/profile/ProfileStore.java?rev=609768&r1=609767&r2=609768&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/profile/ProfileStore.java
(original)
+++ cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/profile/ProfileStore.java
Mon Jan  7 12:13:49 2008
@@ -19,7 +19,7 @@
 import org.apache.excalibur.source.SourceValidity;
 
 /**
- * This component is used storing and retrieving (parts of) the portal profile.
+ * This component is used for storing and retrieving (parts of) the portal profile.
  *
  * The load/save method is able to load/save the various parts of the profile.
  * The correct profile type is specified by a {@link PersistenceType}. The persistence

Modified: cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sitemap/src/main/java/org/apache/cocoon/portal/sitemap/impl/CocoonRequestContextProvider.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sitemap/src/main/java/org/apache/cocoon/portal/sitemap/impl/CocoonRequestContextProvider.java?rev=609768&r1=609767&r2=609768&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sitemap/src/main/java/org/apache/cocoon/portal/sitemap/impl/CocoonRequestContextProvider.java
(original)
+++ cocoon/trunk/blocks/cocoon-portal/cocoon-portal-sitemap/src/main/java/org/apache/cocoon/portal/sitemap/impl/CocoonRequestContextProvider.java
Mon Jan  7 12:13:49 2008
@@ -21,6 +21,7 @@
 import javax.servlet.http.HttpServletResponse;
 
 import org.apache.cocoon.ajax.AjaxHelper;
+import org.apache.cocoon.environment.ObjectModelHelper;
 import org.apache.cocoon.portal.RequestContext;
 import org.apache.cocoon.portal.spi.RequestContextProvider;
 import org.apache.cocoon.processing.ProcessInfoProvider;
@@ -53,6 +54,13 @@
 
         public RequestContextImpl(ProcessInfoProvider prov) {
             this.provider = prov;
+        }
+
+        /**
+         * @see org.apache.cocoon.portal.RequestContext#getBasePath()
+         */
+        public String getBasePath() {
+            return ObjectModelHelper.getRequest(provider.getObjectModel()).getSitemapURIPrefix();
         }
 
         /**



Mime
View raw message