/[Apache-SVN]/cocoon/trunk/src/java/org/apache/cocoon/generation/LinkStatusGenerator.java
ViewVC logotype

Diff of /cocoon/trunk/src/java/org/apache/cocoon/generation/LinkStatusGenerator.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- cocoon/trunk/src/java/org/apache/cocoon/generation/LinkStatusGenerator.java	2005/04/26 16:42:48	164814
+++ cocoon/trunk/src/java/org/apache/cocoon/generation/LinkStatusGenerator.java	2005/04/26 16:43:13	164815
@@ -1,12 +1,12 @@
 /*
- * Copyright 1999-2004 The Apache Software Foundation.
- * 
+ * Copyright 1999-2005 The Apache Software Foundation.
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -55,9 +55,11 @@ import java.util.ArrayList;
  * @author Michael Homeijer
  * @author Nicola Ken Barozzi (nicolaken@apache.org)
  * @author Bernhard Huber (huber@apache.org)
- * @version CVS $Id: LinkStatusGenerator.java,v 1.10 2004/05/26 14:11:34 cziegeler Exp $
+ * @version $Id$
  */
-public class LinkStatusGenerator extends ServiceableGenerator implements Recyclable, Configurable {
+public class LinkStatusGenerator extends ServiceableGenerator
+                                 implements Recyclable, Configurable {
+
     /** The URI of the namespace of this generator. */
     protected static final String URI =
             "http://apache.org/cocoon/linkstatus/2.0";
@@ -75,7 +77,7 @@ public class LinkStatusGenerator extends
     protected static final String STATUS_ATTR_NAME = "status";
     protected static final String MESSAGE_ATTR_NAME = "message";
 
-    protected AttributesImpl attributes = new AttributesImpl();
+    protected AttributesImpl attributes;
 
     /**
      * Config element name specifying expected link content-typ.
@@ -312,7 +314,7 @@ public class LinkStatusGenerator extends
     }
 
     public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par)
-            throws ProcessingException, SAXException, IOException {
+    throws ProcessingException, SAXException, IOException {
 
         super.setup(resolver, objectModel, src, par);
 
@@ -333,7 +335,7 @@ public class LinkStatusGenerator extends
      *      if the requsted URI wasn't found
      */
     public void generate()
-            throws SAXException, ProcessingException {
+    throws SAXException, ProcessingException {
         try {
 
             crawled = new HashSet();
@@ -656,6 +658,5 @@ public class LinkStatusGenerator extends
         super.recycle();
 
         this.attributes = null;
-        //this.excludeCrawlingURL = null;
     }
 }

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26