You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2005/09/09 09:25:01 UTC

svn commit: r279723 [5/7] - in /webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS: ./ Aggregator/ Aggregator/conf/ Aggregator/src/ Aggregator/src/org/ Aggregator/src/org/apache/ Aggregator/src/org/apache/axis2/ Aggregator/src/org/apache/axis2...

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSImageElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSImageElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSImageElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSImageElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,115 @@
+package org.apache.axis2.feed.feedmodel.rss.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.feedmodel.rss.Constants;
+import org.apache.axis2.feed.feedmodel.rss.ImageElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+public class RSSImageElement implements ImageElement {
+
+    private URL url;
+    private URL link;
+    private String title;
+
+    private String description = null;
+    private Integer height = null;
+    private Integer width = null;
+
+    public RSSImageElement(URL link, String title, URL url) {
+        this.link = link;
+        this.url = url;
+        this.title = title;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.IMAGE_TITLE_STRING, Constants.RSS_NAMESPACE_URI);
+        streamWriter.writeCharacters(title);
+        streamWriter.writeEndElement();
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.IMAGE_LINK_STRING, Constants.RSS_NAMESPACE_URI);
+        streamWriter.writeCharacters(link.toString());
+        streamWriter.writeEndElement();
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.IMAGE_URL_STRING, Constants.RSS_NAMESPACE_URI);
+        streamWriter.writeCharacters(url.toString());
+        streamWriter.writeEndElement();
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.IMAGE_WIDTH_STRING, Constants.RSS_NAMESPACE_URI);
+        if (width != null)
+            streamWriter.writeCharacters((width).toString());
+        streamWriter.writeEndElement();
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.IMAGE_HEIGHT_STRING, Constants.RSS_NAMESPACE_URI);
+        if (height != null)
+            streamWriter.writeCharacters(height.toString());
+        streamWriter.writeEndElement();
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.IMAGE__DESCRIPTION_STRING, Constants.RSS_NAMESPACE_URI);
+        if (description != null)
+            streamWriter.writeEndElement();
+        streamWriter.writeCharacters(description);
+
+    }
+
+    public URL getUrl() {
+        return url;
+    }
+
+    public void setUrl(URL url) {
+        this.url = url;
+    }
+
+    public URL getLink() {
+        return link;
+    }
+
+    public void setLink(URL link) {
+        this.link = link;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+
+    public Integer getHeight() {
+        return height;
+    }
+
+    public void setHeight(Integer height) {
+        this.height = height;
+    }
+
+    public Integer getWidth() {
+        return width;
+    }
+
+    public void setWidth(Integer width) {
+        this.width = width;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSItem.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSItem.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSItem.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSItem.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,178 @@
+package org.apache.axis2.feed.feedmodel.rss.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.feedmodel.rss.*;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+
+public class RSSItem implements Item {
+
+    private String title = null;
+    private URL link = null;
+    private String description = "";
+    private SourceElement sourceElement = null;
+    private EnclosureElement enclosureElement = null;
+    private GuidElement guidElement = null;
+    private PubDate pubDate = null;
+    private CategoryElement categoryElement = null;
+    private boolean isUpadate = false;
+    private boolean isEnable = false;
+
+
+    public boolean isUpadate() {
+        return isUpadate;
+    }
+
+    public void setUpadate(boolean upadate) {
+        isUpadate = upadate;
+    }
+
+    public RSSItem() {
+    }
+
+    public RSSItem(String title, URL link, String description) {
+        this.title = title;
+        this.link = link;
+        this.description = description;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public URL getLink() {
+        return link;
+    }
+
+    public void setLink(URL link) {
+        this.link = link;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.ITEM_NAME, Constants.RSS_NAMESPACE_URI);
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.ITEM_TITLE_STRING, Constants.RSS_NAMESPACE_URI);
+        if (title != null)
+            streamWriter.writeCharacters(title);
+        streamWriter.writeEndElement();
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.ITEM_LINK_STRING, Constants.RSS_NAMESPACE_URI);
+        if (link != null)
+            streamWriter.writeCharacters(link.toString());
+        streamWriter.writeEndElement();
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.ITEM_DESCRIPTON_STRING, Constants.RSS_NAMESPACE_URI);
+        if (description != null)
+            streamWriter.writeCharacters(description);
+        streamWriter.writeEndElement();
+        if (enclosureElement != null)
+            enclosureElement.serialize(streamWriter);
+
+        if (sourceElement != null)
+            sourceElement.serialize(streamWriter);
+
+        if (pubDate != null)
+            pubDate.serialize(streamWriter);
+        if (guidElement != null)
+            guidElement.serialize(streamWriter);
+        if (categoryElement != null)
+            categoryElement.serialize(streamWriter);
+        streamWriter.writeEndElement();
+    }
+
+    public void addSourceElement(SourceElement sourceElement) {
+        this.sourceElement = sourceElement;
+    }
+
+    public void addEnclosureElement(EnclosureElement enclosureElement) {
+        this.enclosureElement = enclosureElement;
+    }
+
+    public void addGuidElement(GuidElement guidElement) {
+        this.guidElement = guidElement;
+
+    }
+
+    public void addPubDate(PubDate pubDate) {
+        this.pubDate = pubDate;
+    }
+
+    public void addCategoryElement(CategoryElement categoryElement) {
+        this.categoryElement = categoryElement;
+    }
+
+    public EnclosureElement getEnclosureElement() {
+        return enclosureElement;
+    }
+
+    public GuidElement getGuidElement() {
+        return guidElement;
+    }
+
+    public PubDate getPubDate() {
+        return pubDate;
+    }
+
+    public SourceElement getSourceElement() {
+        return sourceElement;
+    }
+
+    public CategoryElement getCategoryElement() {
+        return categoryElement;
+    }
+
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof RSSItem)) return false;
+
+        final RSSItem rssItem = (RSSItem) o;
+
+        if (link != null ? !link.equals(rssItem.link) : rssItem.link != null) return false;
+        if (title != null ? !title.equals(rssItem.title) : rssItem.title != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        int result;
+        result = (title != null ? title.hashCode() : 0);
+        result = 29 * result + (link != null ? link.hashCode() : 0);
+        return result;
+    }
+
+    public boolean isEnable() {
+        return isEnable;
+    }
+
+    public void setEnable(boolean enable) {
+        isEnable = enable;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSLanguageElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSLanguageElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSLanguageElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSLanguageElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,63 @@
+package org.apache.axis2.feed.feedmodel.rss.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.feedmodel.rss.Constants;
+import org.apache.axis2.feed.feedmodel.rss.LanguageElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class RSSLanguageElement implements LanguageElement {
+    private String language = "en-us";
+
+    public RSSLanguageElement(String language) {
+
+        this.language = language;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.LANGUAGE_ELEMNT_NAME, Constants.RSS_NAMESPACE_URI);
+        if (language != null)
+            streamWriter.writeCharacters(language);
+        streamWriter.writeEndElement();
+    }
+
+    public String getLanguage() {
+        return language;
+    }
+
+    public void setLanguage(String language) {
+        this.language = language;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof RSSLanguageElement)) return false;
+
+        final RSSLanguageElement rssLanguageElement = (RSSLanguageElement) o;
+
+        if (language != null ? !language.equals(rssLanguageElement.language) : rssLanguageElement.language != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        return (language != null ? language.hashCode() : 0);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSManagingEditorElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSManagingEditorElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSManagingEditorElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSManagingEditorElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,46 @@
+package org.apache.axis2.feed.feedmodel.rss.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.feedmodel.rss.Constants;
+import org.apache.axis2.feed.feedmodel.rss.ManagingEditorElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+public class RSSManagingEditorElement implements ManagingEditorElement {
+    private String managingEditor = null;
+
+    public RSSManagingEditorElement(String managingEditor) {
+        this.managingEditor = managingEditor;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.MANAGINGEDITOR_ELEMNT_NAME, Constants.RSS_NAMESPACE_URI);
+        if (managingEditor != null)
+            streamWriter.writeCharacters(managingEditor);
+        streamWriter.writeEndElement();
+    }
+
+    public String getManagingEditor() {
+        return managingEditor;
+    }
+
+    public void setManagingEditor(String managingEditor) {
+        this.managingEditor = managingEditor;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSSourceElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSSourceElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSSourceElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSSourceElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,67 @@
+package org.apache.axis2.feed.feedmodel.rss.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.feedmodel.rss.Constants;
+import org.apache.axis2.feed.feedmodel.rss.SourceElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class RSSSourceElement implements SourceElement {
+
+    private String sourcename;
+    private String linkOfSource = null;
+
+    public RSSSourceElement(String sourcename) {
+        this.sourcename = sourcename;
+    }
+
+    public RSSSourceElement(String sourcename, String linkOfSource) {
+        this.sourcename = sourcename;
+        this.linkOfSource = linkOfSource;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.SOURCE_NAME, Constants.RSS_NAMESPACE_URI);
+        if (linkOfSource != null)
+            streamWriter.writeAttribute(Constants.RSS_PREFIX, "url", linkOfSource);
+
+        if (sourcename != null)
+            streamWriter.writeCharacters(sourcename);
+        streamWriter.writeEndElement();
+    }
+
+    public String getSourcename() {
+        return sourcename;
+    }
+
+    public void setSourcename(String sourcename) {
+        this.sourcename = sourcename;
+    }
+
+    public String getLinkOfSource() {
+        return linkOfSource;
+    }
+
+    public void setLinkOfSource(String linkOfSource) {
+        this.linkOfSource = linkOfSource;
+    }
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSTextInputElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSTextInputElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSTextInputElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSTextInputElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,77 @@
+package org.apache.axis2.feed.feedmodel.rss.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.feedmodel.rss.TextInputElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+
+public class RSSTextInputElement implements TextInputElement {
+
+    private String title;
+    private String description;
+    private String name;
+    private URL link;
+
+    public RSSTextInputElement(String title, String description, String name, URL link) {
+        this.title = title;
+        this.description = description;
+        this.name = name;
+        this.link = link;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public URL getLink() {
+        return link;
+    }
+
+    public void setLink(URL link) {
+        this.link = link;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+
+    }
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSTtlElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSTtlElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSTtlElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSTtlElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,47 @@
+package org.apache.axis2.feed.feedmodel.rss.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.feedmodel.rss.Constants;
+import org.apache.axis2.feed.feedmodel.rss.TtlElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class RSSTtlElement implements TtlElement {
+    private int ttl = 0;
+
+    public RSSTtlElement(int ttl) {
+        this.ttl = ttl;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.TTL_ELEMENT_NAME, Constants.RSS_NAMESPACE_URI);
+        if (new Integer(ttl) != null)
+            streamWriter.writeCharacters(new Integer(ttl).toString());
+        streamWriter.writeEndElement();
+    }
+
+    public int getTtl() {
+        return ttl;
+    }
+
+    public void setTtl(int ttl) {
+        this.ttl = ttl;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSWebMasterElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSWebMasterElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSWebMasterElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSWebMasterElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,47 @@
+package org.apache.axis2.feed.feedmodel.rss.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.feedmodel.rss.Constants;
+import org.apache.axis2.feed.feedmodel.rss.WebMasterElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class RSSWebMasterElement implements WebMasterElement {
+    private String webMaster = null;
+
+    public RSSWebMasterElement(String webMaster) {
+        this.webMaster = webMaster;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.TTL_ELEMENT_NAME, Constants.RSS_NAMESPACE_URI);
+//        if (new Integer(webMaster) != null)
+        ///    streamWriter.writeCharacters(new Integer(webMaster).toString());
+        streamWriter.writeEndElement();
+    }
+
+    public String getWebMaster() {
+        return webMaster;
+    }
+
+    public void setWebMaster(String webMaster) {
+        this.webMaster = webMaster;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/util/impl/FeedContainerImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/util/impl/FeedContainerImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/util/impl/FeedContainerImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/util/impl/FeedContainerImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,44 @@
+package org.apache.axis2.feed.feedmodel.rss.util.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.feedmodel.Feed;
+import org.apache.axis2.feed.feedmodel.FeedContainer;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+
+
+public class FeedContainerImpl implements FeedContainer {
+    private ArrayList feedList;
+
+    public FeedContainerImpl() {
+    }
+
+    public void addFeed(Feed feed) {
+        feedList = new ArrayList();
+        feedList.add(feed);
+    }
+
+    public Iterator getFeedsIterator() {
+        return this.feedList.iterator();
+    }
+
+    public ArrayList getFeeds() {
+        return this.feedList;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/EPRlist.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/EPRlist.xml?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/EPRlist.xml (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/EPRlist.xml Fri Sep  9 00:22:16 2005
@@ -0,0 +1,5 @@
+<EPRlist>
+    <url href="http://127.0.0.1:8080/axis2/services/MyService/echo"></url>
+    <url href="http://127.0.0.1:8080/axis2/services/MyService/ping"></url>
+    <url href="http://127.0.0.1:8080/axis2/services/TestService/ping"></url>
+</EPRlist>
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/atom.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/atom.xml?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/atom.xml (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/atom.xml Fri Sep  9 00:22:16 2005
@@ -0,0 +1,16 @@
+<?xml version='1.0' encoding='utf-8'?>
+<feed xmlns:axis2atom="http://ws.apache.org/axis2/feed/atom/ns#" version="0.3">
+    <axis2atom:title>AXIS2 ATOM FEED CHANNEL </axis2atom:title>
+    <axis2atom:link rel="alternate" type="text/html" href="http://localhost:8080/axis2"/>
+    <axis2atom:modified>Fri Jul 22 15:51:55 PDT 2005</axis2atom:modified>
+    <axis2atom:author>
+        <axis2atom:name>axis 2</axis2atom:name>
+    </axis2atom:author>
+    <axis2atom:entry>
+        <axis2atom:title>entrytile</axis2atom:title>
+        <axis2atom:link rel="alternate" type="text/palin" href="http://localhost:8080/axis2/"></axis2atom:link>
+        <axis2atom:modified>Wed Jul 20 16:18:19 LKT 2005</axis2atom:modified>
+        <axis2atom:id>indika</axis2atom:id>
+        <axis2atom:issued>Wed Jul 20 16:18:19 LKT 2005</axis2atom:issued>
+    </axis2atom:entry>
+</feed>
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/feedlist.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/feedlist.xml?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/feedlist.xml (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/feedlist.xml Fri Sep  9 00:22:16 2005
@@ -0,0 +1,5 @@
+<feedlist>
+    <url href="http://media-cyber.law.harvard.edu/blogs/gems/tech/rss2sample.xml"></url>
+    <url href="http://media-cyber.law.harvard.edu/blogs/gssems/tech/rss2se.xml"></url>
+    <url href="http://media-cyber.law.harvard.edu/blogs/gems/tsssech/rss2sample.xml"></url>
+</feedlist>
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/rss.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/rss.xml?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/rss.xml (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/rss.xml Fri Sep  9 00:22:16 2005
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<!-- RSS generated by Radio UserLand v8.0.5 on Mon, 13 Oct 2003 18:54:10 GMT -->
+<rss version="2.0">
+    <channel>
+        <title>Dave&apos;s Handsome Radio Blog!</title>
+        <link>http://radio.weblogs.com/0001015/</link>
+        <description>A non-smoking weblog since June 14, 2002.</description>
+        <language>en-us</language>
+        <copyright>Copyright 2003 Dave Winer</copyright>
+        <lastBuildDate>Mon, 13 Oct 2003 18:54:10 GMT</lastBuildDate>
+        <docs>http://backend.userland.com/rss</docs>
+        <generator>Radio UserLand v8.0.5</generator>
+        <managingEditor>dave@userland.com</managingEditor>
+        <webMaster>dave@userland.com</webMaster>
+        <category domain="http://www.weblogs.com/rssUpdates/changes.xml">rssUpdates</category>
+        <skipHours>
+            <hour>0</hour>
+            <hour>23</hour>
+            <hour>1</hour>
+            <hour>2</hour>
+            <hour>3</hour>
+            <hour>22</hour>
+            <hour>17</hour>
+            <hour>11</hour>
+        </skipHours>
+        <cloud domain="radio.xmlstoragesystem.com" port="80" path="/RPC2" registerProcedure="xmlStorageSystem.rssPleaseNotify" protocol="xml-rpc"/>
+        <ttl>60</ttl>
+        <item>
+            <link>http://radio.weblogs.com/0001015/2003/10/13.html#a1866</link>
+            <description>&lt;A href=&quot;http://andrea.editthispage.com/&quot;&gt;&lt;IMG height=100 alt=&quot;A picture named andrea.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/13/andrea.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://andrea.editthispage.com/&quot;&gt;&lt;IMG height=100 alt=&quot;A picture named andrea.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/13/andrea.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://andrea.editthispage.com/&quot;&gt;&lt;IMG height=100 alt=&quot;A picture named andrea.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/13/andrea.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://andrea.editthispage.com/&quot;&gt;&lt;IMG height=100 alt=&quot;A picture named andrea.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/13/andrea.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://andrea.editthispage.com/&quot;&gt;&lt;IMG height=100 alt=&quot;A picture named andrea.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/13/andrea.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;</description>
+            <guid>http://radio.weblogs.com/0001015/2003/10/13.html#a1866</guid>
+            <pubDate>Mon, 13 Oct 2003 18:54:09 GMT</pubDate>
+            <comments>http://blogs.law.harvard.edu/comments?u=1015&amp;amp;p=1866&amp;amp;link=http%3A%2F%2Fradio.weblogs.com%2F0001015%2F2003%2F10%2F13.html%23a1866</comments>
+        </item>
+        <item>
+            <link>http://radio.weblogs.com/0001015/2003/10/12.html#a1865</link>
+            <description>&lt;A href=&quot;http://blogs.law.harvard.edu/crimson1/pictures/viewer$747&quot;&gt;&lt;IMG height=89 alt=&quot;A picture named cousinJoey.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/12/cousinJoey.jpg&quot; width=65 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://blogs.law.harvard.edu/crimson1/pictures/viewer$747&quot;&gt;&lt;IMG height=89 alt=&quot;A picture named cousinJoey.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/12/cousinJoey.jpg&quot; width=65 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://blogs.law.harvard.edu/crimson1/pictures/viewer$747&quot;&gt;&lt;IMG height=89 alt=&quot;A picture named cousinJoey.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/12/cousinJoey.jpg&quot; width=65 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://blogs.law.harvard.edu/crimson1/pictures/viewer$747&quot;&gt;&lt;IMG height=89 alt=&quot;A picture named cousinJoey.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/12/cousinJoey.jpg&quot; width=65 align=right vspace=5 border=0&gt;&lt;/A&gt;</description>
+            <guid>http://radio.weblogs.com/0001015/2003/10/12.html#a1865</guid>
+            <pubDate>Sun, 12 Oct 2003 20:42:30 GMT</pubDate>
+            <comments>http://blogs.law.harvard.edu/comments?u=1015&amp;amp;p=1865&amp;amp;link=http%3A%2F%2Fradio.weblogs.com%2F0001015%2F2003%2F10%2F12.html%23a1865</comments>
+        </item>
+        <item>
+            <link>http://radio.weblogs.com/0001015/2003/10/08.html#a1864</link>
+            <description>&lt;A href=&quot;http://radio.weblogs.com/0001015/images/2002/06/04/yourarespecial.gif&quot;&gt;&lt;IMG height=52 alt=&quot;You are so special.&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2002/06/04/mrrogers.gif&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://radio.weblogs.com/0001015/images/2002/06/04/yourarespecial.gif&quot;&gt;&lt;IMG height=52 alt=&quot;You are so special.&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2002/06/04/mrrogers.gif&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://radio.weblogs.com/0001015/images/2002/06/04/yourarespecial.gif&quot;&gt;&lt;IMG height=52 alt=&quot;You are so special.&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2002/06/04/mrrogers.gif&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://radio.weblogs.com/0001015/images/2002/06/04/yourarespecial.gif&quot;&gt;&lt;IMG height=52 alt=&quot;You are so special.&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2002/06/04/mrrogers.gif&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://radio.weblogs.com/0001015/images/2002/06/04/yourarespecial.gif&quot;&gt;&lt;IMG height=52 alt=&quot;You are so special.&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2002/06/04/mrrogers.gif&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;</description>
+            <guid>http://radio.weblogs.com/0001015/2003/10/08.html#a1864</guid>
+            <pubDate>Wed, 08 Oct 2003 13:22:16 GMT</pubDate>
+            <comments>http://blogs.law.harvard.edu/comments?u=1015&amp;amp;p=1864&amp;amp;link=http%3A%2F%2Fradio.weblogs.com%2F0001015%2F2003%2F10%2F08.html%23a1864</comments>
+        </item>
+        <item>
+            <link>http://radio.weblogs.com/0001015/2003/10/06.html#a1863</link>
+            <description>&lt;A href=&quot;http://www.state.gov/secretary/rm/2003/17300.htm&quot;&gt;&lt;IMG height=51 alt=&quot;A picture named powell.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/06/powell.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://www.state.gov/secretary/rm/2003/17300.htm&quot;&gt;&lt;IMG height=51 alt=&quot;A picture named powell.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/06/powell.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://www.state.gov/secretary/rm/2003/17300.htm&quot;&gt;&lt;IMG height=51 alt=&quot;A picture named powell.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/06/powell.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://www.state.gov/secretary/rm/2003/17300.htm&quot;&gt;&lt;IMG height=51 alt=&quot;A picture named powell.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/06/powell.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://www.state.gov/secretary/rm/2003/17300.htm&quot;&gt;&lt;IMG height=51 alt=&quot;A picture named powell.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/06/powell.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;</description>
+            <guid>http://radio.weblogs.com/0001015/2003/10/06.html#a1863</guid>
+            <pubDate>Mon, 06 Oct 2003 13:37:40 GMT</pubDate>
+            <comments>http://blogs.law.harvard.edu/comments?u=1015&amp;amp;p=1863&amp;amp;link=http%3A%2F%2Fradio.weblogs.com%2F0001015%2F2003%2F10%2F06.html%23a1863</comments>
+        </item>
+        <item>
+            <link>http://radio.weblogs.com/0001015/2003/10/01.html#a1862</link>
+            <description>&lt;A href=&quot;http://127.0.0.1:5335/xxx&quot;&gt;&lt;IMG height=80 alt=&quot;A picture named retard.gif&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/01/retard.gif&quot; width=53 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://127.0.0.1:5335/xxx&quot;&gt;&lt;IMG height=80 alt=&quot;A picture named retard.gif&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/01/retard.gif&quot; width=53 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://127.0.0.1:5335/xxx&quot;&gt;&lt;IMG height=80 alt=&quot;A picture named retard.gif&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/01/retard.gif&quot; width=53 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://127.0.0.1:5335/xxx&quot;&gt;&lt;IMG height=80 alt=&quot;A picture named retard.gif&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/01/retard.gif&quot; width=53 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://127.0.0.1:5335/xxx&quot;&gt;&lt;IMG height=80 alt=&quot;A picture named retard.gif&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/10/01/retard.gif&quot; width=53 align=right vspace=5 border=0&gt;&lt;/A&gt;</description>
+            <guid>http://radio.weblogs.com/0001015/2003/10/01.html#a1862</guid>
+            <pubDate>Wed, 01 Oct 2003 18:26:11 GMT</pubDate>
+            <comments>http://blogs.law.harvard.edu/comments?u=1015&amp;amp;p=1862&amp;amp;link=http%3A%2F%2Fradio.weblogs.com%2F0001015%2F2003%2F10%2F01.html%23a1862</comments>
+        </item>
+        <item>
+            <link>http://radio.weblogs.com/0001015/2003/09/26.html#a1861</link>
+            <description>&lt;A href=&quot;http://127.0.0.1:5335/xxx&quot;&gt;&lt;IMG height=77 alt=&quot;A picture named allen.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/09/26/allen.jpg&quot; width=65 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://127.0.0.1:5335/xxx&quot;&gt;&lt;IMG height=77 alt=&quot;A picture named allen.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/09/26/allen.jpg&quot; width=65 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://127.0.0.1:5335/xxx&quot;&gt;&lt;IMG height=77 alt=&quot;A picture named allen.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/09/26/allen.jpg&quot; width=65 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://127.0.0.1:5335/xxx&quot;&gt;&lt;IMG height=77 alt=&quot;A picture named allen.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/09/26/allen.jpg&quot; width=65 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://127.0.0.1:5335/xxx&quot;&gt;&lt;IMG height=77 alt=&quot;A picture named allen.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/09/26/allen.jpg&quot; width=65 align=right vspace=5 border=0&gt;&lt;/A&gt;</description>
+            <guid>http://radio.weblogs.com/0001015/2003/09/26.html#a1861</guid>
+            <pubDate>Fri, 26 Sep 2003 13:29:36 GMT</pubDate>
+            <comments>http://blogs.law.harvard.edu/comments?u=1015&amp;amp;p=1861&amp;amp;link=http%3A%2F%2Fradio.weblogs.com%2F0001015%2F2003%2F09%2F26.html%23a1861</comments>
+        </item>
+        <item>
+            <link>http://radio.weblogs.com/0001015/2003/09/25.html#a1860</link>
+            <description>&lt;A href=&quot;http://www.command-post.org/2004/2_archives/008524.html&quot;&gt;&lt;IMG height=61 alt=&quot;A picture named clark.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/09/25/clark.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://www.command-post.org/2004/2_archives/008524.html&quot;&gt;&lt;IMG height=61 alt=&quot;A picture named clark.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/09/25/clark.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://www.command-post.org/2004/2_archives/008524.html&quot;&gt;&lt;IMG height=61 alt=&quot;A picture named clark.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/09/25/clark.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://www.command-post.org/2004/2_archives/008524.html&quot;&gt;&lt;IMG height=61 alt=&quot;A picture named clark.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/09/25/clark.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;&lt;A href=&quot;http://www.command-post.org/2004/2_archives/008524.html&quot;&gt;&lt;IMG height=61 alt=&quot;A picture named clark.jpg&quot; hspace=15 src=&quot;http://radio.weblogs.com/0001015/images/2003/09/25/clark.jpg&quot; width=45 align=right vspace=5 border=0&gt;&lt;/A&gt;</description>
+            <guid>http://radio.weblogs.com/0001015/2003/09/25.html#a1860</guid>
+            <pubDate>Thu, 25 Sep 2003 14:08:26 GMT</pubDate>
+            <comments>http://blogs.law.harvard.edu/comments?u=1015&amp;amp;p=1860&amp;amp;link=http%3A%2F%2Fradio.weblogs.com%2F0001015%2F2003%2F09%2F25.html%23a1860</comments>
+        </item>
+    </channel>
+</rss>

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/AbstractTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/AbstractTestCase.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/AbstractTestCase.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/AbstractTestCase.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,56 @@
+package org.apache.axis2.feed;
+
+import junit.framework.TestCase;
+
+import java.io.File;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public abstract class AbstractTestCase extends TestCase {
+
+    protected String testDir = "test" + File.separator;
+    protected String sampleDir = "samples" + File.separator;
+    protected String outDir = "target" + File.separator + "generated" + File.separator + "samples" + File.separator;
+    protected String tempDir = "target" + File.separator + "generated" + File.separator + "temp";
+    protected String testResourceDir = "test-resources";
+
+
+    /**
+     * Basedir for all file I/O. Important when running tests from
+     * the reactor.
+     */
+    public String basedir = System.getProperty("basedir");
+
+    /**
+     * @param testName
+     */
+    public AbstractTestCase(String testName) {
+        super(testName);
+        if (basedir == null) {
+            basedir = new File(".").getAbsolutePath();
+        }
+        testDir = new File(basedir, testDir).getAbsolutePath();
+        sampleDir = new File(basedir, sampleDir).getAbsolutePath();
+        outDir = new File(basedir, outDir).getAbsolutePath();
+        tempDir = new File(basedir, tempDir).getAbsolutePath();
+    }
+
+
+    public File getTestResourceFile(String relativePath) {
+        return new File(testResourceDir, relativePath);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/EPRDescriptionTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/EPRDescriptionTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/EPRDescriptionTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/EPRDescriptionTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,53 @@
+package org.apache.axis2.feed.aggregrator;
+
+import org.apache.axis2.feed.AbstractTestCase;
+import org.apache.axis2.feed.aggregrator.description.EPRDescription;
+
+import java.net.URL;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public class EPRDescriptionTest extends AbstractTestCase {
+
+    public EPRDescriptionTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+    }
+
+    public void testEPRDescription() throws Exception {
+
+        EPRDescription eprDescription;
+        eprDescription = new EPRDescription(new URL("http://127.0.0.1:8080/axis2/services/MyService/echo"));
+
+        assertEquals("MyService", eprDescription.getService());
+        assertEquals("echo", eprDescription.getOperation());
+        assertEquals("127.0.0.1", eprDescription.getHost());
+        assertEquals("8080", new String(new Integer(eprDescription.getPort()).toString()));
+
+        eprDescription.setUrl(new URL("http://127.0.0.1:8080/axis2/services/TestService/ping"));
+
+        assertEquals("TestService", eprDescription.getService());
+        assertEquals("ping", eprDescription.getOperation());
+        assertEquals("127.0.0.1", eprDescription.getHost());
+        assertEquals("8080", new String(new Integer(eprDescription.getPort()).toString()));
+
+
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/EPRTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/EPRTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/EPRTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/EPRTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,105 @@
+package org.apache.axis2.feed.aggregrator;
+
+import org.apache.axis2.feed.AbstractTestCase;
+import org.apache.axis2.feed.aggregrator.description.EPRDescription;
+import org.apache.axis2.feed.aggregrator.registry.FeedRegistry;
+import org.apache.axis2.feed.aggregrator.registry.FeedRegistryImpl;
+import org.apache.axis2.feed.aggregrator.registry.Registry;
+import org.apache.axis2.feed.aggregrator.registry.RegistryImpl;
+import org.apache.axis2.feed.feedmodel.eprlist.builder.EPRListBuilder;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Iterator;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public class EPRTest extends AbstractTestCase {
+
+    ArrayList arrayList;
+    Registry registry = new RegistryImpl();
+    FeedRegistry feedRegistry = new FeedRegistryImpl();
+    String[] opreationName = new String[5];
+    String[] serviceName = new String[5];
+
+    public EPRTest(String testName) {
+        super(testName);
+    }
+
+    public void setUp() throws Exception {
+        super.setUp();
+        try {
+
+            XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("EPRlist.xml")));
+
+            EPRListBuilder eprListBuilder = new EPRListBuilder(parser);
+            arrayList = eprListBuilder.getFeedList();
+            registry.store(feedRegistry);
+            if (arrayList != null) {
+                Iterator iterator = arrayList.iterator();
+                while (iterator.hasNext()) {
+                    EPRDescription eprDescription = (EPRDescription) iterator.next();
+
+                    registry.getFeedRegistry().getEndPointList().addEPR(eprDescription);
+                }
+            }
+
+
+        } catch (XMLStreamException e) {
+            e.printStackTrace();
+        } catch (FileNotFoundException e) {
+            e.printStackTrace();
+        } catch (IOException e) {
+            e.printStackTrace();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public void testEPRList() {
+        Iterator iterator = registry.getFeedRegistry().getEndPointList().iterator();
+        assertNotNull(iterator);
+        int i = 0;
+        int j = 0;
+        while (iterator.hasNext()) {
+            EPRDescription description = (EPRDescription) iterator.next();
+            if (description.getService().equals("MyService")) {
+                opreationName[i] = description.getOperation();
+                i++;
+            }
+            if (description.getOperation().equals("ping")) {
+                serviceName[j] = description.getService();
+                j++;
+            }
+        }
+
+        assertNotNull(opreationName);
+        assertEquals("echo", opreationName[0]);
+        assertEquals("ping", opreationName[1]);
+
+        assertNotNull(serviceName);
+        assertEquals("MyService", serviceName[0]);
+        assertEquals("TestService", serviceName[1]);
+
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FEEDTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FEEDTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FEEDTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FEEDTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,108 @@
+package org.apache.axis2.feed.aggregrator;
+
+import org.apache.axis2.feed.AbstractTestCase;
+import org.apache.axis2.feed.aggregrator.description.FeedDescription;
+import org.apache.axis2.feed.aggregrator.registry.FeedRegistry;
+import org.apache.axis2.feed.aggregrator.registry.FeedRegistryImpl;
+import org.apache.axis2.feed.aggregrator.registry.Registry;
+import org.apache.axis2.feed.aggregrator.registry.RegistryImpl;
+import org.apache.axis2.feed.feedmodel.feedlist.builder.FeedListBuilder;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Iterator;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public class FEEDTest extends AbstractTestCase {
+
+    ArrayList arrayList;
+    Registry registry = new RegistryImpl();
+    FeedRegistry feedRegistry = new FeedRegistryImpl();
+    String[] feedarry = new String[5];
+    String[] newfeedarry = new String[5];
+
+    public FEEDTest(String testName) {
+        super(testName);
+    }
+
+    public void setUp() throws Exception {
+        super.setUp();
+        try {
+
+            XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("feedlist.xml")));
+
+            FeedListBuilder eprListBuilder = new FeedListBuilder(parser);
+            arrayList = eprListBuilder.getFeedList();
+            registry.store(feedRegistry);
+            if (arrayList != null) {
+                Iterator iterator = arrayList.iterator();
+                while (iterator.hasNext()) {
+                    FeedDescription eprDescription = (FeedDescription) iterator.next();
+
+                    registry.getFeedRegistry().getFeedList().addFeed(eprDescription);
+                }
+            }
+
+
+        } catch (XMLStreamException e) {
+            e.printStackTrace();
+        } catch (FileNotFoundException e) {
+            e.printStackTrace();
+        } catch (IOException e) {
+            e.printStackTrace();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public void testEPRList() throws MalformedURLException {
+        Iterator iterator = registry.getFeedRegistry().getFeedList().iterator();
+        assertNotNull(iterator);
+        int i = 0;
+        int j = 0;
+        while (iterator.hasNext()) {
+            FeedDescription description = (FeedDescription) iterator.next();
+            feedarry[i] = description.getFeedURL().toString();
+            i++;
+        }
+        assertEquals("http://media-cyber.law.harvard.edu/blogs/gems/tech/rss2sample.xml", feedarry[0]);
+        registry.getFeedRegistry().getFeedList().removeFeed(new FeedDescription(new URL(feedarry[2])));
+
+        Iterator iterator1 = registry.getFeedRegistry().getFeedList().iterator();
+
+        while (iterator1.hasNext()) {
+            FeedDescription description1 = (FeedDescription) iterator1.next();
+            newfeedarry[j] = description1.getFeedURL().toString();
+            j++;
+        }
+
+        assertNotSame(newfeedarry, feedarry);
+        assertNotSame("http://media-cyber.law.harvard.edu/blogs/gems/tech/rss2sample.xml", newfeedarry[0]);
+        assertNotSame("http://media-cyber.law.harvard.edu/blogs/gems/tech/rss2sample.xml", newfeedarry[1]);
+
+    }
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FeedDescriptionTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FeedDescriptionTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FeedDescriptionTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FeedDescriptionTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,66 @@
+package org.apache.axis2.feed.aggregrator;
+
+import org.apache.axis2.feed.AbstractTestCase;
+import org.apache.axis2.feed.aggregrator.description.FeedDescription;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public class FeedDescriptionTest extends AbstractTestCase {
+
+    public FeedDescriptionTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        ;
+    }
+
+    public void testFeedDescription() throws MalformedURLException {
+
+        FeedDescription feedDescription = new FeedDescription(new URL("http://media-cyber.law.harvard.edu/blogs/gems/tech/rss2sample.xml"));
+        assertFalse(feedDescription.isAllReadyRead());
+
+        feedDescription.setAllReadyRead(true);
+        assertTrue(feedDescription.isAllReadyRead());
+
+        assertFalse(feedDescription.isNeverRead());
+
+        feedDescription.setNeverRead(true);
+        assertTrue(feedDescription.isNeverRead());
+
+        feedDescription.setAllReadyRead(false);
+        feedDescription.incrementCount(11);
+
+        assertFalse(feedDescription.isAllReadyRead());
+        feedDescription.resetCount();
+        feedDescription.setAllReadyRead(true);
+        feedDescription.incrementCount(3);
+        assertTrue(feedDescription.isAllReadyRead());
+        feedDescription.incrementCount(3);
+        assertTrue(feedDescription.isAllReadyRead());
+        feedDescription.incrementCount(3);
+        assertTrue(feedDescription.isAllReadyRead());
+        feedDescription.incrementCount(3);
+        assertFalse(feedDescription.isAllReadyRead());
+
+
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FeedObjectTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FeedObjectTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FeedObjectTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FeedObjectTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,90 @@
+package org.apache.axis2.feed.aggregrator;
+
+import org.apache.axis2.feed.AbstractTestCase;
+import org.apache.axis2.feed.aggregrator.registry.FeedObjectRegistry;
+import org.apache.axis2.feed.aggregrator.registry.FeedObjectRegistryImpl;
+import org.apache.axis2.feed.aggregrator.registry.Registry;
+import org.apache.axis2.feed.aggregrator.registry.RegistryImpl;
+import org.apache.axis2.feed.feedmodel.AbstractBuilderFactory;
+import org.apache.axis2.feed.feedmodel.AbstractFeedFactory;
+import org.apache.axis2.feed.feedmodel.FeedBuilder;
+import org.apache.axis2.feed.feedmodel.rss.Item;
+import org.apache.axis2.feed.feedmodel.rss.factory.RSSFactory;
+import org.apache.axis2.feed.feedmodel.rss.impl.RSSFeed;
+import org.apache.axis2.feed.feedmodel.rss.impl.RSSGeneratorElement;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+import java.io.FileReader;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.text.DateFormat;
+import java.text.ParseException;
+import java.util.Iterator;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public class FeedObjectTest extends AbstractTestCase {
+
+    Registry registry = new RegistryImpl();
+    FeedObjectRegistry feedObjectRegistry;
+
+    public FeedObjectTest(String testName) {
+        super(testName);
+    }
+
+    public void setUp() throws Exception {
+        super.setUp();
+        FeedObjectRegistry objectRegistry = new FeedObjectRegistryImpl();
+        XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("rss.xml")));
+
+        FeedBuilder builder = AbstractBuilderFactory.getFeedBuilder((RSSFactory) AbstractFeedFactory.getFeedFactory("RSS"), parser);
+
+        RSSFeed feed = (RSSFeed) builder.getFeed();
+        objectRegistry.getRssFeedObjectList().addFeed(feed);
+        registry.store(objectRegistry);
+
+    }
+
+    public void testFeedObject() throws MalformedURLException, ParseException {
+
+        feedObjectRegistry = registry.getFeedObjectRegistry();
+        Iterator iterator = feedObjectRegistry.getRssFeedObjectList().iterator();
+
+        assertNotNull(iterator);
+
+        RSSFeed rssFeed = feedObjectRegistry.getRssFeedObjectList().getFeedwithURl("http://radio.weblogs.com/0001015/");
+
+        assertNotNull(rssFeed);
+        assertEquals(new URL("http://radio.weblogs.com/0001015/"), rssFeed.getChannel().getLink());
+        assertEquals(new RSSGeneratorElement("Radio UserLand v8.0.5"), rssFeed.getChannel().getGeneratorElement());
+        assertEquals("2.0", rssFeed.getVersion());
+
+        Iterator iterator1 = rssFeed.getChannel().getItems();
+
+        assertNotNull(iterator);
+
+        while (iterator1.hasNext()) {
+            Item item = (Item) iterator1.next();
+            if (item.getLink().equals(new URL("http://radio.weblogs.com/0001015/2003/10/06.html#a1862"))) {
+
+                assertEquals(item.getPubDate(), DateFormat.getInstance().parse("Wed, 01 Oct 2003 18:26:11 GMT"));
+
+            }
+        }
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/builder/ATOMFeedBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/builder/ATOMFeedBuilderTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/builder/ATOMFeedBuilderTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/builder/ATOMFeedBuilderTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,83 @@
+package org.apache.axis2.feed.feedmodel.atom.builder;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.AbstractTestCase;
+import org.apache.axis2.feed.feedmodel.AbstractFeedFactory;
+import org.apache.axis2.feed.feedmodel.atom.ATOMEntry;
+import org.apache.axis2.feed.feedmodel.atom.ATOMFeed;
+import org.apache.axis2.feed.feedmodel.atom.factory.ATOMFactory;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.util.Iterator;
+
+
+public class ATOMFeedBuilderTest extends AbstractTestCase {
+
+    /**
+     * @param testName
+     */
+
+    public ATOMFeedBuilderTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+
+    }
+
+    public void testATOMBuilder() {
+        try {
+
+            XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("atom.xml")));
+
+            ATOMFeedBuilder builder = new ATOMFeedBuilder((ATOMFactory) AbstractFeedFactory.getFeedFactory("ATOM"), parser);
+
+
+            ATOMFeed feed = (ATOMFeed) builder.getFeed();
+            assertEquals("0.3", feed.getVersionAttr());
+            assertEquals("http://localhost:8080/axis2", feed.getLinkElement().getHerfAttribute());
+            Iterator iterator = feed.getEntries();
+            assertNotNull(iterator);
+            while (iterator.hasNext()) {
+                ATOMEntry atomEntry = (ATOMEntry) iterator.next();
+                assertEquals("text/palin", atomEntry.getLinkElement().getTypeAttribute());
+
+            }
+
+        } catch (XMLStreamException e) {
+            e.printStackTrace();
+        } catch (FileNotFoundException e) {
+            e.printStackTrace();
+        } catch (MalformedURLException e) {
+            e.printStackTrace();
+        } catch (IOException e) {
+            e.printStackTrace();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+}
+
+

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/factory/impl/ATOMFactoryImplTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/factory/impl/ATOMFactoryImplTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/factory/impl/ATOMFactoryImplTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/factory/impl/ATOMFactoryImplTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,118 @@
+/*
+ * Created on Jul 28, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package org.apache.axis2.feed.feedmodel.atom.factory.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import junit.framework.TestCase;
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis2.feed.feedmodel.atom.LinkElement;
+import org.apache.axis2.feed.feedmodel.atom.ModeAttribute;
+import org.apache.axis2.feed.feedmodel.atom.TypeAttribute;
+import org.apache.axis2.feed.feedmodel.atom.factory.ATOMFactory;
+import org.apache.axis2.feed.feedmodel.atom.impl.*;
+
+import java.util.Date;
+
+
+public class ATOMFactoryImplTest extends TestCase {
+
+    private ATOMFactory factory;
+
+
+    private LinkElement linkElement;
+
+    private ATOMAuthorElement authorElement = null;
+    private ModeAttribute mode;
+    private TypeAttribute type;
+    private ATOMTitleElement titleElement = null;
+    private ATOMModifiedElement modifiedElement = null;
+    private ATOMID atomid = null;
+
+    public static void main(String[] args) {
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        factory = new ATOMFactoryImpl();
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Constructor for ATOMFactoryImplTest.
+     *
+     * @param name
+     */
+    public ATOMFactoryImplTest(String name) {
+        super(name);
+    }
+
+
+    public void testCreateATOMTitleElement() {
+        titleElement = new ATOMTitleElement("title");
+        assertEquals(titleElement, factory.createATOMTitleElement("title"));
+    }
+
+
+    public void testCreateATOMModifiedElement() {
+        modifiedElement = new ATOMModifiedElement(new Date());
+        assertEquals(modifiedElement, factory.createATOMModifiedElement(new Date()));
+    }
+
+    public void testCreateATOMAuthorElement() {
+        authorElement = new ATOMAuthorElement(new PersonalNameElementImpl("indika"));
+        assertEquals(authorElement, factory.createATOMAuthorElement(factory.createPersonalNameElement("indika")));
+    }
+
+
+    public void testCreateATOMIDElement() {
+        atomid = new ATOMID("id");
+        assertEquals(atomid, factory.createATOMIDElement("id"));
+    }
+
+    public void testCreateATOMLinkElement() {
+        linkElement = new ATOMLinkElement("alternate", "http://www.ws.apache.org/", "text/html");
+        assertEquals(linkElement, factory.createATOMLinkElement("alternate", "http://www.ws.apache.org/", "text/html"));
+        assertEquals(linkElement.getHerfAttribute(), factory.createATOMLinkElement("alternate", "http://www.ws.apache.org/", "text/html").getHerfAttribute());
+    }
+
+    public void testCreateModeAttribute() {
+        mode = new ModeAttributeImpl(ATOMConstants.BASE64_MODE_ARRTIBUTE);
+        assertEquals(mode.getMode(), factory.createModeAttribute(ATOMConstants.BASE64_MODE_ARRTIBUTE).getMode());
+
+    }
+
+    public void testCreateTypeAttribute() {
+        type = new TypeAttributeImpl("xml");
+        assertEquals(type.getMediaType(), factory.createTypeAttribute("xml").getMediaType());
+
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMEntryElementTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMEntryElementTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMEntryElementTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMEntryElementTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,129 @@
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+import junit.framework.TestCase;
+import org.apache.axis2.feed.feedmodel.AbstractFeedFactory;
+import org.apache.axis2.feed.feedmodel.atom.ATOMEntry;
+import org.apache.axis2.feed.feedmodel.atom.ContentElement;
+import org.apache.axis2.feed.feedmodel.atom.DateElement;
+import org.apache.axis2.feed.feedmodel.atom.LinkElement;
+import org.apache.axis2.feed.feedmodel.atom.factory.ATOMFactory;
+
+import java.util.Date;
+
+
+public class ATOMEntryElementTest extends TestCase {
+    private ATOMEntry atomEntry;
+    private ContentElement titleElement;
+    private DateElement modifiedElement;
+    private LinkElement linkElement;
+    private DateElement issuedElement;
+    private ATOMID atomid;
+
+    private ContentElement atomSummaryElement = null;
+    private ContentElement atomContentElement = null;
+
+    public static void main(String[] args) {
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        ATOMFactory fac = (ATOMFactory) AbstractFeedFactory.getFeedFactory("ATOM");
+        titleElement = fac.createATOMTitleElement("entrytile");
+        modifiedElement = fac.createATOMModifiedElement(new Date());
+        issuedElement = fac.createATOMIsuuedElement(new Date());
+        linkElement = fac.createATOMLinkElement("alternate", "http://www.ws.apache.org/", "text/html");
+        atomEntry = fac.createEntryElement(titleElement, modifiedElement, linkElement, issuedElement);
+
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Constructor for ATOMEntryElementTest.
+     *
+     * @param name
+     */
+    public ATOMEntryElementTest(String name) {
+        super(name);
+    }
+
+    public void testGetTitleElement() {
+        assertNotNull(atomEntry.getTitleElement());
+        assertEquals(titleElement, atomEntry.getTitleElement());
+    }
+
+    public void testSetTitleElement() {
+        titleElement = new ATOMContentElement("new Title");
+        assertNotSame(titleElement, atomEntry.getTitleElement());
+        assertNotSame(titleElement.getContent(), atomEntry.getTitleElement().getContent());
+        atomEntry.setTitleElement(titleElement);
+        assertEquals(titleElement, atomEntry.getTitleElement());
+    }
+
+    public void testGetModifiedElement() {
+        assertNotNull(atomEntry.getModifiedElement());
+        assertEquals(modifiedElement, atomEntry.getModifiedElement());
+    }
+
+    public void testSetModifiedElement() {
+        modifiedElement = new ATOMModifiedElement(new Date());
+        atomEntry.setModifiedElement(modifiedElement);
+        assertEquals(modifiedElement, atomEntry.getModifiedElement());
+    }
+
+    public void testGetLinkElement() {
+        assertNotNull(atomEntry.getLinkElement());
+        assertEquals(linkElement, atomEntry.getLinkElement());
+    }
+
+    public void testSetLinkElement() {
+        linkElement = new ATOMLinkElement("alternate", "http://www.apache.org/", "text/html");
+        assertNotSame(linkElement, atomEntry.getLinkElement());
+        atomEntry.setLinkElement(linkElement);
+        assertEquals(linkElement, atomEntry.getLinkElement());
+    }
+
+    public void testGetATOMId() {
+        assertNull(atomEntry.getATOMId());
+        atomid = new ATOMID("id");
+
+        atomEntry.setATOMId(atomid);
+        assertEquals(atomid, atomEntry.getATOMId());
+    }
+
+    public void testSetATOMId() {
+        atomid = new ATOMID("id");
+        atomEntry.setATOMId(atomid);
+        assertEquals(atomid, atomEntry.getATOMId());
+        atomid.setId("newId");
+        ATOMID atomidNew = new ATOMID("newId");
+        assertEquals(atomidNew.getId(), atomid.getId());
+        assertNotSame("id", atomid.getId());
+        assertEquals(atomidNew.getId(), atomEntry.getATOMId().getId());
+
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMFeedImplTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMFeedImplTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMFeedImplTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMFeedImplTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,124 @@
+/*
+ * Created on Jul 27, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,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.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import junit.framework.TestCase;
+import org.apache.axis2.feed.feedmodel.AbstractFeedFactory;
+import org.apache.axis2.feed.feedmodel.atom.*;
+import org.apache.axis2.feed.feedmodel.atom.factory.ATOMFactory;
+
+import java.util.Date;
+
+
+public class ATOMFeedImplTest extends TestCase {
+    private String versionAttr;
+    private ContentElement titleElement;
+    private DateElement modifiedElement;
+    private DateElement issuedDateElement;
+    private LinkElement linkElement;
+
+    private PersonalElement authorElement;
+    private ATOMEntry atomEntry;
+    private ATOMFeed atomFeed;
+
+    public static void main(String[] args) {
+
+    }
+
+    /*
+    * @see TestCase#setUp()
+    */
+    protected void setUp() throws Exception {
+        super.setUp();
+
+        ATOMFactory fac = (ATOMFactory) AbstractFeedFactory.getFeedFactory("ATOM");
+        atomFeed = fac.createFeedElement("0.3", new ATOMTitleElement("title "), new ATOMModifiedElement(new Date()), fac.createATOMLinkElement("alternate", "http://www.ws.apache.org/", "text/html"), new ATOMAuthorElement(new PersonalNameElementImpl("auother name")));
+        titleElement = fac.createATOMTitleElement("entrytile");
+        modifiedElement = fac.createATOMModifiedElement(new Date());
+        issuedDateElement = fac.createATOMIsuuedElement(new Date());
+        authorElement = fac.createATOMAuthorElement(fac.createPersonalNameElement("indika"));
+        linkElement = fac.createATOMLinkElement("alternate", "http://www.ws.apache.org/", "text/html");
+        atomEntry = fac.createEntryElement(titleElement, modifiedElement, linkElement, issuedDateElement);
+
+
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    public void testAddEntry() {
+        assertFalse(atomFeed.getEntries().hasNext());
+        atomFeed.addEntry(atomEntry);
+        assertTrue(atomFeed.getEntries().hasNext());
+    }
+
+    public void testGetTitleElement() {
+        assertNotNull(atomFeed.getTitleElement());
+        assertNotSame(titleElement, atomFeed.getTitleElement());
+    }
+
+    public void testSetTitleElement() {
+        assertNotSame(titleElement, atomFeed.getTitleElement());
+        atomFeed.setTitleElement(titleElement);
+        assertEquals(titleElement, atomFeed.getTitleElement());
+    }
+
+    public void testGetModifiedElement() {
+        assertNotNull(atomFeed.getModifiedElement());
+        assertNotSame(modifiedElement, atomFeed.getModifiedElement());
+
+    }
+
+    public void testSetModifiedElement() {
+        assertNotSame(modifiedElement, atomFeed.getModifiedElement());
+        atomFeed.setModifiedElement(modifiedElement);
+        assertEquals(modifiedElement, atomFeed.getModifiedElement());
+    }
+
+    public void testGetLinkElement() {
+        assertNotNull(atomFeed.getLinkElement());
+        assertNotSame(linkElement, atomFeed.getLinkElement());
+
+    }
+
+    public void testSetLinkElement() {
+        assertNotSame(linkElement, atomFeed.getLinkElement());
+        atomFeed.setLinkElement(linkElement);
+        assertEquals(linkElement, atomFeed.getLinkElement());
+
+    }
+
+    public void testGetVersionAttr() {
+        assertNotNull(atomFeed.getVersionAttr());
+    }
+
+    public void testSetVersionAttr() {
+        atomFeed.setVersionAttr("1.0");
+        assertNotSame("0.3", atomFeed.getVersionAttr());
+    }
+
+}