You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/12/21 12:08:03 UTC

cvs commit: xml-cocoon2/src/org/apache/cocoon/components/source SitemapSource.java

cziegeler    01/12/21 03:08:02

  Modified:    src/org/apache/cocoon/components/source Tag:
                        cocoon_20_branch SitemapSource.java
  Log:
  Fixing system id generation
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.24  +5 -4      xml-cocoon2/src/org/apache/cocoon/components/source/SitemapSource.java
  
  Index: SitemapSource.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/source/SitemapSource.java,v
  retrieving revision 1.1.2.23
  retrieving revision 1.1.2.24
  diff -u -r1.1.2.23 -r1.1.2.24
  --- SitemapSource.java	2001/10/25 19:31:25	1.1.2.23
  +++ SitemapSource.java	2001/12/21 11:08:02	1.1.2.24
  @@ -46,7 +46,7 @@
    * Description of a source which is defined by a pipeline.
    *
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.1.2.23 $ $Date: 2001/10/25 19:31:25 $
  + * @version CVS $Revision: 1.1.2.24 $ $Date: 2001/12/21 11:08:02 $
    */
   
   public final class SitemapSource
  @@ -139,15 +139,16 @@
                           .append(request.getServerName());
           
           if ( ! isDefaultPort ) {
  -            sysID.append(":").append(request.getServerPort());
  +            sysID.append(':').append(request.getServerPort());
           }
           sysID.append(request.getContextPath()).append('/').append(requestURI);
  -        this.systemId = sysID.toString();
  -        this.environment = new EnvironmentWrapper(env, requestURI, queryString, logger);
           queryStringPos = uri.indexOf('?');
           if (queryStringPos != -1) {
               uri = uri.substring(0, queryStringPos);
  +            sysID.append('?').append(queryString);
           }
  +        this.systemId = sysID.toString();
  +        this.environment = new EnvironmentWrapper(env, requestURI, queryString, logger);
           this.uri = uri;
           this.refresh();
       }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org