cziegeler    02/02/04 01:40:16

  Modified:    src/java/org/apache/cocoon/components/pipeline
                        CacheableEventPipeline.java
                        CachingEventPipeline.java
                        CachingStreamPipeline.java EventPipeline.java
                        NonCachingEventPipeline.java
                        NonCachingStreamPipeline.java
                        OutputComponentSelector.java StreamPipeline.java
               src/java/org/apache/cocoon/components/profiler Profiler.java
                        ProfilerData.java ProfilerGenerator.java
                        ProfilerResult.java
                        ProfilingCachingEventPipeline.java
                        ProfilingNonCachingEventPipeline.java
                        ProfilingSAXConnector.java SimpleProfiler.java
               src/java/org/apache/cocoon/components/renderer
                        ExtendableRendererFactory.java RendererFactory.java
               src/java/org/apache/cocoon/components/resolver Resolver.java
                        ResolverImpl.java
               src/java/org/apache/cocoon/components/sax
                        XMLByteStreamCompiler.java
                        XMLByteStreamFragment.java
                        XMLByteStreamInterpreter.java XMLDeserializer.java
                        XMLSerializer.java XMLTeePipe.java
               src/java/org/apache/cocoon/components/saxconnector
                        LoggingSAXConnector.java SAXConnector.java
               src/java/org/apache/cocoon/components/search
                        IndexHelperField.java LuceneCocoonHelper.java
                        LuceneCocoonIndexer.java LuceneCocoonPager.java
                        LuceneCocoonSearcher.java
                        LuceneIndexContentHandler.java
                        LuceneXMLIndexer.java
                        SimpleLuceneCocoonIndexerImpl.java
                        SimpleLuceneCocoonSearcherImpl.java
                        SimpleLuceneXMLIndexerImpl.java
               src/java/org/apache/cocoon/components/source
                        AbstractSAXSource.java CocoonSourceFactory.java
                        DelayedRefreshSourceWrapper.java SitemapSource.java
                        SourceFactory.java SourceHandler.java
                        SourceHandlerImpl.java URLSource.java
                        XMLDBSource.java XMLDBSourceFactory.java
  Log:
  Long licence
  
  Revision  Changes    Path
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/CacheableEventPipeline.java
  
  Index: CacheableEventPipeline.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/CacheableEventPipeline.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CacheableEventPipeline.java       3 Jan 2002 12:31:12 -0000       1.1
  +++ CacheableEventPipeline.java       4 Feb 2002 09:40:14 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.pipeline;
   
   import org.apache.cocoon.caching.PipelineCacheKey;
  @@ -17,7 +64,7 @@
    *
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:14 $
    */
   public interface CacheableEventPipeline {
   
  
  
  
  1.4       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/CachingEventPipeline.java
  
  Index: CachingEventPipeline.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/CachingEventPipeline.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CachingEventPipeline.java 1 Feb 2002 15:48:09 -0000       1.3
  +++ CachingEventPipeline.java 4 Feb 2002 09:40:14 -0000       1.4
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.pipeline;
   
   import org.apache.avalon.excalibur.pool.Recyclable;
  @@ -41,7 +88,7 @@
    * does not cache! (If it would cache, the response would be cached twice!)
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.3 $ $Date: 2002/02/01 15:48:09 $
  + * @version CVS $Revision: 1.4 $ $Date: 2002/02/04 09:40:14 $
    */
   public class CachingEventPipeline
   extends AbstractEventPipeline
  
  
  
  1.3       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java
  
  Index: CachingStreamPipeline.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CachingStreamPipeline.java        22 Jan 2002 00:17:11 -0000      1.2
  +++ CachingStreamPipeline.java        4 Feb 2002 09:40:14 -0000       1.3
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.pipeline;
   
   import org.apache.avalon.framework.component.Component;
  @@ -41,7 +88,7 @@
    *  </ul>
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.2 $ $Date: 2002/01/22 00:17:11 $
  + * @version CVS $Revision: 1.3 $ $Date: 2002/02/04 09:40:14 $
    */
   public class CachingStreamPipeline extends AbstractStreamPipeline {
   
  
  
  
  1.2       +60 -13    
xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/EventPipeline.java
  
  Index: EventPipeline.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/EventPipeline.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EventPipeline.java        3 Jan 2002 12:31:12 -0000       1.1
  +++ EventPipeline.java        4 Feb 2002 09:40:14 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.pipeline;
   
   import org.apache.avalon.excalibur.pool.Recyclable;
  @@ -23,9 +70,9 @@
    * <code>ComponentManager</code> used to get the generator and transformers
    * depends on the pipeline assembly engine where they are defined (i.e. a 
given
    * sitemap file).
  - * 
  + *
    * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:14 $
    */
   public interface EventPipeline extends XMLProducer, Component, Recomposable, 
Recyclable {
   
  @@ -35,7 +82,7 @@
        * Process the given <code>Environment</code>, producing the output.
        */
       boolean process(Environment environment) throws Exception;
  -    
  +
       /**
        * Set the generator that will be used as the initial step in the 
pipeline.
        * The generator role is given : the actual <code>Generator</code> is 
fetched
  @@ -49,7 +96,7 @@
        * @throws Exception if the generator couldn't be obtained.
        */
       void setGenerator (String role, String source, Parameters param) throws 
Exception;
  -    
  +
       /**
        * Same as [EMAIL PROTECTED] #setGenerator(String, String, Parameters)} 
with an additional
        * <code>Exception</code> parameter. This is used for setting the special
  @@ -65,7 +112,7 @@
        * @see org.apache.cocoon.sitemap.ErrorNotifier
        */
       void setGenerator (String role, String source, Parameters param, 
Exception e) throws Exception;
  -    
  +
       /**
        * Get the generator used by this pipeline. Access to the generator is 
needed for
        * content aggregation since the aggregation generator is fed by the 
pipeline engine
  @@ -74,7 +121,7 @@
        * @return the generator
        */
       Generator getGenerator ();
  -    
  +
       /**
        * Add a transformer at the end of the pipeline.
        * The transformer role is given : the actual <code>Transformer</code> 
is fetched
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/NonCachingEventPipeline.java
  
  Index: NonCachingEventPipeline.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/NonCachingEventPipeline.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NonCachingEventPipeline.java      3 Jan 2002 12:31:12 -0000       1.1
  +++ NonCachingEventPipeline.java      4 Feb 2002 09:40:14 -0000       1.2
  @@ -1,17 +1,64 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.pipeline;
   
   import org.apache.avalon.excalibur.pool.Recyclable;
   
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:14 $
    */
   public class NonCachingEventPipeline extends AbstractEventPipeline 
implements Recyclable {
   
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/NonCachingStreamPipeline.java
  
  Index: NonCachingStreamPipeline.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/NonCachingStreamPipeline.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NonCachingStreamPipeline.java     3 Jan 2002 12:31:12 -0000       1.1
  +++ NonCachingStreamPipeline.java     4 Feb 2002 09:40:14 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.pipeline;
   
   import org.apache.cocoon.ProcessingException;
  @@ -20,7 +67,7 @@
    * resource
    * </UL>
    * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:14 $
    */
   public final class NonCachingStreamPipeline extends AbstractStreamPipeline {
   
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/OutputComponentSelector.java
  
  Index: OutputComponentSelector.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/OutputComponentSelector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- OutputComponentSelector.java      15 Jan 2002 11:10:51 -0000      1.1
  +++ OutputComponentSelector.java      4 Feb 2002 09:40:14 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.pipeline;
   
   import org.apache.avalon.framework.component.ComponentSelector;
  @@ -14,7 +61,7 @@
    * This selector is able to associate a MIME type to a hint.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Sylvain Wallez</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/15 11:10:51 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:14 $
    */
   
   public interface OutputComponentSelector extends ComponentSelector {
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/StreamPipeline.java
  
  Index: StreamPipeline.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/pipeline/StreamPipeline.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StreamPipeline.java       3 Jan 2002 12:31:12 -0000       1.1
  +++ StreamPipeline.java       4 Feb 2002 09:40:14 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.pipeline;
   
   import org.apache.avalon.excalibur.pool.Recyclable;
  @@ -26,7 +73,7 @@
    * a given sitemap file).
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:14 $
    */
   public interface StreamPipeline extends Component, Recomposable, Recyclable {
   
  
  
  
  1.2       +61 -14    
xml-cocoon2/src/java/org/apache/cocoon/components/profiler/Profiler.java
  
  Index: Profiler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/profiler/Profiler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Profiler.java     3 Jan 2002 12:31:12 -0000       1.1
  +++ Profiler.java     4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.profiler;
   
   import org.apache.avalon.framework.component.Component;
  @@ -15,18 +62,18 @@
    * Profiler component interface.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Vadim Gritsenko</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   public interface Profiler extends Component
   {
       String ROLE = "org.apache.cocoon.components.profiler.Profiler";
   
  -     void clearResults();
  -     void clearResult(Object key);
  +    void clearResults();
  +    void clearResult(Object key);
   
  -     void addResult(String uri, ProfilerData data);
  +    void addResult(String uri, ProfilerData data);
   
  -     Collection getResultKeys();
  -     Collection getResults();
  -     ProfilerResult getResult(Object key);
  +    Collection getResultKeys();
  +    Collection getResults();
  +    ProfilerResult getResult(Object key);
   }
  
  
  
  1.2       +138 -91   
xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilerData.java
  
  Index: ProfilerData.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilerData.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ProfilerData.java 3 Jan 2002 12:31:12 -0000       1.1
  +++ ProfilerData.java 4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.profiler;
   
   import org.apache.cocoon.util.HashUtil;
  @@ -15,93 +62,93 @@
    * Request-time profiler information.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Vadim Gritsenko</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   public class ProfilerData
   {
  -     class Entry
  -     {
  -             Object component;
  -             String role;
  -             String source;
  -             long time;
  -
  -             Entry(Object c, String r, String s)
  -             {
  -                     component = c;
  -                     role = r;
  -                     source = s;
  -             }
  -     }
  -
  -     private ArrayList a = null;
  -
  -     public ProfilerData()
  -     {
  -             a = new ArrayList();
  -             a.add(null);
  -     }
  -
  -     public void setGenerator(Object generator, String role, String source)
  -     {
  -             a.set(0, new Entry(generator, role, source));
  -     }
  -
  -     public void addComponent(Object component, String role, String source)
  -     {
  -             a.add(new Entry(component, role, source));
  -     }
  -
  -     public int indexOf(Object component)
  -     {
  -             for(int i=0; i<a.size(); i++){
  -                     if(((Entry)a.get(i)).component == component)
  -                             return i;
  -             }
  -             return -1;
  -     }
  -
  -     public void setTime(int i, long time)
  -     {
  -             ((Entry)a.get(i)).time = time;
  -     }
  -
  -     Entry[] getEntries()
  -     {
  -             return (Entry[])a.toArray(new Entry[a.size()]);
  -     }
  -
  -     public long getKey(String uri)
  -     {
  -             StringBuffer key = new StringBuffer(uri);
  -             for(int i=0; i<a.size(); i++){
  -                     Entry entry = (Entry)a.get(i);
  -                     key.append(':');
  -                     key.append(entry.role);
  -                     key.append(':');
  -                     key.append(entry.source);
  -             }
  -             return HashUtil.hash(key);
  -     }
  +    class Entry
  +    {
  +        Object component;
  +        String role;
  +        String source;
  +        long time;
  +
  +        Entry(Object c, String r, String s)
  +        {
  +            component = c;
  +            role = r;
  +            source = s;
  +        }
  +    }
  +
  +    private ArrayList a = null;
  +
  +    public ProfilerData()
  +    {
  +        a = new ArrayList();
  +        a.add(null);
  +    }
  +
  +    public void setGenerator(Object generator, String role, String source)
  +    {
  +        a.set(0, new Entry(generator, role, source));
  +    }
  +
  +    public void addComponent(Object component, String role, String source)
  +    {
  +        a.add(new Entry(component, role, source));
  +    }
  +
  +    public int indexOf(Object component)
  +    {
  +        for(int i=0; i<a.size(); i++){
  +            if(((Entry)a.get(i)).component == component)
  +                return i;
  +        }
  +        return -1;
  +    }
  +
  +    public void setTime(int i, long time)
  +    {
  +        ((Entry)a.get(i)).time = time;
  +    }
  +
  +    Entry[] getEntries()
  +    {
  +        return (Entry[])a.toArray(new Entry[a.size()]);
  +    }
  +
  +    public long getKey(String uri)
  +    {
  +        StringBuffer key = new StringBuffer(uri);
  +        for(int i=0; i<a.size(); i++){
  +            Entry entry = (Entry)a.get(i);
  +            key.append(':');
  +            key.append(entry.role);
  +            key.append(':');
  +            key.append(entry.source);
  +        }
  +        return HashUtil.hash(key);
  +    }
   /*
  -     public void report(String uri)
  -     {
  -             
System.err.println("-------------------------------------------------------------------------------");
  -             System.err.println("PROFILER DATA FOR: " + uri);
  -
  -             Entry[] entries = getEntries();
  -             for(int i=0; i<entries.length; i++){
  -                     long time = entries[i].time;
  -                     if(i < entries.length - 1)
  -                             time -= entries[i+1].time;
  -                     if(entries[i].role == null || entries[i].role.length() 
== 0)
  -                             System.err.println("PROFILER DATA: " + time
  -                                     + "\tFOR " + entries[i].component);
  -                     else
  -                             System.err.println("PROFILER DATA: " + time
  -                                     + "\tFOR " + entries[i].role + "\t" + 
entries[i].source);
  -             }
  -             System.err.println("PROFILER DATA: " + entries[0].time + " 
TOTAL");
  -     }
  +    public void report(String uri)
  +    {
  +        
System.err.println("-------------------------------------------------------------------------------");
  +        System.err.println("PROFILER DATA FOR: " + uri);
  +
  +        Entry[] entries = getEntries();
  +        for(int i=0; i<entries.length; i++){
  +            long time = entries[i].time;
  +            if(i < entries.length - 1)
  +                time -= entries[i+1].time;
  +            if(entries[i].role == null || entries[i].role.length() == 0)
  +                System.err.println("PROFILER DATA: " + time
  +                    + "\tFOR " + entries[i].component);
  +            else
  +                System.err.println("PROFILER DATA: " + time
  +                    + "\tFOR " + entries[i].role + "\t" + entries[i].source);
  +        }
  +        System.err.println("PROFILER DATA: " + entries[0].time + " TOTAL");
  +    }
   */
   }
  
  
  
  1.3       +130 -83   
xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilerGenerator.java
  
  Index: ProfilerGenerator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilerGenerator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ProfilerGenerator.java    1 Feb 2002 14:44:34 -0000       1.2
  +++ ProfilerGenerator.java    4 Feb 2002 09:40:15 -0000       1.3
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  -* Copyright (C) The Apache Software Foundation. All rights reserved.        *
  -* ------------------------------------------------------------------------- *
  -* This software is published under the terms of the Apache Software License *
  -* version 1.1, a copy of which has been included  with this distribution in *
  -* the LICENSE file.                                                         *
  
-*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.profiler;
   
   import org.apache.avalon.excalibur.pool.Recyclable;
  @@ -26,41 +73,41 @@
    * Generates an XML representation of the current status of Profiler.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Vadim Gritsenko</a>
  - * @version CVS $Revision: 1.2 $ $Date: 2002/02/01 14:44:34 $
  + * @version CVS $Revision: 1.3 $ $Date: 2002/02/04 09:40:15 $
    */
   public class ProfilerGenerator extends ComposerGenerator
   implements Recyclable, Composable, Disposable {
   
       /**
  -      * The XML namespace for the output document.
  +     * The XML namespace for the output document.
        */
       protected static final String namespace = 
"http://apache.org/cocoon/profiler/1.0";;
   
  -     private Profiler profiler;
  +    private Profiler profiler;
   
   
  -     public void compose(ComponentManager manager) throws ComponentException
  -     {
  -             super.compose(manager);
  +    public void compose(ComponentManager manager) throws ComponentException
  +    {
  +        super.compose(manager);
   
  -             try{
  -                     this.profiler = 
(Profiler)super.manager.lookup(Profiler.ROLE);
  -             }catch(Exception e){
  -                     e.printStackTrace();
  -             }
  -     }
  +        try{
  +            this.profiler = (Profiler)super.manager.lookup(Profiler.ROLE);
  +        }catch(Exception e){
  +            e.printStackTrace();
  +        }
  +    }
   
  -     public void dispose()
  +    public void dispose()
       {
  -             if(this.profiler != null){
  -                     super.manager.release(this.profiler);
  -                     this.profiler = null;
  -             }
  -             super.dispose();
  -     }
  +        if(this.profiler != null){
  +            super.manager.release(this.profiler);
  +            this.profiler = null;
  +        }
  +        super.dispose();
  +    }
   
       /**
  -      * Generate the status information in XML format.
  +     * Generate the status information in XML format.
        * @throws SAXException
        *         when there is a problem creating the output SAX events.
        */
  @@ -89,8 +136,8 @@
           ch.startElement(namespace, "profilerinfo", "profilerinfo", atts);
   
           Collection results = profiler.getResults();
  -             for(Iterator i = results.iterator(); i.hasNext();)
  -                     generateResult(ch, (ProfilerResult)i.next());
  +        for(Iterator i = results.iterator(); i.hasNext();)
  +            generateResult(ch, (ProfilerResult)i.next());
   
           // End root element.
           ch.endElement(namespace, "profilerinfo", "profilerinfo");
  @@ -99,63 +146,63 @@
       private void generateResult(ContentHandler ch, ProfilerResult result) 
throws SAXException {
           AttributesImpl atts = new AttributesImpl();
   
  -             int count = result.getCount();
  -             String[] roles = result.getRoles();
  -             String[] source = result.getSources();
  -             long[] avgTime = result.getTotalTime();
  -             long avgTotal = 0;
  -             for(int i=0; i < avgTime.length; i++)
  -                     avgTotal += avgTime[i];
  -
  -             atts.addAttribute(namespace, "uri", "uri", "CDATA", 
result.getURI());
  -             atts.addAttribute(namespace, "count", "count", "CDATA", 
Integer.toString(result.getCount()));
  -             atts.addAttribute(namespace, "time", "time", "CDATA", 
Long.toString(avgTotal));
  +        int count = result.getCount();
  +        String[] roles = result.getRoles();
  +        String[] source = result.getSources();
  +        long[] avgTime = result.getTotalTime();
  +        long avgTotal = 0;
  +        for(int i=0; i < avgTime.length; i++)
  +            avgTotal += avgTime[i];
  +
  +        atts.addAttribute(namespace, "uri", "uri", "CDATA", result.getURI());
  +        atts.addAttribute(namespace, "count", "count", "CDATA", 
Integer.toString(result.getCount()));
  +        atts.addAttribute(namespace, "time", "time", "CDATA", 
Long.toString(avgTotal));
           ch.startElement(namespace, "pipeline", "pipeline", atts);
  -             atts.clear();
  +        atts.clear();
   
  -             if(count > 0){
  -                     atts.addAttribute(namespace, "time", "time", "CDATA", 
Long.toString(avgTotal / count));
  -                     ch.startElement(namespace, "average", "average", atts);
  -                     atts.clear();
  -                     for(int i=0; i<roles.length; i++){
  -                             if(roles[i] != null)
  -                                     atts.addAttribute(namespace, "role", 
"role", "CDATA", roles[i]);
  -                             if(source[i] != null)
  -                                     atts.addAttribute(namespace, "source", 
"source", "CDATA", source[i]);
  -                             atts.addAttribute(namespace, "time", "time", 
"CDATA", Long.toString(avgTime[i] / count));
  -                             ch.startElement(namespace, "element", 
"element", atts);
  -                             atts.clear();
  -                             ch.endElement(namespace, "element", "element");
  -                     }
  -                     ch.endElement(namespace, "average", "average");
  -
  -                     long[][] last = result.getLastTimes();
  -                     for(int j=0; j<last.length; j++){
  -                             if(last[j] != null){
  -                                     long[] curTime = last[j];
  -                                     long curTotal = 0;
  -                                     for(int i=0; i < curTime.length; i++)
  -                                             curTotal += curTime[i];
  -
  -                                     atts.addAttribute(namespace, "time", 
"time", "CDATA", Long.toString(curTotal));
  -                                     ch.startElement(namespace, "result", 
"result", atts);
  -                                     atts.clear();
  -                                     for(int i=0; i<roles.length; i++){
  -                                             if(roles[i] != null)
  -                                                     
atts.addAttribute(namespace, "role", "role", "CDATA", roles[i]);
  -                                             if(source[i] != null)
  -                                                     
atts.addAttribute(namespace, "source", "source", "CDATA", source[i]);
  -                                             atts.addAttribute(namespace, 
"time", "time", "CDATA", Long.toString(curTime[i]));
  -                                             ch.startElement(namespace, 
"element", "element", atts);
  -                                             atts.clear();
  -                                             ch.endElement(namespace, 
"element", "element");
  -                                     }
  -                                     ch.endElement(namespace, "result", 
"result");
  -                             }
  -                     }
  -             }
  +        if(count > 0){
  +            atts.addAttribute(namespace, "time", "time", "CDATA", 
Long.toString(avgTotal / count));
  +            ch.startElement(namespace, "average", "average", atts);
  +            atts.clear();
  +            for(int i=0; i<roles.length; i++){
  +                if(roles[i] != null)
  +                    atts.addAttribute(namespace, "role", "role", "CDATA", 
roles[i]);
  +                if(source[i] != null)
  +                    atts.addAttribute(namespace, "source", "source", 
"CDATA", source[i]);
  +                atts.addAttribute(namespace, "time", "time", "CDATA", 
Long.toString(avgTime[i] / count));
  +                ch.startElement(namespace, "element", "element", atts);
  +                atts.clear();
  +                ch.endElement(namespace, "element", "element");
  +            }
  +            ch.endElement(namespace, "average", "average");
  +
  +            long[][] last = result.getLastTimes();
  +            for(int j=0; j<last.length; j++){
  +                if(last[j] != null){
  +                    long[] curTime = last[j];
  +                    long curTotal = 0;
  +                    for(int i=0; i < curTime.length; i++)
  +                        curTotal += curTime[i];
  +
  +                    atts.addAttribute(namespace, "time", "time", "CDATA", 
Long.toString(curTotal));
  +                    ch.startElement(namespace, "result", "result", atts);
  +                    atts.clear();
  +                    for(int i=0; i<roles.length; i++){
  +                        if(roles[i] != null)
  +                            atts.addAttribute(namespace, "role", "role", 
"CDATA", roles[i]);
  +                        if(source[i] != null)
  +                            atts.addAttribute(namespace, "source", "source", 
"CDATA", source[i]);
  +                        atts.addAttribute(namespace, "time", "time", 
"CDATA", Long.toString(curTime[i]));
  +                        ch.startElement(namespace, "element", "element", 
atts);
  +                        atts.clear();
  +                        ch.endElement(namespace, "element", "element");
  +                    }
  +                    ch.endElement(namespace, "result", "result");
  +                }
  +            }
  +        }
   
  -             ch.endElement(namespace, "pipeline", "pipeline");
  +        ch.endElement(namespace, "pipeline", "pipeline");
       }
   }
   
  
  
  
  1.2       +157 -110  
xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilerResult.java
  
  Index: ProfilerResult.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilerResult.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ProfilerResult.java       3 Jan 2002 12:31:12 -0000       1.1
  +++ ProfilerResult.java       4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.profiler;
   
   import java.util.Arrays;
  @@ -13,112 +60,112 @@
    * Represents data collected about one pipeline.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Vadim Gritsenko</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   public class ProfilerResult
   {
  -     private String uri;
  -     private String[] roles;
  -     private String[] sources;
  -
  -     private int count;
  -     private long[] totalTime;
  -     private long[][] latestTimes;
  -     private int latestCurrent;
  -
  -     public ProfilerResult(String uri, int latestResultsCount)
  -     {
  -             this.uri = uri;
  -             if(latestResultsCount > 0)
  -                     this.latestTimes = new long[latestResultsCount][];
  -     }
  -
  -     public void addData(ProfilerData data)
  -     {
  -             ProfilerData.Entry[] entries = data.getEntries();
  -             synchronized(this){
  -                     if(totalTime == null || totalTime.length != 
entries.length){
  -                             // Reinitialize arrays
  -                             totalTime = new long[entries.length];
  -                             roles = new String[entries.length];
  -                             sources = new String[entries.length];
  -                             for(int i=0; i<entries.length; i++){
  -                                     roles[i] = entries[i].role;
  -                                     if(roles[i] == null)
  -                                             roles[i] = 
entries[i].component.getClass().getName();
  -                                     sources[i] = entries[i].source;
  -                             }
  -
  -                             // Clear latest times
  -                             if(latestTimes != null)
  -                                     Arrays.fill(latestTimes, 0, 
latestTimes.length, null);
  -                             latestCurrent = 0;
  -
  -                             // Clear counter
  -                             count = 0;
  -                     }
  -
  -                     // Adjust time. It's cumulative towards 0 index in data 
object
  -                     for(int i=0; i<entries.length-1; i++)
  -                             entries[i].time -= entries[i+1].time;
  -
  -                     long[] latest = new long[entries.length];
  -                     for(int i=0; i<entries.length; i++)
  -                             totalTime[i] += latest[i] = entries[i].time;
  -
  -                     if(latestTimes != null){
  -                             latestTimes[latestCurrent++] = latest;
  -                             if(latestCurrent >= latestTimes.length) 
latestCurrent = 0;
  -                     }
  -
  -                     count++;
  -             }
  -     }
  -
  -     public String getURI()
  -     {
  -             return uri;
  -     }
  -
  -     public String[] getRoles()
  -     {
  -             return roles;
  -     }
  -
  -     public String[] getSources()
  -     {
  -             return sources;
  -     }
  -
  -     public int getCount()
  -     {
  -             return count;
  -     }
  -
  -     public long[] getTotalTime()
  -     {
  -             return totalTime;
  -     }
  -
  -     public long[][] getLastTimes()
  -     {
  -             return latestTimes;
  -     }
  +    private String uri;
  +    private String[] roles;
  +    private String[] sources;
  +
  +    private int count;
  +    private long[] totalTime;
  +    private long[][] latestTimes;
  +    private int latestCurrent;
  +
  +    public ProfilerResult(String uri, int latestResultsCount)
  +    {
  +        this.uri = uri;
  +        if(latestResultsCount > 0)
  +            this.latestTimes = new long[latestResultsCount][];
  +    }
  +
  +    public void addData(ProfilerData data)
  +    {
  +        ProfilerData.Entry[] entries = data.getEntries();
  +        synchronized(this){
  +            if(totalTime == null || totalTime.length != entries.length){
  +                // Reinitialize arrays
  +                totalTime = new long[entries.length];
  +                roles = new String[entries.length];
  +                sources = new String[entries.length];
  +                for(int i=0; i<entries.length; i++){
  +                    roles[i] = entries[i].role;
  +                    if(roles[i] == null)
  +                        roles[i] = entries[i].component.getClass().getName();
  +                    sources[i] = entries[i].source;
  +                }
  +
  +                // Clear latest times
  +                if(latestTimes != null)
  +                    Arrays.fill(latestTimes, 0, latestTimes.length, null);
  +                latestCurrent = 0;
  +
  +                // Clear counter
  +                count = 0;
  +            }
  +
  +            // Adjust time. It's cumulative towards 0 index in data object
  +            for(int i=0; i<entries.length-1; i++)
  +                entries[i].time -= entries[i+1].time;
  +
  +            long[] latest = new long[entries.length];
  +            for(int i=0; i<entries.length; i++)
  +                totalTime[i] += latest[i] = entries[i].time;
  +
  +            if(latestTimes != null){
  +                latestTimes[latestCurrent++] = latest;
  +                if(latestCurrent >= latestTimes.length) latestCurrent = 0;
  +            }
  +
  +            count++;
  +        }
  +    }
  +
  +    public String getURI()
  +    {
  +        return uri;
  +    }
  +
  +    public String[] getRoles()
  +    {
  +        return roles;
  +    }
  +
  +    public String[] getSources()
  +    {
  +        return sources;
  +    }
  +
  +    public int getCount()
  +    {
  +        return count;
  +    }
  +
  +    public long[] getTotalTime()
  +    {
  +        return totalTime;
  +    }
  +
  +    public long[][] getLastTimes()
  +    {
  +        return latestTimes;
  +    }
   /*
  -     public void report()
  -     {
  -             
System.err.println("-------------------------------------------------------------------------------");
  -             System.err.println("PROFILER TOTALS FOR: " + uri);
  -
  -             if(totalTime != null){
  -                     long time = 0;
  -                     for(int i=0; i<totalTime.length; i++){
  -                             System.err.println("PROFILER TOTALS: " + 
totalTime[i] + "\tFOR " + roles[i] + "\t" + sources[i]);
  -                             time += totalTime[i];
  -                     }
  -                     System.err.println("PROFILER TOTALS: " + time + " 
TIMES");
  -                     System.err.println("PROFILER TOTALS: " + count + " 
REQUESTS");
  -             }
  -     }
  +    public void report()
  +    {
  +        
System.err.println("-------------------------------------------------------------------------------");
  +        System.err.println("PROFILER TOTALS FOR: " + uri);
  +
  +        if(totalTime != null){
  +            long time = 0;
  +            for(int i=0; i<totalTime.length; i++){
  +                System.err.println("PROFILER TOTALS: " + totalTime[i] + 
"\tFOR " + roles[i] + "\t" + sources[i]);
  +                time += totalTime[i];
  +            }
  +            System.err.println("PROFILER TOTALS: " + time + " TIMES");
  +            System.err.println("PROFILER TOTALS: " + count + " REQUESTS");
  +        }
  +    }
   */
   }
  
  
  
  1.2       +93 -46    
xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilingCachingEventPipeline.java
  
  Index: ProfilingCachingEventPipeline.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilingCachingEventPipeline.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ProfilingCachingEventPipeline.java        3 Jan 2002 12:31:12 -0000       
1.1
  +++ ProfilingCachingEventPipeline.java        4 Feb 2002 09:40:15 -0000       
1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.profiler;
   
   import org.apache.avalon.excalibur.pool.Recyclable;
  @@ -18,78 +65,78 @@
   
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]">Vadim Gritsenko</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   public class ProfilingCachingEventPipeline extends CachingEventPipeline
   implements Recyclable, Composable, Disposable {
   
  -     private ComponentManager manager;
  -     private Profiler profiler;
  +    private ComponentManager manager;
  +    private Profiler profiler;
   
  -     private ProfilerData data = null;
  +    private ProfilerData data = null;
   
   
  -     public void compose(ComponentManager manager) throws ComponentException
  -     {
  -             super.compose(manager);
  +    public void compose(ComponentManager manager) throws ComponentException
  +    {
  +        super.compose(manager);
   
  -             try{
  -                     this.manager = manager;
  -                     this.profiler = (Profiler)manager.lookup(Profiler.ROLE);
  -             }catch(Exception e){
  -                     e.printStackTrace();
  -             }
  -     }
  +        try{
  +            this.manager = manager;
  +            this.profiler = (Profiler)manager.lookup(Profiler.ROLE);
  +        }catch(Exception e){
  +            e.printStackTrace();
  +        }
  +    }
   
  -     public void dispose()
  +    public void dispose()
       {
  -             super.dispose();
  +        super.dispose();
   
  -             if(this.profiler != null){
  -                     this.manager.release(this.profiler);
  -                     this.profiler = null;
  -             }
  -             this.manager = null;
  -     }
  +        if(this.profiler != null){
  +            this.manager.release(this.profiler);
  +            this.profiler = null;
  +        }
  +        this.manager = null;
  +    }
   
       public void setGenerator (String role, String source, Parameters param, 
Exception e)
       throws Exception {
  -     super.setGenerator(role, source, param, e);
  +        super.setGenerator(role, source, param, e);
   
  -             if(this.data == null)
  -                     this.data = new ProfilerData();
  -             this.data.setGenerator(super.generator, role, source);
  -     }
  +        if(this.data == null)
  +            this.data = new ProfilerData();
  +        this.data.setGenerator(super.generator, role, source);
  +    }
   
       public void setGenerator (String role, String source, Parameters param)
       throws Exception {
  -     super.setGenerator(role, source, param);
  +        super.setGenerator(role, source, param);
   
  -             if(this.data == null)
  -                     this.data = new ProfilerData();
  -             this.data.setGenerator(super.generator, role, source);
  +        if(this.data == null)
  +            this.data = new ProfilerData();
  +        this.data.setGenerator(super.generator, role, source);
       }
   
       public void addTransformer (String role, String source, Parameters param)
       throws Exception {
           super.addTransformer(role, source, param);
   
  -             if(this.data == null)
  -                     this.data = new ProfilerData();
  -             
this.data.addComponent(super.transformers.get(super.transformers.size()-1), 
role, source);
  +        if(this.data == null)
  +            this.data = new ProfilerData();
  +        
this.data.addComponent(super.transformers.get(super.transformers.size()-1), 
role, source);
       }
   
       public boolean process(Environment environment) throws Exception {
  -             this.data.addComponent(super.xmlConsumer, null, null);
  +        this.data.addComponent(super.xmlConsumer, null, null);
           environment.getObjectModel().put("profiler", data);
   
           // Execute pipeline
  -             long time = System.currentTimeMillis();
  +        long time = System.currentTimeMillis();
           boolean result = super.process(environment);
  -             this.data.setTime(0, System.currentTimeMillis() - time);
  +        this.data.setTime(0, System.currentTimeMillis() - time);
   
  -             // Report
  -             profiler.addResult(environment.getURI(), data);
  +        // Report
  +        profiler.addResult(environment.getURI(), data);
           return result;
       }
   
  
  
  
  1.2       +93 -46    
xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilingNonCachingEventPipeline.java
  
  Index: ProfilingNonCachingEventPipeline.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilingNonCachingEventPipeline.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ProfilingNonCachingEventPipeline.java     3 Jan 2002 12:31:12 -0000       
1.1
  +++ ProfilingNonCachingEventPipeline.java     4 Feb 2002 09:40:15 -0000       
1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.profiler;
   
   import org.apache.avalon.excalibur.pool.Recyclable;
  @@ -18,78 +65,78 @@
   
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]">Vadim Gritsenko</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   public class ProfilingNonCachingEventPipeline extends NonCachingEventPipeline
   implements Recyclable, Composable, Disposable {
   
  -     private ComponentManager manager;
  -     private Profiler profiler;
  +    private ComponentManager manager;
  +    private Profiler profiler;
   
  -     private ProfilerData data = null;
  +    private ProfilerData data = null;
   
   
  -     public void compose(ComponentManager manager) throws ComponentException
  -     {
  -             super.compose(manager);
  +    public void compose(ComponentManager manager) throws ComponentException
  +    {
  +        super.compose(manager);
   
  -             try{
  -                     this.manager = manager;
  -                     this.profiler = (Profiler)manager.lookup(Profiler.ROLE);
  -             }catch(Exception e){
  -                     e.printStackTrace();
  -             }
  -     }
  +        try{
  +            this.manager = manager;
  +            this.profiler = (Profiler)manager.lookup(Profiler.ROLE);
  +        }catch(Exception e){
  +            e.printStackTrace();
  +        }
  +    }
   
  -     public void dispose()
  +    public void dispose()
       {
  -             super.dispose();
  +        super.dispose();
   
  -             if(this.profiler != null){
  -                     this.manager.release(this.profiler);
  -                     this.profiler = null;
  -             }
  -             this.manager = null;
  -     }
  +        if(this.profiler != null){
  +            this.manager.release(this.profiler);
  +            this.profiler = null;
  +        }
  +        this.manager = null;
  +    }
   
       public void setGenerator (String role, String source, Parameters param, 
Exception e)
       throws Exception {
  -     super.setGenerator(role, source, param, e);
  +        super.setGenerator(role, source, param, e);
   
  -             if(this.data == null)
  -                     this.data = new ProfilerData();
  -             this.data.setGenerator(super.generator, role, source);
  -     }
  +        if(this.data == null)
  +            this.data = new ProfilerData();
  +        this.data.setGenerator(super.generator, role, source);
  +    }
   
       public void setGenerator (String role, String source, Parameters param)
       throws Exception {
  -     super.setGenerator(role, source, param);
  +        super.setGenerator(role, source, param);
   
  -             if(this.data == null)
  -                     this.data = new ProfilerData();
  -             this.data.setGenerator(super.generator, role, source);
  +        if(this.data == null)
  +            this.data = new ProfilerData();
  +        this.data.setGenerator(super.generator, role, source);
       }
   
       public void addTransformer (String role, String source, Parameters param)
       throws Exception {
           super.addTransformer(role, source, param);
   
  -             if(this.data == null)
  -                     this.data = new ProfilerData();
  -             
this.data.addComponent(super.transformers.get(super.transformers.size()-1), 
role, source);
  +        if(this.data == null)
  +            this.data = new ProfilerData();
  +        
this.data.addComponent(super.transformers.get(super.transformers.size()-1), 
role, source);
       }
   
       public boolean process(Environment environment) throws Exception {
  -             this.data.addComponent(super.xmlConsumer, null, null);
  +        this.data.addComponent(super.xmlConsumer, null, null);
           environment.getObjectModel().put("profiler", data);
   
           // Execute pipeline
  -             long time = System.currentTimeMillis();
  +        long time = System.currentTimeMillis();
           boolean result = super.process(environment);
  -             this.data.setTime(0, System.currentTimeMillis() - time);
  +        this.data.setTime(0, System.currentTimeMillis() - time);
   
  -             // Report
  -             profiler.addResult(environment.getURI(), data);
  +        // Report
  +        profiler.addResult(environment.getURI(), data);
           return result;
       }
   
  
  
  
  1.2       +140 -93   
xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilingSAXConnector.java
  
  Index: ProfilingSAXConnector.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/profiler/ProfilingSAXConnector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ProfilingSAXConnector.java        3 Jan 2002 12:31:12 -0000       1.1
  +++ ProfilingSAXConnector.java        4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.profiler;
   
   import org.apache.avalon.excalibur.pool.Recyclable;
  @@ -23,164 +70,164 @@
   /**
    * This SAX connector measures time taken by the following SAX handler.
    * @author <a href="[EMAIL PROTECTED]">Vadim Gritsenko</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   public class ProfilingSAXConnector extends AbstractXMLPipe
  -     implements Recyclable, SAXConnector
  +    implements Recyclable, SAXConnector
   {
  -     private ProfilerData data;
  -     private int index;
  -     private long time;
  -     private long total;
  +    private ProfilerData data;
  +    private int index;
  +    private long time;
  +    private long total;
   
       /**
        * Setup this SAXConnector.
        */
       public void setup(SourceResolver resolver, Map objectModel, String src, 
Parameters params)
  -     throws ProcessingException, SAXException, IOException
  -     {
  -             this.data = (ProfilerData)objectModel.get("profiler");
  +        throws ProcessingException, SAXException, IOException
  +    {
  +        this.data = (ProfilerData)objectModel.get("profiler");
       }
   
       /**
        * Recycle the SAXConnector
        */
       public void recycle()
  -     {
  -             this.data = null;
  -             this.time = this.total = 0;
  +    {
  +        this.data = null;
  +        this.time = this.total = 0;
           this.index = -1;
           super.recycle();
       }
   
  -     public void setConsumer(XMLConsumer consumer)
  -     {
  +    public void setConsumer(XMLConsumer consumer)
  +    {
           super.setConsumer(consumer);
  -             if(this.data != null)
  -                     this.index = this.data.indexOf(consumer);
  -             else
  -                     this.index = -1;        
  +        if(this.data != null)
  +            this.index = this.data.indexOf(consumer);
  +        else
  +            this.index = -1;
       }
   
   
       public void startDocument() throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  +    {
  +        time = System.currentTimeMillis();
           super.startDocument();
  -             total += System.currentTimeMillis() - time;
  +        total += System.currentTimeMillis() - time;
       }
   
       public void endDocument() throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  +    {
  +        time = System.currentTimeMillis();
           super.endDocument();
  -             total += System.currentTimeMillis() - time;
  -             if(index != -1)
  -                     data.setTime(index, total);
  +        total += System.currentTimeMillis() - time;
  +        if(index != -1)
  +            data.setTime(index, total);
       }
   
       public void startPrefixMapping(String prefix, String uri) throws 
SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.startPrefixMapping(prefix, uri);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.startPrefixMapping(prefix, uri);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void endPrefixMapping(String prefix) throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.endPrefixMapping(prefix);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.endPrefixMapping(prefix);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void startElement(String uri, String loc, String raw, Attributes 
a) throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.startElement(uri, loc, raw, a);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.startElement(uri, loc, raw, a);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void endElement(String uri, String loc, String raw) throws 
SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.endElement(uri, loc, raw);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.endElement(uri, loc, raw);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void characters(char c[], int start, int len) throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.characters(c, start, len);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.characters(c, start, len);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void ignorableWhitespace(char c[], int start, int len) throws 
SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.ignorableWhitespace(c, start, len);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.ignorableWhitespace(c, start, len);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void processingInstruction(String target, String data) throws 
SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.processingInstruction(target, data);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.processingInstruction(target, data);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void skippedEntity(String name) throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.skippedEntity(name);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.skippedEntity(name);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void startDTD(String name, String publicId, String systemId) 
throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.startDTD(name, publicId, systemId);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.startDTD(name, publicId, systemId);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void endDTD() throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.endDTD();
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.endDTD();
  +        total += System.currentTimeMillis() - time;
       }
   
       public void startEntity(String name) throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.startEntity(name);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.startEntity(name);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void endEntity(String name) throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.endEntity(name);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.endEntity(name);
  +        total += System.currentTimeMillis() - time;
       }
   
       public void startCDATA() throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.startCDATA();
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.startCDATA();
  +        total += System.currentTimeMillis() - time;
       }
   
       public void endCDATA() throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.endCDATA();
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.endCDATA();
  +        total += System.currentTimeMillis() - time;
       }
   
       public void comment(char ch[], int start, int len) throws SAXException
  -     {
  -             time = System.currentTimeMillis();
  -             super.comment(ch, start, len);
  -             total += System.currentTimeMillis() - time;
  +    {
  +        time = System.currentTimeMillis();
  +        super.comment(ch, start, len);
  +        total += System.currentTimeMillis() - time;
       }
   }
  
  
  
  1.2       +100 -53   
xml-cocoon2/src/java/org/apache/cocoon/components/profiler/SimpleProfiler.java
  
  Index: SimpleProfiler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/profiler/SimpleProfiler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleProfiler.java       3 Jan 2002 12:31:12 -0000       1.1
  +++ SimpleProfiler.java       4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.profiler;
   
   import org.apache.avalon.framework.logger.AbstractLoggable;
  @@ -19,56 +66,56 @@
    * all pipelines.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Vadim Gritsenko</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:12 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   public class SimpleProfiler extends AbstractLoggable
  -     implements Profiler, ThreadSafe //, Composable, Configurable, Disposable
  +    implements Profiler, ThreadSafe //, Composable, Configurable, Disposable
   {
  -     private static final int RESULTS_COUNT = 10;
  -     private Map results;
  +    private static final int RESULTS_COUNT = 10;
  +    private Map results;
   
  -     public SimpleProfiler()
  -     {
  -             results = new HashMap();
  -     }
  -
  -     public void clearResults()
  -     {
  -             results.clear();
  -     }
  -
  -     public void clearResult(Object key)
  -     {
  -             results.remove(key);
  -     }
  -
  -     public Collection getResultKeys()
  -     {
  -             return results.keySet();
  -     }
  -
  -     public Collection getResults()
  -     {
  -             return results.values();
  -     }
  -
  -     public ProfilerResult getResult(Object key)
  -     {
  -             return (ProfilerResult)results.get(key);
  -     }
  -
  -     public void addResult(String uri, ProfilerData data)
  -     {
  -             Long key = new Long(data.getKey(uri));
  -             ProfilerResult result = (ProfilerResult)results.get(key);
  -             if(result == null){
  -                     synchronized(results){
  -                             if((result = (ProfilerResult)results.get(key)) 
== null)
  -                                     results.put(key, result = new 
ProfilerResult(uri, RESULTS_COUNT));
  -                     }
  -             }
  +    public SimpleProfiler()
  +    {
  +        results = new HashMap();
  +    }
  +
  +    public void clearResults()
  +    {
  +        results.clear();
  +    }
  +
  +    public void clearResult(Object key)
  +    {
  +        results.remove(key);
  +    }
  +
  +    public Collection getResultKeys()
  +    {
  +        return results.keySet();
  +    }
  +
  +    public Collection getResults()
  +    {
  +        return results.values();
  +    }
  +
  +    public ProfilerResult getResult(Object key)
  +    {
  +        return (ProfilerResult)results.get(key);
  +    }
  +
  +    public void addResult(String uri, ProfilerData data)
  +    {
  +        Long key = new Long(data.getKey(uri));
  +        ProfilerResult result = (ProfilerResult)results.get(key);
  +        if(result == null){
  +            synchronized(results){
  +                if((result = (ProfilerResult)results.get(key)) == null)
  +                    results.put(key, result = new ProfilerResult(uri, 
RESULTS_COUNT));
  +            }
  +        }
   
  -             result.addData(data);
  +        result.addData(data);
   //           result.report();
  -     }
  +    }
   }
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/renderer/ExtendableRendererFactory.java
  
  Index: ExtendableRendererFactory.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/renderer/ExtendableRendererFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExtendableRendererFactory.java    3 Jan 2002 12:31:13 -0000       1.1
  +++ ExtendableRendererFactory.java    4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.renderer;
   
   import org.apache.fop.render.Renderer;
  @@ -21,7 +68,7 @@
    * type. This factory is extendable as new <code>Renderer</code>s can
    * be added at runtime.
    * @author Davanum Srinivas
  - * @version $Revision: 1.1 $, $Date: 2002/01/03 12:31:13 $
  + * @version $Revision: 1.2 $, $Date: 2002/02/04 09:40:15 $
    */
   public class ExtendableRendererFactory implements RendererFactory {
   
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/renderer/RendererFactory.java
  
  Index: RendererFactory.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/renderer/RendererFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RendererFactory.java      3 Jan 2002 12:31:13 -0000       1.1
  +++ RendererFactory.java      4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.renderer;
   
   import org.apache.fop.render.Renderer;
  @@ -13,7 +60,7 @@
    * Apache FOP Renderer factory.
    * When given a MIME type, find a Renderer which supports that MIME type.
    * @author Davanum Srinivas
  - * @version $Revision: 1.1 $, $Date: 2002/01/03 12:31:13 $
  + * @version $Revision: 1.2 $, $Date: 2002/02/04 09:40:15 $
    */
   public interface RendererFactory {
   
  
  
  
  1.3       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/resolver/Resolver.java
  
  Index: Resolver.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/resolver/Resolver.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Resolver.java     17 Jan 2002 06:15:24 -0000      1.2
  +++ Resolver.java     4 Feb 2002 09:40:15 -0000       1.3
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.resolver;
   
   import org.apache.avalon.framework.component.Component;
  @@ -18,7 +65,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Davanum Srinivas</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">David Crossley</a>
  - * @version CVS $Revision: 1.2 $ $Date: 2002/01/17 06:15:24 $
  + * @version CVS $Revision: 1.3 $ $Date: 2002/02/04 09:40:15 $
    */
   public interface Resolver extends Component, EntityResolver {
   
  
  
  
  1.6       +56 -9     
xml-cocoon2/src/java/org/apache/cocoon/components/resolver/ResolverImpl.java
  
  Index: ResolverImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/resolver/ResolverImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ResolverImpl.java 31 Jan 2002 00:26:08 -0000      1.5
  +++ ResolverImpl.java 4 Feb 2002 09:40:15 -0000       1.6
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.resolver;
   
   import org.apache.avalon.framework.activity.Disposable;
  @@ -48,7 +95,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Davanum Srinivas</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">David Crossley</a>
  - * @version CVS $Revision: 1.5 $ $Date: 2002/01/31 00:26:08 $
  + * @version CVS $Revision: 1.6 $ $Date: 2002/02/04 09:40:15 $
    */
   public class ResolverImpl extends AbstractLoggable
           implements Resolver, Contextualizable, Composable, Parameterizable,
  @@ -104,7 +151,7 @@
               String catalogURL = null;
               catalogURL = this.context.getRealPath(catalogFile);
               if (catalogURL == null) {
  -                catalogURL = 
  +                catalogURL =
                       this.context.getResource(catalogFile).toExternalForm();
               }
               if (this.getLogger().isDebugEnabled()) {
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java
  
  Index: XMLByteStreamCompiler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XMLByteStreamCompiler.java        3 Jan 2002 12:31:13 -0000       1.1
  +++ XMLByteStreamCompiler.java        4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.sax;
   
   import org.apache.avalon.excalibur.pool.Recyclable;
  @@ -20,7 +67,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:13 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   
   public final class XMLByteStreamCompiler
  
  
  
  1.2       +61 -14    
xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLByteStreamFragment.java
  
  Index: XMLByteStreamFragment.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLByteStreamFragment.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XMLByteStreamFragment.java        3 Jan 2002 12:31:13 -0000       1.1
  +++ XMLByteStreamFragment.java        4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.sax;
   
   import org.apache.cocoon.xml.AbstractSAXFragment;
  @@ -18,14 +65,14 @@
    * store SAX events and insert them in an XSP result using &lt;xsp:expr&gt;.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Sylvain Wallez</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:13 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   
   public class XMLByteStreamFragment extends AbstractSAXFragment {
  -    
  +
       /** The XML byte stream */
       private Object xmlBytes;
  -    
  +
       /**
        * Creates a new <code>XMLByteStreamFragment</code> defined by the given
        * XML byte stream.
  @@ -35,14 +82,14 @@
       public XMLByteStreamFragment(Object bytes) {
           xmlBytes = bytes;
       }
  -    
  +
       /**
        * Output the fragment. If the fragment is a document, start/endDocument
        * events are discarded.
        */
       public void toSAX(ContentHandler ch)
         throws SAXException {
  -        
  +
           // Stream bytes and discard start/endDocument
           XMLByteStreamInterpreter interp = new XMLByteStreamInterpreter();
           EmbeddedXMLPipe pipe = new EmbeddedXMLPipe(ch);
  @@ -51,9 +98,9 @@
           // also deserialized.
           if (ch instanceof XMLConsumer)
               pipe.setConsumer((XMLConsumer) ch);
  -        
  +
           interp.setContentHandler(pipe);
  -        
  +
           interp.deserialize(xmlBytes);
       }
   }
  
  
  
  1.4       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLByteStreamInterpreter.java
  
  Index: XMLByteStreamInterpreter.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLByteStreamInterpreter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XMLByteStreamInterpreter.java     22 Jan 2002 00:17:12 -0000      1.3
  +++ XMLByteStreamInterpreter.java     4 Feb 2002 09:40:15 -0000       1.4
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.sax;
   
   import org.apache.avalon.excalibur.pool.Recyclable;
  @@ -20,7 +67,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.3 $ $Date: 2002/01/22 00:17:12 $
  + * @version CVS $Revision: 1.4 $ $Date: 2002/02/04 09:40:15 $
    */
   
   public final class XMLByteStreamInterpreter
  
  
  
  1.3       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLDeserializer.java
  
  Index: XMLDeserializer.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLDeserializer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XMLDeserializer.java      1 Feb 2002 15:48:09 -0000       1.2
  +++ XMLDeserializer.java      4 Feb 2002 09:40:15 -0000       1.3
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.sax;
   
   import org.apache.avalon.framework.component.Component;
  @@ -23,7 +70,7 @@
    * the serialized data.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.2 $ $Date: 2002/02/01 15:48:09 $
  + * @version CVS $Revision: 1.3 $ $Date: 2002/02/04 09:40:15 $
    */
   public interface XMLDeserializer extends XMLProducer, Component {
   
  
  
  
  1.3       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLSerializer.java
  
  Index: XMLSerializer.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLSerializer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XMLSerializer.java        1 Feb 2002 15:48:09 -0000       1.2
  +++ XMLSerializer.java        4 Feb 2002 09:40:15 -0000       1.3
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.sax;
   
   import org.apache.avalon.framework.component.Component;
  @@ -18,7 +65,7 @@
    * the serialized data.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.2 $ $Date: 2002/02/01 15:48:09 $
  + * @version CVS $Revision: 1.3 $ $Date: 2002/02/04 09:40:15 $
    */
   public interface XMLSerializer extends XMLConsumer, Component {
   
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLTeePipe.java
  
  Index: XMLTeePipe.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/sax/XMLTeePipe.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XMLTeePipe.java   3 Jan 2002 12:31:13 -0000       1.1
  +++ XMLTeePipe.java   4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.sax;
   
   import org.apache.cocoon.xml.XMLConsumer;
  @@ -20,7 +67,7 @@
    * The incoming events are forwarded to two other components.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:13 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   
   public final class XMLTeePipe
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/saxconnector/LoggingSAXConnector.java
  
  Index: LoggingSAXConnector.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/saxconnector/LoggingSAXConnector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LoggingSAXConnector.java  3 Jan 2002 12:31:13 -0000       1.1
  +++ LoggingSAXConnector.java  4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.saxconnector;
   
   import org.apache.avalon.framework.parameters.Parameters;
  @@ -27,7 +74,7 @@
   /**
    * This SAX connector logs all intermediate sax streams to the log.
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:13 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   public class LoggingSAXConnector
   extends AbstractXMLPipe
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/saxconnector/SAXConnector.java
  
  Index: SAXConnector.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/saxconnector/SAXConnector.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SAXConnector.java 3 Jan 2002 12:31:13 -0000       1.1
  +++ SAXConnector.java 4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.saxconnector;
   
   import org.apache.avalon.framework.component.Component;
  @@ -14,7 +61,7 @@
   /**
    * Provides a connection between SAX components.
    * @author <a href="mailto:[EMAIL PROTECTED]">Paul Russell</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:13 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:15 $
    */
   public interface SAXConnector extends XMLPipe, Component, 
SitemapModelComponent {
   
  
  
  
  1.3       +53 -6     
xml-cocoon2/src/java/org/apache/cocoon/components/search/IndexHelperField.java
  
  Index: IndexHelperField.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/search/IndexHelperField.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- IndexHelperField.java     25 Jan 2002 04:34:18 -0000      1.2
  +++ IndexHelperField.java     4 Feb 2002 09:40:15 -0000       1.3
  @@ -1,9 +1,56 @@
   /*
  - *  Copyright (C) The Apache Software Foundation. All rights reserved.       
 *
  - *  
------------------------------------------------------------------------- *
  - *  This software is published under the terms of the Apache Software 
License *
  - *  version 1.1, a copy of which has been included  with this distribution 
in *
  - *  the LICENSE file.                                                        
 *
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.cocoon.components.search;
   import org.apache.lucene.document.DateField;
  @@ -24,7 +71,7 @@
    * A helper class for generating a lucene document in a SAX ContentHandler.
    *
    * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  - * @version    CVS $Id: IndexHelperField.java,v 1.2 2002/01/25 04:34:18 
vgritsenko Exp $
  + * @version    CVS $Id: IndexHelperField.java,v 1.3 2002/02/04 09:40:15 
cziegeler Exp $
    */
   class IndexHelperField
   {
  
  
  
  1.3       +53 -6     
xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneCocoonHelper.java
  
  Index: LuceneCocoonHelper.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneCocoonHelper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LuceneCocoonHelper.java   23 Jan 2002 19:06:38 -0000      1.2
  +++ LuceneCocoonHelper.java   4 Feb 2002 09:40:15 -0000       1.3
  @@ -1,9 +1,56 @@
   /*
  - *  Copyright (C) The Apache Software Foundation. All rights reserved.       
 *
  - *  
------------------------------------------------------------------------- *
  - *  This software is published under the terms of the Apache Software 
License *
  - *  version 1.1, a copy of which has been included  with this distribution 
in *
  - *  the LICENSE file.                                                        
 *
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.cocoon.components.search;
   
  @@ -20,7 +67,7 @@
    * This class encapsulates some helper methods.
    *
    * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  - * @version    CVS $Id: LuceneCocoonHelper.java,v 1.2 2002/01/23 19:06:38 
vgritsenko Exp $
  + * @version    CVS $Id: LuceneCocoonHelper.java,v 1.3 2002/02/04 09:40:15 
cziegeler Exp $
    */
   public class LuceneCocoonHelper
   {
  
  
  
  1.3       +53 -6     
xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneCocoonIndexer.java
  
  Index: LuceneCocoonIndexer.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneCocoonIndexer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LuceneCocoonIndexer.java  23 Jan 2002 19:06:38 -0000      1.2
  +++ LuceneCocoonIndexer.java  4 Feb 2002 09:40:15 -0000       1.3
  @@ -1,9 +1,56 @@
   /*
  - *  Copyright (C) The Apache Software Foundation. All rights reserved.       
 *
  - *  
------------------------------------------------------------------------- *
  - *  This software is published under the terms of the Apache Software 
License *
  - *  version 1.1, a copy of which has been included  with this distribution 
in *
  - *  the LICENSE file.                                                        
 *
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.cocoon.components.search;
   
  @@ -19,7 +66,7 @@
    * The avalon behavioural component interface of an indexer.
    *
    * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  - * @version    CVS $Id: LuceneCocoonIndexer.java,v 1.2 2002/01/23 19:06:38 
vgritsenko Exp $
  + * @version    CVS $Id: LuceneCocoonIndexer.java,v 1.3 2002/02/04 09:40:15 
cziegeler Exp $
    */
   public interface LuceneCocoonIndexer extends Component
   {
  
  
  
  1.3       +54 -7     
xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneCocoonPager.java
  
  Index: LuceneCocoonPager.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneCocoonPager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LuceneCocoonPager.java    23 Jan 2002 19:06:38 -0000      1.2
  +++ LuceneCocoonPager.java    4 Feb 2002 09:40:15 -0000       1.3
  @@ -1,9 +1,56 @@
   /*
  - *  Copyright (C) The Apache Software Foundation. All rights reserved.       
 *
  - *  
------------------------------------------------------------------------- *
  - *  This software is published under the terms of the Apache Software 
License *
  - *  version 1.1, a copy of which has been included  with this distribution 
in *
  - *  the LICENSE file.                                                        
 *
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.cocoon.components.search;
   
  @@ -21,7 +68,7 @@
    * This class should help you to manage paging of hits.
    *
    * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  - * @version    CVS $Id: LuceneCocoonPager.java,v 1.2 2002/01/23 19:06:38 
vgritsenko Exp $
  + * @version    CVS $Id: LuceneCocoonPager.java,v 1.3 2002/02/04 09:40:15 
cziegeler Exp $
    */
   public class LuceneCocoonPager implements ListIterator
   {
  @@ -310,7 +357,7 @@
        * A helper class encapsulating found document, and its score
        *
        * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  -     * @version    CVS $Id: LuceneCocoonPager.java,v 1.2 2002/01/23 19:06:38 
vgritsenko Exp $
  +     * @version    CVS $Id: LuceneCocoonPager.java,v 1.3 2002/02/04 09:40:15 
cziegeler Exp $
        */
       public static class HitWrapper
       {
  
  
  
  1.2       +56 -9     
xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneCocoonSearcher.java
  
  Index: LuceneCocoonSearcher.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneCocoonSearcher.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LuceneCocoonSearcher.java 3 Jan 2002 12:31:13 -0000       1.1
  +++ LuceneCocoonSearcher.java 4 Feb 2002 09:40:15 -0000       1.2
  @@ -1,9 +1,56 @@
   /*
  - *  Copyright (C) The Apache Software Foundation. All rights reserved.       
 *
  - *  
------------------------------------------------------------------------- *
  - *  This software is published under the terms of the Apache Software 
License *
  - *  version 1.1, a copy of which has been included  with this distribution 
in *
  - *  the LICENSE file.                                                        
 *
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.cocoon.components.search;
   
  @@ -22,15 +69,15 @@
    * </p>
    *
    * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  - * @version    CVS $Id: LuceneCocoonSearcher.java,v 1.1 2002/01/03 12:31:13 
giacomo Exp $
  + * @version    CVS $Id: LuceneCocoonSearcher.java,v 1.2 2002/02/04 09:40:15 
cziegeler Exp $
    */
   public interface LuceneCocoonSearcher extends Component
   {
       /**
        * The ROLE name of this avalon component.
        * <p>
  -     *   Its value if the FQN of this interface, 
  -     *   ie. 
<code>org.apache.cocoon.components.search.LuceneCocoonSearcher</code>. 
  +     *   Its value if the FQN of this interface,
  +     *   ie. 
<code>org.apache.cocoon.components.search.LuceneCocoonSearcher</code>.
        * </p>
        *
        * @since
  @@ -58,7 +105,7 @@
       /**
        * Sets the directory attribute of the LuceneCocoonSearcher object
        * <p>
  -     *   The directory specifies the directory used for looking up the 
  +     *   The directory specifies the directory used for looking up the
        *   index. It defines the physical place of the index
        * </p>
        *
  
  
  
  1.4       +53 -6     
xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneIndexContentHandler.java
  
  Index: LuceneIndexContentHandler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneIndexContentHandler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LuceneIndexContentHandler.java    25 Jan 2002 04:34:18 -0000      1.3
  +++ LuceneIndexContentHandler.java    4 Feb 2002 09:40:15 -0000       1.4
  @@ -1,9 +1,56 @@
   /*
  - *  Copyright (C) The Apache Software Foundation. All rights reserved.       
 *
  - *  
------------------------------------------------------------------------- *
  - *  This software is published under the terms of the Apache Software 
License *
  - *  version 1.1, a copy of which has been included  with this distribution 
in *
  - *  the LICENSE file.                                                        
 *
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.cocoon.components.search;
   
  @@ -27,7 +74,7 @@
    * Parse XML and generate lucene document(s)
    *
    * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  - * @version    CVS $Id: LuceneIndexContentHandler.java,v 1.3 2002/01/25 
04:34:18 vgritsenko Exp $
  + * @version    CVS $Id: LuceneIndexContentHandler.java,v 1.4 2002/02/04 
09:40:15 cziegeler Exp $
    */
   public class LuceneIndexContentHandler implements ContentHandler
   {
  
  
  
  1.4       +56 -9     
xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneXMLIndexer.java
  
  Index: LuceneXMLIndexer.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/search/LuceneXMLIndexer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LuceneXMLIndexer.java     25 Jan 2002 04:34:18 -0000      1.3
  +++ LuceneXMLIndexer.java     4 Feb 2002 09:40:15 -0000       1.4
  @@ -1,9 +1,56 @@
  -/**
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.cocoon.components.search;
   
  @@ -34,7 +81,7 @@
    * </p>
    *
    * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  - * @version    CVS $Id: LuceneXMLIndexer.java,v 1.3 2002/01/25 04:34:18 
vgritsenko Exp $
  + * @version    CVS $Id: LuceneXMLIndexer.java,v 1.4 2002/02/04 09:40:15 
cziegeler Exp $
    */
   public interface LuceneXMLIndexer extends Component
   {
  @@ -42,8 +89,8 @@
       /**
        * The ROLE name of this avalon component.
        * <p>
  -     *   Its value if the FQN of this interface, 
  -     *   ie. 
<code>org.apache.cocoon.components.search.LuceneXMLIndexer</code>. 
  +     *   Its value if the FQN of this interface,
  +     *   ie. 
<code>org.apache.cocoon.components.search.LuceneXMLIndexer</code>.
        * </p>
        *
        * @since
  
  
  
  1.4       +53 -6     
xml-cocoon2/src/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java
  
  Index: SimpleLuceneCocoonIndexerImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/search/SimpleLuceneCocoonIndexerImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SimpleLuceneCocoonIndexerImpl.java        25 Jan 2002 04:34:18 -0000      
1.3
  +++ SimpleLuceneCocoonIndexerImpl.java        4 Feb 2002 09:40:16 -0000       
1.4
  @@ -1,9 +1,56 @@
   /*
  - *  Copyright (C) The Apache Software Foundation. All rights reserved.       
 *
  - *  
------------------------------------------------------------------------- *
  - *  This software is published under the terms of the Apache Software 
License *
  - *  version 1.1, a copy of which has been included  with this distribution 
in *
  - *  the LICENSE file.                                                        
 *
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.cocoon.components.search;
   
  @@ -46,7 +93,7 @@
    * </p>
    *
    * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  - * @version    CVS $Revision: 1.3 $ $Date: 2002/01/25 04:34:18 $
  + * @version    CVS $Revision: 1.4 $ $Date: 2002/02/04 09:40:16 $
    */
   public class SimpleLuceneCocoonIndexerImpl extends AbstractLoggable
            implements LuceneCocoonIndexer, Configurable, Composable, Disposable
  
  
  
  1.3       +56 -9     
xml-cocoon2/src/java/org/apache/cocoon/components/search/SimpleLuceneCocoonSearcherImpl.java
  
  Index: SimpleLuceneCocoonSearcherImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/search/SimpleLuceneCocoonSearcherImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SimpleLuceneCocoonSearcherImpl.java       23 Jan 2002 19:06:38 -0000      
1.2
  +++ SimpleLuceneCocoonSearcherImpl.java       4 Feb 2002 09:40:16 -0000       
1.3
  @@ -1,9 +1,56 @@
   /*
  - *  Copyright (C) The Apache Software Foundation. All rights reserved.       
 *
  - *  
------------------------------------------------------------------------- *
  - *  This software is published under the terms of the Apache Software 
License *
  - *  version 1.1, a copy of which has been included  with this distribution 
in *
  - *  the LICENSE file.                                                        
 *
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.cocoon.components.search;
   import java.io.File;
  @@ -40,7 +87,7 @@
    *
    * <p>
    *   In order to do searching you need a lucene Directory where the lucene 
generated
  - *   index resides. 
  + *   index resides.
    *   Moreover you must know the lucene Analyzer which has been used for
    *   indexing, and which will be used for searching.
    * </p>
  @@ -54,7 +101,7 @@
    * </p>
    *
    * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  - * @version    CVS $Revision: 1.2 $ $Date: 2002/01/23 19:06:38 $
  + * @version    CVS $Revision: 1.3 $ $Date: 2002/02/04 09:40:16 $
    */
   public class SimpleLuceneCocoonSearcherImpl extends AbstractLoggable
            implements LuceneCocoonSearcher, Configurable, Composable, 
Disposable, Recyclable
  @@ -134,7 +181,7 @@
       /**
        * Configuration element default value of queryparser-classname.
        * <p>
  -     *   Its value is 
  +     *   Its value is
        *   <code>org.apache.lucene.queryParser.QueryParser</code>.
        * </p>
        *
  @@ -168,7 +215,7 @@
        * @since
        */
       protected ComponentManager manager = null;
  -    
  +
       private String analyzerClassnameDefault = ANALYZER_CLASSNAME_DEFAULT;
       private String defaultSearchFieldDefault = DEFAULT_SEARCH_FIELD_DEFAULT;
       private String defaultQueryDefault = DEFAULT_QUERY_DEFAULT;
  
  
  
  1.4       +53 -6     
xml-cocoon2/src/java/org/apache/cocoon/components/search/SimpleLuceneXMLIndexerImpl.java
  
  Index: SimpleLuceneXMLIndexerImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/search/SimpleLuceneXMLIndexerImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SimpleLuceneXMLIndexerImpl.java   25 Jan 2002 04:34:18 -0000      1.3
  +++ SimpleLuceneXMLIndexerImpl.java   4 Feb 2002 09:40:16 -0000       1.4
  @@ -1,9 +1,56 @@
   /*
  - *  Copyright (C) The Apache Software Foundation. All rights reserved.       
 *
  - *  
------------------------------------------------------------------------- *
  - *  This software is published under the terms of the Apache Software 
License *
  - *  version 1.1, a copy of which has been included  with this distribution 
in *
  - *  the LICENSE file.                                                        
 *
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package org.apache.cocoon.components.search;
   
  @@ -54,7 +101,7 @@
    * A simple class building lucene documents from xml content.
    *
    * @author     <a href="mailto:[EMAIL PROTECTED]">Bernhard Huber</a>
  - * @version    CVS $Revision: 1.3 $ $Date: 2002/01/25 04:34:18 $
  + * @version    CVS $Revision: 1.4 $ $Date: 2002/02/04 09:40:16 $
    */
   public class SimpleLuceneXMLIndexerImpl extends AbstractLoggable
            implements LuceneXMLIndexer, Configurable, Composable, ThreadSafe
  
  
  
  1.4       +65 -20    
xml-cocoon2/src/java/org/apache/cocoon/components/source/AbstractSAXSource.java
  
  Index: AbstractSAXSource.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/AbstractSAXSource.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractSAXSource.java    25 Jan 2002 03:41:13 -0000      1.3
  +++ AbstractSAXSource.java    4 Feb 2002 09:40:16 -0000       1.4
  @@ -1,12 +1,57 @@
  -
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  -
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.source;
   
   import org.apache.avalon.framework.component.ComponentException;
  @@ -39,7 +84,7 @@
    * obtain a valid Source implementation.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Gianugo Rabellino</a>
  - * @version $Id: AbstractSAXSource.java,v 1.3 2002/01/25 03:41:13 vgritsenko 
Exp $
  + * @version $Id: AbstractSAXSource.java,v 1.4 2002/02/04 09:40:16 cziegeler 
Exp $
    */
   
   public abstract class AbstractSAXSource
  @@ -53,13 +98,13 @@
   
       /**
        * The constructor.
  -     * 
  +     *
        * @param environment the Cocoon Environment.
        * @param manager an Avalon Component Manager
        * @param logger A LogKit logger
        */
  -    
  -    public AbstractSAXSource(Environment environment, 
  +
  +    public AbstractSAXSource(Environment environment,
                          ComponentManager manager,
                          Logger logger) {
         this.log = logger;
  @@ -72,8 +117,8 @@
        * from SitemapSource.
        *
        */
  -    
  -    public InputStream getInputStream() 
  +
  +    public InputStream getInputStream()
         throws ProcessingException, IOException {
   
           ComponentSelector serializerSelector = null;
  @@ -98,7 +143,7 @@
               if (serializer != null) serializerSelector.release(serializer);
               if (serializerSelector != null) 
this.manager.release(serializerSelector);
           }
  -    } 
  +    }
   
       /**
        * Get an InputSource for the given URL.
  @@ -111,18 +156,18 @@
         is.setSystemId(this.getSystemId());
   
         return is;
  -    }  
  +    }
   
       /**
        * Implement this method to obtain SAX events.
        *
        */
   
  -    public abstract void toSAX(ContentHandler handler) 
  -      throws SAXException, ProcessingException; 
  +    public abstract void toSAX(ContentHandler handler)
  +      throws SAXException, ProcessingException;
   
       /**
  -     * Implement this method to set the unique identifier. 
  +     * Implement this method to set the unique identifier.
        *
        */
   
  
  
  
  1.2       +55 -9     
xml-cocoon2/src/java/org/apache/cocoon/components/source/CocoonSourceFactory.java
  
  Index: CocoonSourceFactory.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/CocoonSourceFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CocoonSourceFactory.java  3 Jan 2002 12:31:14 -0000       1.1
  +++ CocoonSourceFactory.java  4 Feb 2002 09:40:16 -0000       1.2
  @@ -1,11 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  -
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.source;
   
   import org.apache.avalon.framework.component.ComponentManager;
  @@ -25,7 +71,7 @@
    * as it needs the current <code>Sitemap</code> as input.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:14 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/04 09:40:16 $
    */
   
   public final class CocoonSourceFactory
  
  
  
  1.2       +68 -21    
xml-cocoon2/src/java/org/apache/cocoon/components/source/DelayedRefreshSourceWrapper.java
  
  Index: DelayedRefreshSourceWrapper.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/DelayedRefreshSourceWrapper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DelayedRefreshSourceWrapper.java  3 Jan 2002 12:31:14 -0000       1.1
  +++ DelayedRefreshSourceWrapper.java  4 Feb 2002 09:40:16 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.source;
   
   import org.apache.cocoon.environment.Source;
  @@ -23,25 +70,25 @@
    * <code>Source.getLastModified()</code> which can be a costly operation.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Sylvain Wallez</a>
  - * @version $Id: DelayedRefreshSourceWrapper.java,v 1.1 2002/01/03 12:31:14 
giacomo Exp $
  + * @version $Id: DelayedRefreshSourceWrapper.java,v 1.2 2002/02/04 09:40:16 
cziegeler Exp $
    */
   public final class DelayedRefreshSourceWrapper implements Source, 
ModifiableSource, XMLizable {
  -    
  +
       private Source source;
  -    
  +
       private long delay;
  -    
  +
       private long nextCheckTime = 0;
  -    
  +
       private long lastModified = 0;
  -    
  +
       private boolean isModifiableSource;
  -    
  +
       /**
        * Creates a wrapper for a <code>Source</code> which ensures that
        * <code>Source.getLastModified()</code> won't be called more than once 
per
        * <code>delay</code> milliseconds period.
  -     * 
  +     *
        * @param source the wrapped <code>Source</code>
        * @param delay  the last-modified refresh delay, in milliseconds
        */
  @@ -50,7 +97,7 @@
           this.delay = delay;
           this.isModifiableSource = source instanceof ModifiableSource;
       }
  -    
  +
       /**
        * Get the last modification time for the wrapped <code>Source</code>. 
The
        * age of the returned information is guaranteed to be lower than or 
equal to
  @@ -59,13 +106,13 @@
        * @return the last modification time.
        */
       public final long getLastModified() {
  -        
  +
           // Do we have to refresh the source ?
           if (System.currentTimeMillis() >= nextCheckTime) {
               // Yes
               this.refresh();
           }
  -        
  +
           return this.lastModified;
       }
   
  @@ -74,17 +121,17 @@
        * isn't over, and starts a new period.
        */
       public final void refresh() {
  - 
  +
           this.nextCheckTime = System.currentTimeMillis() + this.delay;
           // Refresh modifiable sources
           if (this.isModifiableSource) {
               ((ModifiableSource)this.source).refresh();
           }
  -        
  +
           // Keep the last modified date
           this.lastModified = source.getLastModified();
       }
  -    
  +
       public final long getContentLength() {
           return this.source.getContentLength();
       }
  
  
  
  1.5       +59 -13    
xml-cocoon2/src/java/org/apache/cocoon/components/source/SitemapSource.java
  
  Index: SitemapSource.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/SitemapSource.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SitemapSource.java        1 Feb 2002 15:14:54 -0000       1.4
  +++ SitemapSource.java        4 Feb 2002 09:40:16 -0000       1.5
  @@ -1,11 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  -
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.source;
   
   import org.apache.avalon.framework.component.ComponentException;
  @@ -46,7 +92,7 @@
    * Description of a source which is defined by a pipeline.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.4 $ $Date: 2002/02/01 15:14:54 $
  + * @version CVS $Revision: 1.5 $ $Date: 2002/02/04 09:40:16 $
    */
   
   public final class SitemapSource
  @@ -139,7 +185,7 @@
           String requestURI = (this.prefix == null ? env.getURIPrefix() + uri 
: uri);
   
           // create system ID
  -        this.systemId = queryString == null ? 
  +        this.systemId = queryString == null ?
               "cocoon://" + requestURI :
               "cocoon://" + requestURI + "?" + queryString;
   
  @@ -180,17 +226,17 @@
           if (this.exception != null) {
               throw this.exception;
           }
  -        
  +
           if (this.redirectSource != null) {
               return this.redirectSource.getInputStream();
           }
  -        
  +
           try {
               ByteArrayOutputStream os = new ByteArrayOutputStream();
               this.environment.setOutputStream(os);
               this.pipeline.process(this.environment);
               return new ByteArrayInputStream(os.toByteArray());
  -            
  +
           } catch (ProcessingException e) {
               throw e;
           } catch (Exception e) {
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/source/SourceFactory.java
  
  Index: SourceFactory.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/SourceFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SourceFactory.java        3 Jan 2002 12:31:14 -0000       1.1
  +++ SourceFactory.java        4 Feb 2002 09:40:16 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.source;
   
   import org.apache.avalon.framework.thread.ThreadSafe;
  @@ -18,7 +65,7 @@
   
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version $Id: SourceFactory.java,v 1.1 2002/01/03 12:31:14 giacomo Exp $
  + * @version $Id: SourceFactory.java,v 1.2 2002/02/04 09:40:16 cziegeler Exp $
    */
   public interface SourceFactory extends ThreadSafe {
   
  
  
  
  1.2       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/source/SourceHandler.java
  
  Index: SourceHandler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/SourceHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SourceHandler.java        3 Jan 2002 12:31:14 -0000       1.1
  +++ SourceHandler.java        4 Feb 2002 09:40:16 -0000       1.2
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.source;
   
   import org.apache.avalon.framework.component.Component;
  @@ -18,7 +65,7 @@
   
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version $Id: SourceHandler.java,v 1.1 2002/01/03 12:31:14 giacomo Exp $
  + * @version $Id: SourceHandler.java,v 1.2 2002/02/04 09:40:16 cziegeler Exp $
    */
   public interface SourceHandler extends Component {
   
  
  
  
  1.4       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/source/SourceHandlerImpl.java
  
  Index: SourceHandlerImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/SourceHandlerImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SourceHandlerImpl.java    1 Feb 2002 15:48:09 -0000       1.3
  +++ SourceHandlerImpl.java    4 Feb 2002 09:40:16 -0000       1.4
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.source;
   
   import org.apache.avalon.framework.activity.Disposable;
  @@ -36,7 +83,7 @@
   
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version $Id: SourceHandlerImpl.java,v 1.3 2002/02/01 15:48:09 sylvain 
Exp $
  + * @version $Id: SourceHandlerImpl.java,v 1.4 2002/02/04 09:40:16 cziegeler 
Exp $
    */
   public final class SourceHandlerImpl
   extends AbstractLoggable
  
  
  
  1.3       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/source/URLSource.java
  
  Index: URLSource.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/URLSource.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- URLSource.java    22 Jan 2002 00:17:12 -0000      1.2
  +++ URLSource.java    4 Feb 2002 09:40:16 -0000       1.3
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   
   package org.apache.cocoon.components.source;
   
  @@ -32,7 +79,7 @@
    * Description of a source which is described by an URL.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.2 $ $Date: 2002/01/22 00:17:12 $
  + * @version CVS $Revision: 1.3 $ $Date: 2002/02/04 09:40:16 $
    */
   
   public class URLSource implements ModifiableSource {
  
  
  
  1.5       +55 -8     
xml-cocoon2/src/java/org/apache/cocoon/components/source/XMLDBSource.java
  
  Index: XMLDBSource.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/XMLDBSource.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XMLDBSource.java  15 Jan 2002 11:10:52 -0000      1.4
  +++ XMLDBSource.java  4 Feb 2002 09:40:16 -0000       1.5
  @@ -1,10 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.source;
   
   import org.apache.avalon.framework.component.ComponentException;
  @@ -48,7 +95,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Gianugo Rabellino</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Vadim Gritsenko</a>
  - * @version $Id: XMLDBSource.java,v 1.4 2002/01/15 11:10:52 sylvain Exp $
  + * @version $Id: XMLDBSource.java,v 1.5 2002/02/04 09:40:16 cziegeler Exp $
    */
   public class XMLDBSource extends AbstractSAXSource {
   
  
  
  
  1.2       +63 -17    
xml-cocoon2/src/java/org/apache/cocoon/components/source/XMLDBSourceFactory.java
  
  Index: XMLDBSourceFactory.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/XMLDBSourceFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XMLDBSourceFactory.java   3 Jan 2002 12:31:14 -0000       1.1
  +++ XMLDBSourceFactory.java   4 Feb 2002 09:40:16 -0000       1.2
  @@ -1,11 +1,57 @@
  
-/*****************************************************************************
  - * Copyright (C) The Apache Software Foundation. All rights reserved.        
*
  - * ------------------------------------------------------------------------- 
*
  - * This software is published under the terms of the Apache Software License 
*
  - * version 1.1, a copy of which has been included  with this distribution in 
*
  - * the LICENSE file.                                                         
*
  - 
*****************************************************************************/
  -
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache Cocoon" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written
  + *    permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
   package org.apache.cocoon.components.source;
   
   import org.apache.avalon.framework.component.ComponentManager;
  @@ -49,8 +95,8 @@
   
       /**
        * Configure the instance.
  -     */ 
  -    public void configure(final Configuration conf) 
  +     */
  +    public void configure(final Configuration conf)
         throws ConfigurationException {
   
         if (conf != null) {
  @@ -71,10 +117,10 @@
       }
   
       /**
  -     * Compose this Composable object. We need to pass on the 
  +     * Compose this Composable object. We need to pass on the
        * ComponentManager to the actual Source.
        */
  -    
  +
       public void compose(ComponentManager cm) {
         this.m_manager = cm;
       }
  @@ -91,11 +137,11 @@
         if (start == -1 || end == -1) {
           if (this.getLogger().isWarnEnabled()) {
           this.getLogger().warn("Mispelled XML:DB URL. " +
  -          "The syntax is 
\"xmldb:databasetype://host/collection/resource\""); 
  +          "The syntax is \"xmldb:databasetype://host/collection/resource\"");
           throw new MalformedURLException("Mispelled XML:DB URL. " +
  -          "The syntax is 
\"xmldb:databasetype://host/collection/resource\""); 
  -        }  
  -      }    
  +          "The syntax is \"xmldb:databasetype://host/collection/resource\"");
  +        }
  +      }
   
         String type = location.substring(start, end);
   
  @@ -106,7 +152,7 @@
             type + " \" database type, please check the configuration");
           throw new ProcessingException("Unable to find a driver for the \"" +
             type + " \" database type, please check the configuration");
  -      }    
  +      }
   
         return new XMLDBSource(environment, m_manager, this.getLogger(),
           driver, location);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to