cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r122952 - in cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal: coplet/adapter/impl transformation
Date Tue, 21 Dec 2004 09:54:04 GMT
Author: cziegeler
Date: Tue Dec 21 01:54:02 2004
New Revision: 122952

URL: http://svn.apache.org/viewcvs?view=rev&rev=122952
Log:
Use temporary attributes
Modified:
   cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/ApplicationCopletAdapter.java
   cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/HTMLEventLinkTransformer.java
   cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/ProxyTransformer.java

Modified: cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/ApplicationCopletAdapter.java
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/ApplicationCopletAdapter.java?view=diff&rev=122952&p1=cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/ApplicationCopletAdapter.java&r1=122951&p2=cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/ApplicationCopletAdapter.java&r2=122952
==============================================================================
--- cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/ApplicationCopletAdapter.java
(original)
+++ cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/ApplicationCopletAdapter.java
Tue Dec 21 01:54:02 2004
@@ -47,11 +47,10 @@
         final CopletInstanceData coplet,
         final String uri,
         final ContentHandler contentHandler)
-        throws SAXException {
+    throws SAXException {
         try {
             super.streamContent(coplet, uri, contentHandler);
-        }
-        catch (SAXException se) {
+        } catch (SAXException se) {
             getLogger().error(
                 "ApplicationCopletAdapter: Exception while getting coplet resource",
                 se);
@@ -77,15 +76,13 @@
             if ("createNewCopletInstance".equals(link)) {
                 try {
                     createNewInstance(coplet);
-                }
-                catch (ProcessingException ex) {
+                } catch (ProcessingException ex) {
                     getLogger().error("Could not create new coplet instance", ex);
                 }
-            }
-            else {
+            } else {
                 // this is a normal link event, so save the url in the instance data
                 // for ProxyTransformer
-                coplet.setAttribute(ProxyTransformer.LINK, event.getLink());
+                coplet.setTemporaryAttribute(ProxyTransformer.LINK, event.getLink());
             }
         }
     }
@@ -97,7 +94,7 @@
      * @trows	ProcessingException if something fails in the creation process
      */
     private void createNewInstance(CopletInstanceData coplet)
-        throws ProcessingException {
+    throws ProcessingException {
         ProfileManager profileManager = null;
         try {
             profileManager =
@@ -132,11 +129,9 @@
             throw new ProcessingException(
                 "Unable to lookup profile manager.",
                 ce);
-        }
-        catch (Exception e) {
+        } catch (Exception e) {
             throw new ProcessingException(e);
-        }
-        finally {
+        } finally {
             this.manager.release(profileManager);
         }
     }
@@ -165,7 +160,7 @@
     protected boolean renderErrorContent(
         CopletInstanceData coplet,
         ContentHandler handler)
-        throws SAXException {
+    throws SAXException {
         handler.startDocument();
         XMLUtils.startElement(handler, "p");
         XMLUtils.data(

Modified: cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/HTMLEventLinkTransformer.java
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/HTMLEventLinkTransformer.java?view=diff&rev=122952&p1=cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/HTMLEventLinkTransformer.java&r1=122951&p2=cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/HTMLEventLinkTransformer.java&r2=122952
==============================================================================
--- cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/HTMLEventLinkTransformer.java
(original)
+++ cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/HTMLEventLinkTransformer.java
Tue Dec 21 01:54:02 2004
@@ -28,8 +28,7 @@
 import org.xml.sax.SAXException;
 
 /**
- * This transformer extends transforms html actions
- * into events.
+ * This transformer transforms html actions into events.
  * The transformer listens for the element a and form. Links
  * that only contain an anchor are ignored.
  * In addition if a link has the attribute "external" with the value
@@ -38,7 +37,7 @@
  * TODO: Support target attribute
  * 
  * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
- * @version CVS $Id: HTMLEventLinkTransformer.java,v 1.13 2004/06/07 08:50:37 cziegeler Exp
$
+ * @version CVS $Id$
  */
 public class HTMLEventLinkTransformer
 extends AbstractCopletTransformer {

Modified: cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/ProxyTransformer.java
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/ProxyTransformer.java?view=diff&rev=122952&p1=cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/ProxyTransformer.java&r1=122951&p2=cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/ProxyTransformer.java&r2=122952
==============================================================================
--- cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/ProxyTransformer.java
(original)
+++ cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/ProxyTransformer.java
Tue Dec 21 01:54:02 2004
@@ -176,7 +176,7 @@
         
         final String startURI = (String)copletData.getAttribute(START_URI);
 
-        this.link = (String) this.copletInstanceData.getAttribute(LINK);
+        this.link = (String) this.copletInstanceData.getTemporaryAttribute(LINK);
 
         this.documentBase = (String) this.copletInstanceData.getAttribute(DOCUMENT_BASE);
 

Mime
View raw message