cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r690247 - /cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java
Date Fri, 29 Aug 2008 13:11:09 GMT
Author: reinhard
Date: Fri Aug 29 06:11:09 2008
New Revision: 690247

URL: http://svn.apache.org/viewvc?rev=690247&view=rev
Log:
tidy up

Modified:
    cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java

Modified: cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java?rev=690247&r1=690246&r2=690247&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java
(original)
+++ cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java
Fri Aug 29 06:11:09 2008
@@ -124,7 +124,7 @@
             }
 
             // set the X-Cocoon-Version header
-            this.setVersionHeader(response);
+            response.setHeader("X-Cocoon-Version", this.version);
 
             // conditional request support
             long ifLastModifiedSince = request.getDateHeader("If-Modified-Since");
@@ -170,13 +170,6 @@
         }
     }
 
-    private void setVersionHeader(HttpServletResponse response) {
-        if (this.version == null) {
-
-        }
-        response.setHeader("X-Cocoon-Version", this.version);
-    }
-
     // FIXME After renaming Corona to Cocoon3, read the version from the manifest
     // FIXME Make this header configureable
     private void initVersionNumber() {



Mime
View raw message