portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r344070 - /portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/ajax/AJAXValve.java
Date Mon, 14 Nov 2005 07:38:05 GMT
Author: taylor
Date: Sun Nov 13 23:38:04 2005
New Revision: 344070

URL: http://svn.apache.org/viewcvs?rev=344070&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-387

Layout pipeline (AJAX), Portlet Placement Manager
base code checked in
still need to integrate into pipeline

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/ajax/AJAXValve.java

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/ajax/AJAXValve.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/ajax/AJAXValve.java?rev=344070&r1=344069&r2=344070&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/ajax/AJAXValve.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/ajax/AJAXValve.java
Sun Nov 13 23:38:04 2005
@@ -15,6 +15,8 @@
  */
 package org.apache.jetspeed.ajax;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.jetspeed.pipeline.PipelineException;
 import org.apache.jetspeed.pipeline.valve.AbstractValve;
 import org.apache.jetspeed.pipeline.valve.ValveContext;
@@ -28,16 +30,34 @@
  */
 public class AJAXValve extends AbstractValve
 {
-
+    private static final Log log = LogFactory.getLog( AJAXValve.class );
+    private AjaxRequestService ajaxService;
+    
     public AJAXValve(AJAXService service)
     {
         super();
     }
+        
+    public void invoke( RequestContext request, ValveContext context )
+        throws PipelineException
+    {
+        try
+        {
+            ajaxService.process(request);
+        }
+        catch (Exception e)
+        {
+            throw new PipelineException(e.toString(), e);
+        }
+        // Pass control to the next Valve in the Pipeline
+        context.invokeNext( request );
+    }
 
-    public void invoke(RequestContext request, ValveContext context)
-            throws PipelineException
+    public String toString()
     {
-        System.out.println("invoking ajax valve ");
+        return "AJAXValve";
     }
 
+    
+    
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message