You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@locus.apache.org on 2000/09/29 03:05:19 UTC

cvs commit: xml-cocoon/src/org/apache/cocoon/sitemap LinkTranslator.java ErrorNotifier.java ResourcePipeline.java

stefano     00/09/28 18:05:19

  Modified:    src/org/apache/cocoon/sitemap Tag: xml-cocoon2
                        ErrorNotifier.java ResourcePipeline.java
  Added:       src/org/apache/cocoon/sitemap Tag: xml-cocoon2
                        LinkTranslator.java
  Log:
  added link translator
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +3 -11     xml-cocoon/src/org/apache/cocoon/sitemap/Attic/ErrorNotifier.java
  
  Index: ErrorNotifier.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/ErrorNotifier.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- ErrorNotifier.java	2000/08/31 16:02:20	1.1.2.1
  +++ ErrorNotifier.java	2000/09/29 01:05:18	1.1.2.2
  @@ -25,7 +25,7 @@
    * @author <a href="mailto:nicolaken@supereva.it">Nicola Ken Barozzi</a> Aisa
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
    * @created 31 July 2000
  - * @version CVS $Revision: 1.1.2.1 $ $Date: 2000/08/31 16:02:20 $
  + * @version CVS $Revision: 1.1.2.2 $ $Date: 2000/09/29 01:05:18 $
    */
    
   public class ErrorNotifier extends ComposerGenerator {
  @@ -35,20 +35,14 @@
        */
       private Notification notification = null;
   
  -    //nicola_ken:should it be deprecated?
  -    
  -    // (SM) deprecated what?
  -
       /**
        * Set the Exception to report.
        *
        * @param exception The Exception to report
        */
       public void setException(Throwable throwable) {
  -
           notification = new Notification(this, throwable);
  -
  -        notification.setTitle("Error in the Cocoon 2 pipeline >X==<");
  +        notification.setTitle("Error creating the resource");
       }
   
       /**
  @@ -57,10 +51,8 @@
        * @param exception The Exception to report
        */
       public void setNotification(Object o) {
  -
           notification = new Notification(this, o);
  -
  -        notification.setTitle("Error in the Cocoon 2 pipeline )X==(");
  +        notification.setTitle("Error creating the resource");
       }
   
       /**
  
  
  
  1.1.2.15  +6 -5      xml-cocoon/src/org/apache/cocoon/sitemap/Attic/ResourcePipeline.java
  
  Index: ResourcePipeline.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/ResourcePipeline.java,v
  retrieving revision 1.1.2.14
  retrieving revision 1.1.2.15
  diff -u -r1.1.2.14 -r1.1.2.15
  --- ResourcePipeline.java	2000/09/10 19:57:45	1.1.2.14
  +++ ResourcePipeline.java	2000/09/29 01:05:19	1.1.2.15
  @@ -32,7 +32,7 @@
   
   /**
    * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
  - * @version CVS $Revision: 1.1.2.14 $ $Date: 2000/09/10 19:57:45 $
  + * @version CVS $Revision: 1.1.2.15 $ $Date: 2000/09/29 01:05:19 $
    */
   public class ResourcePipeline implements Composer {
       private Generator generator = null;
  @@ -117,10 +117,11 @@
   
       public boolean process (Environment environment)
                               throws ProcessingException, IOException, SAXException {
  -        String mime_type=null;
  +        String mime_type = null;
  +
           if (generator == null) {
               if (reader != null) {
  -                reader.setup ((EntityResolver)environment, environment.getObjectModel(), readerSource, readerParam);
  +                reader.setup ((EntityResolver) environment, environment.getObjectModel(), readerSource, readerParam);
                   mime_type = this.reader.getMimeType();
                   if (mime_type != null) {
                       environment.setContentType (mime_type);
  @@ -140,13 +141,13 @@
                   throw new ProcessingException ("Serializer not specified");
               }
   
  -            generator.setup ((EntityResolver)environment, environment.getObjectModel(), generatorSource, generatorParam);
  +            generator.setup ((EntityResolver) environment, environment.getObjectModel(), generatorSource, generatorParam);
               Transformer transformer = null;
               XMLProducer producer = generator;
               int i = transformers.size();
               for (int j=0; j < i; j++) {
                   transformer = (Transformer) transformers.elementAt (j);
  -                transformer.setup ((EntityResolver)environment, environment.getObjectModel(),
  +                transformer.setup ((EntityResolver) environment, environment.getObjectModel(),
                                  (String)transformerSources.elementAt (j),
                                  (Parameters)transformerParams.elementAt (j));
                   producer.setConsumer (transformer);
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.8   +57 -302   xml-cocoon/src/org/apache/cocoon/sitemap/Attic/LinkTranslator.java