Diff of /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/LinkStatusGenerator.java
Parent Directory
| Revision Log
| Patch
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/LinkStatusGenerator.java 2005/04/26 16:05:12 164807
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/LinkStatusGenerator.java 2005/04/26 16:07:03 164808
@@ -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$
+ * @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;
}
}