axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r279723 [6/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...
Date Fri, 09 Sep 2005 07:25:01 GMT
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMModelTest.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/ATOMModelTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMModelTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMModelTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,79 @@
+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;
+import java.util.Iterator;
+
+
+public class ATOMModelTest extends TestCase {
+    private ATOMEntry atomEntry;
+    private ATOMFeed atomFeed;
+    private ContentElement titleElement;
+    private DateElement modifiedDateElement;
+    private DateElement issuedDateElement;
+    private LinkElement linkElement;
+    private ATOMID atomid;
+
+
+    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()), new ATOMLinkElement("alternate", "herf", "text/palin"), new ATOMAuthorElement(new PersonalNameElementImpl("anoter name")));
+        titleElement = fac.createATOMTitleElement("entrytile");
+        modifiedDateElement = fac.createATOMModifiedElement(new Date());
+        issuedDateElement = fac.createATOMIsuuedElement(new Date());
+        atomid = new ATOMID("id");
+        linkElement = fac.createATOMLinkElement("alternate", "http://www.ws.apache.org/", "text/html");
+        atomEntry = fac.createEntryElement(titleElement, modifiedDateElement, linkElement, issuedDateElement);
+        atomFeed.addEntry(atomEntry);
+        atomEntry.setATOMId(atomid);
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    public void testAll() {
+        Iterator iterator = atomFeed.getEntries();
+        while (iterator.hasNext()) {
+            ATOMEntry entry = (ATOMEntry) iterator.next();
+            assertEquals(atomEntry, entry);
+            assertEquals(titleElement, entry.getTitleElement());
+            assertEquals(modifiedDateElement, entry.getModifiedElement());
+            assertEquals(issuedDateElement, entry.getIssuedElement());
+            assertEquals(linkElement, entry.getLinkElement());
+            assertEquals(atomid, entry.getATOMId());
+        }
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ContentElementImplTest.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/ContentElementImplTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ContentElementImplTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ContentElementImplTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,97 @@
+/*
+ * 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.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.ModeAttribute;
+import org.apache.axis2.feed.feedmodel.atom.TypeAttribute;
+
+
+public class ContentElementImplTest extends TestCase {
+
+    private TypeAttribute typeAttribute = null;
+    private ModeAttribute modeAttribute = null;
+    private String content;
+    private ATOMTitleElement atomTitleElement;
+
+    public static void main(String[] args) {
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        content = "new content";
+        atomTitleElement = new ATOMTitleElement("title");
+        typeAttribute = new TypeAttributeImpl("text/xml");
+        modeAttribute = new ModeAttributeImpl("xml");
+
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Constructor for ContentElementImplTest.
+     *
+     * @param name
+     */
+    public ContentElementImplTest(String name) {
+        super(name);
+    }
+
+
+    public void testGetTypeAttribute() {
+        assertNull(atomTitleElement.getTypeAttribute());
+    }
+
+    public void testSetTypeAttribute() {
+        atomTitleElement.setTypeAttribute(typeAttribute);
+        assertEquals(typeAttribute, atomTitleElement.getTypeAttribute());
+    }
+
+    public void testGetModeAttribute() {
+        assertNull(atomTitleElement.getModeAttribute());
+    }
+
+    public void testSetModeAttribute() {
+        atomTitleElement.setModeAttribute(modeAttribute);
+        assertEquals(modeAttribute, atomTitleElement.getModeAttribute());
+    }
+
+    public void testGetContent() {
+        assertNotNull(atomTitleElement.getContent());
+    }
+
+    public void testSetContent() {
+        atomTitleElement.setContent(content);
+        assertEquals(content, atomTitleElement.getContent());
+
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/DateElementImplTest.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/DateElementImplTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/DateElementImplTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/DateElementImplTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,74 @@
+/*
+ * 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.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.DateElement;
+
+import java.util.Date;
+
+
+public class DateElementImplTest extends TestCase {
+    private Date date;
+    private DateElement dateElement;
+
+    public static void main(String[] args) {
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        dateElement = new ATOMIssuedElement(new Date());
+        date = new Date();
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Constructor for DateElementImplTest.
+     *
+     * @param name
+     */
+    public DateElementImplTest(String name) {
+        super(name);
+    }
+
+
+    public void testGetDate() {
+        assertNotNull(dateElement.getDate());
+    }
+
+    public void testSetDate() {
+        assertEquals(date, dateElement.getDate());
+        dateElement.setDate(date);
+        assertEquals(date, dateElement.getDate());
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/LinkElementImplTest.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/LinkElementImplTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/LinkElementImplTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/LinkElementImplTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,107 @@
+/*
+ * 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.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.LinkElement;
+
+
+public class LinkElementImplTest extends TestCase {
+    private String relAttribute;
+    private String typeAttribute;
+    private String titleAttribute = null;
+    private String herfAttribute;
+    private LinkElement linkElement;
+
+    public static void main(String[] args) {
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        relAttribute = "alternate";
+        typeAttribute = "text/html";
+        titleAttribute = "Title";
+        herfAttribute = "http://www.ws.apache.org/";
+        linkElement = new ATOMLinkElement("alternate", "http://www.ws.apache.org/", "text/html");
+
+    }
+
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Constructor for LinkElementImplTest.
+     *
+     * @param name
+     */
+    public LinkElementImplTest(String name) {
+        super(name);
+    }
+
+
+    public void testGetRelAttribute() {
+        assertNotNull(linkElement.getRelAttribute());
+    }
+
+    public void testSetRelAttribute() {
+        linkElement.setRelAttribute(relAttribute);
+        assertEquals(relAttribute, linkElement.getRelAttribute());
+
+    }
+
+    public void testGetTypeAttribute() {
+        assertNotNull(linkElement.getTypeAttribute());
+    }
+
+    public void testSetTypeAttribute() {
+        linkElement.setTypeAttribute(typeAttribute);
+        assertEquals(typeAttribute, linkElement.getTypeAttribute());
+    }
+
+    public void testGetTitleAttribute() {
+        assertNull(linkElement.getTitleAttribute());
+    }
+
+    public void testSetTitleAttribute() {
+        linkElement.setTitleAttribute(titleAttribute);
+        assertEquals(titleAttribute, linkElement.getTitleAttribute());
+    }
+
+    public void testGetHerfAttribute() {
+        assertNotNull(linkElement.getHerfAttribute());
+    }
+
+    public void testSetHerfAttribute() {
+        linkElement.setHerfAttribute(herfAttribute);
+        assertEquals(herfAttribute, linkElement.getHerfAttribute());
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/PersonalElementImplTest.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/PersonalElementImplTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/PersonalElementImplTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/PersonalElementImplTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,99 @@
+/*
+ * 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.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.PersonalElement;
+import org.apache.axis2.feed.feedmodel.atom.PersonalEmailElement;
+import org.apache.axis2.feed.feedmodel.atom.PersonalNameElement;
+import org.apache.axis2.feed.feedmodel.atom.PersonalURLElement;
+
+import java.net.URL;
+
+
+public class PersonalElementImplTest extends TestCase {
+    private PersonalNameElement name = null;
+    private PersonalURLElement UrL = null;
+    private PersonalEmailElement email = null;
+    private PersonalElement personalElement;
+
+    public static void main(String[] args) {
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        name = new PersonalNameElementImpl("indika");
+        UrL = new PersonalURLElementImpl(new URL("http://wiki.apache.org/ws/SummerOfCode/2005/RSSFeedGenerator"));
+        email = new PersonalEmailElementImpl("ipkumara2003@yahoo.co.uk");
+        personalElement = new ATOMAuthorElement(new PersonalNameElementImpl("indika kumara"));
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Constructor for PersonalElementImplTest.
+     *
+     * @param name
+     */
+    public PersonalElementImplTest(String name) {
+        super(name);
+    }
+
+
+    public void testGetName() {
+        assertNotNull(personalElement.getName());
+    }
+
+    public void testSetName() {
+        personalElement.setName(name);
+        assertEquals(name, personalElement.getName());
+    }
+
+    public void testGetURL() {
+        assertNull(personalElement.getURL());
+    }
+
+    public void testSetURL() {
+        personalElement.setURL(UrL);
+        assertNotNull(personalElement.getURL());
+        assertEquals(UrL, personalElement.getURL());
+    }
+
+    public void testGetEmail() {
+        assertNull(personalElement.getEmail());
+    }
+
+    public void testSetEmail() {
+        personalElement.setEmail(email);
+        assertEquals(email, personalElement.getEmail());
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/eprlist/builder/EPRListBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/eprlist/builder/EPRListBuilderTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/eprlist/builder/EPRListBuilderTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/eprlist/builder/EPRListBuilderTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,69 @@
+package org.apache.axis2.feed.feedmodel.eprlist.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.aggregrator.description.EPRDescription;
+
+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;
+
+
+public class EPRListBuilderTest extends AbstractTestCase {
+    /**
+     * @param testName
+     */
+    public EPRListBuilderTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+    }
+
+    public void testEPRListBuiler() {
+        try {
+
+            XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("EPRlist.xml")));
+
+            EPRListBuilder eprListBuilder = new EPRListBuilder(parser);
+            ArrayList arrayList = eprListBuilder.getFeedList();
+            assertNotNull(arrayList);
+            Iterator iterator = arrayList.iterator();
+            while (iterator.hasNext()) {
+                EPRDescription eprDescription = (EPRDescription) iterator.next();
+                assertNotNull(eprDescription);
+            }
+
+
+        } catch (XMLStreamException e) {
+            e.printStackTrace();
+        } catch (FileNotFoundException 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/feedlist/builder/FeedListBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/feedlist/builder/FeedListBuilderTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/feedlist/builder/FeedListBuilderTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/feedlist/builder/FeedListBuilderTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,69 @@
+package org.apache.axis2.feed.feedmodel.feedlist.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.aggregrator.description.FeedDescription;
+
+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;
+
+
+public class FeedListBuilderTest extends AbstractTestCase {
+    /**
+     * @param testName
+     */
+    public FeedListBuilderTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+    }
+
+    public void testFeedBuilderList() {
+        try {
+
+            XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("feedlist.xml")));
+
+            FeedListBuilder eprListBuilder = new FeedListBuilder(parser);
+            ArrayList arrayList = eprListBuilder.getFeedList();
+            assertNotNull(arrayList);
+            Iterator iterator = arrayList.iterator();
+            while (iterator.hasNext()) {
+                FeedDescription eprDescription = (FeedDescription) iterator.next();
+                assertNotNull(eprDescription);
+            }
+
+
+        } catch (XMLStreamException e) {
+            e.printStackTrace();
+        } catch (FileNotFoundException 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/rss/builder/RSSFeedBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/builder/RSSFeedBuilderTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/builder/RSSFeedBuilderTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/builder/RSSFeedBuilderTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,93 @@
+package org.apache.axis2.feed.feedmodel.rss.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.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.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.text.DateFormat;
+import java.text.ParseException;
+import java.util.Iterator;
+
+
+public class RSSFeedBuilderTest extends AbstractTestCase {
+
+    /**
+     * @param testName
+     */
+
+    public RSSFeedBuilderTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+
+    }
+
+    public void testRSSBuilder() {
+        try {
+
+            XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("rss.xml")));
+
+            FeedBuilder builder = AbstractBuilderFactory.getFeedBuilder((RSSFactory) AbstractFeedFactory.getFeedFactory("RSS"), parser);
+
+            RSSFeed feed = (RSSFeed) builder.getFeed();
+
+            assertEquals(new URL("http://radio.weblogs.com/0001015/"), feed.getChannel().getLink());
+            assertEquals(new RSSGeneratorElement("Radio UserLand v8.0.5"), feed.getChannel().getGeneratorElement());
+            assertEquals("2.0", feed.getVersion());
+
+            Iterator iterator = feed.getChannel().getItems();
+            assertNotNull(iterator);
+            while (iterator.hasNext()) {
+                Item item = (Item) iterator.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"));
+                    assertNotNull(item.getPubDate().getPubDate());
+
+                }
+            }
+
+
+        } catch (XMLStreamException e) {
+            e.printStackTrace();
+        } catch (FileNotFoundException e) {
+            e.printStackTrace();
+        } catch (MalformedURLException e) {
+            e.printStackTrace();
+        } catch (IOException e) {
+            e.printStackTrace();
+        } catch (ParseException e) {
+            e.printStackTrace();
+        }
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/factory/impl/RSSFactoryImplTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/factory/impl/RSSFactoryImplTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/factory/impl/RSSFactoryImplTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/factory/impl/RSSFactoryImplTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,152 @@
+/*
+ * 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.rss.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.rss.*;
+import org.apache.axis2.feed.feedmodel.rss.factory.RSSFactory;
+import org.apache.axis2.feed.feedmodel.rss.impl.*;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Date;
+
+
+public class RSSFactoryImplTest extends TestCase {
+
+    private RSSFactory feedFactory;
+
+    private Item item = null;
+
+
+    private GuidElement guidElement = null;
+
+    private LastBuildDate lastBuildDate = null;
+    private String domain = null;
+
+    private GeneratorElement generatorElement;
+
+    private LanguageElement languageElement;
+
+    private DocsElement docsElement;
+
+
+    public static void main(String[] args) {
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        feedFactory = new RSSFactoryImpl();
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Constructor for RSSFactoryImplTest.
+     *
+     * @param name
+     */
+    public RSSFactoryImplTest(String name) {
+        super(name);
+    }
+
+
+    /*
+     * Class under test for Item createItem()
+     */
+    public void testCreateItem() {
+        item = new RSSItem();
+        assertEquals(item, feedFactory.createItem());
+    }
+
+    /*
+     * Class under test for Item createItem(String, URL, String)
+     */
+    public void testCreateItemStringURLString() {
+        try {
+            item = new RSSItem("title", new URL("http://www.google.com/"), "description");
+            assertEquals(item, feedFactory.createItem("title", new URL("http://www.google.com/"), "description"));
+
+        } catch (MalformedURLException e) {
+            fail(e.toString());
+        }
+
+
+    }
+
+
+    /*
+     * Class under test for GuidElement createGuidElement(String)
+     */
+    public void testCreateGuidElementString() {
+        guidElement = new RSSGuidElement("123");
+        assertEquals(guidElement, feedFactory.createGuidElement("123"));
+    }
+
+    /*
+     * Class under test for GuidElement createGuidElement(String, boolean)
+     */
+    public void testCreateGuidElementStringboolean() {
+        guidElement = new RSSGuidElement("123", false);
+        assertEquals(guidElement, feedFactory.createGuidElement("123", false));
+    }
+
+
+    public void testCreateLastBuildDate() {
+        lastBuildDate = new LastBuildDateImpl(new Date());
+        assertEquals(lastBuildDate, feedFactory.createLastBuildDate(new Date()));
+
+    }
+
+
+    public void testCreateDocsElement() {
+        try {
+            docsElement = new RSSDocsElement(new URL("http://www.google.com/"));
+            assertEquals(docsElement, feedFactory.createDocsElement(new URL("http://www.google.com/")));
+        } catch (MalformedURLException e) {
+            fail(e.toString());
+        }
+
+
+    }
+
+
+    public void testCreateGeneratorElement() {
+        generatorElement = new RSSGeneratorElement("feeder 2.0");
+        assertEquals(generatorElement, feedFactory.createGeneratorElement("feeder 2.0"));
+    }
+
+    public void testCreateLanguageElement() {
+        languageElement = new RSSLanguageElement("en-us");
+        assertEquals(languageElement, feedFactory.createLanguageElement("en-us"));
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSChannelTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSChannelTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSChannelTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSChannelTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,142 @@
+/*
+* 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.rss.impl;
+
+import junit.framework.TestCase;
+import org.apache.axis2.feed.feedmodel.rss.*;
+
+import java.net.URL;
+import java.util.Date;
+import java.util.Iterator;
+
+
+public class RSSChannelTest extends TestCase {
+
+    private Channel channel;
+    private Item item;
+    private PubDate pubDate;
+    private LastBuildDate lastBuildDate;
+
+    private CategoryElement categoryElement;
+
+    public static void main(String[] args) {
+
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        channel = new RSSChannel("axis2", new URL("http://ws.apache.org/axis2/"), "test case for feed channel");
+        pubDate = new PubDateImpl(new Date());
+        categoryElement = new RSSCategoryElement("web servise");
+        lastBuildDate = new LastBuildDateImpl(new Date());
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Constructor for RSSChannelTest.
+     *
+     * @param name
+     */
+    public RSSChannelTest(String name) {
+        super(name);
+    }
+
+    public void testAddItem() {
+
+        assertNotNull(channel);
+        assertNotNull(channel.getItems());
+        Iterator iterator = channel.getItems();
+        assertFalse(iterator.hasNext());
+        item = new RSSItem();
+        channel.addItem(item);
+        assertTrue(iterator.hasNext());
+        iterator = channel.getItems();
+        assertNotNull(iterator.next());
+
+
+    }
+
+    public void testRemove() {
+        item = new RSSItem();
+        channel.remove(item);
+        channel.addItem(item);
+        assertTrue(channel.getItems().hasNext());
+        channel.remove(item);
+        assertFalse(channel.getItems().hasNext());
+
+    }
+
+    public void testAddPudDate() {
+        assertNull(channel.getPubDate());
+        channel.addPudDate(pubDate);
+        assertNotNull(channel.getPubDate());
+        assertEquals(pubDate, channel.getPubDate());
+    }
+
+    public void testAddLastBuildDate() {
+        assertNull(channel.getLastBuildDate());
+        channel.addLastBuildDate(lastBuildDate);
+        assertNotNull(channel.getLastBuildDate());
+        assertEquals(lastBuildDate, channel.getLastBuildDate());
+    }
+
+    public void testGetTitle() {
+        assertNotNull(channel.getTitle());
+    }
+
+    public void testGetLink() {
+        assertNotNull(channel.getLink());
+    }
+
+    public void testGetDescription() {
+        assertNotNull(channel.getDescription());
+    }
+
+    public void testAddCategoryElement() {
+        assertNull(channel.getCategoryElement());
+        assertNotNull(categoryElement.getCategoryName());
+        categoryElement.setDomain("axis2");
+        assertEquals("axis2", categoryElement.getDomain());
+        channel.addCategoryElement(categoryElement);
+        assertNotNull(channel.getCategoryElement());
+        assertEquals(categoryElement, channel.getCategoryElement());
+    }
+
+    public void testGetPubDate() {
+        assertNull(channel.getPubDate());
+        channel.addPudDate(pubDate);
+        assertNotNull(channel.getPubDate());
+        assertEquals(pubDate, channel.getPubDate());
+    }
+
+    public void testGetLastBuildDate() {
+        assertNull(channel.getLastBuildDate());
+        channel.addLastBuildDate(lastBuildDate);
+        assertNotNull(channel.getLastBuildDate());
+        assertEquals(lastBuildDate, channel.getLastBuildDate());
+
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSFeedTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSFeedTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSFeedTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSFeedTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,79 @@
+/*
+ * 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.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 junit.framework.TestCase;
+import org.apache.axis2.feed.feedmodel.rss.Channel;
+
+import java.net.URL;
+
+
+public class RSSFeedTest extends TestCase {
+    private Channel channel;
+    private RSSFeed rssFeed;
+
+    public static void main(String[] args) {
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        channel = new RSSChannel("axis2", new URL("http://ws.apache.org/axis2/"), "test case for feed channel");
+        rssFeed = new RSSFeed("2.0");
+
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Constructor for RSSFeedTest.
+     *
+     * @param name
+     */
+    public RSSFeedTest(String name) {
+        super(name);
+    }
+
+    public void testAddChannel() {
+        rssFeed.addChannel(channel);
+        assertNotNull(rssFeed.getChannel());
+        assertEquals(channel, rssFeed.getChannel());
+    }
+
+    public void testGetVersion() {
+        assertNotNull(rssFeed.getVersion());
+        assertEquals("2.0", rssFeed.getVersion());
+    }
+
+    public void testGetChannel() {
+        assertNull(rssFeed.getChannel());
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSItemTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSItemTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSItemTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSItemTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,168 @@
+/*
+ * 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.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 junit.framework.TestCase;
+import org.apache.axis2.feed.feedmodel.rss.CategoryElement;
+import org.apache.axis2.feed.feedmodel.rss.GuidElement;
+import org.apache.axis2.feed.feedmodel.rss.Item;
+import org.apache.axis2.feed.feedmodel.rss.PubDate;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Date;
+
+
+public class RSSItemTest extends TestCase {
+    private Item item;
+    private URL link;
+    private GuidElement guidElement;
+    private PubDate pubDate;
+    private CategoryElement categoryElement;
+
+    public static void main(String[] args) {
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        item = new RSSItem();
+        guidElement = new RSSGuidElement("guid");
+        pubDate = new PubDateImpl(new Date());
+        categoryElement = new RSSCategoryElement("web servise");
+
+
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Constructor for RSSItemTest.
+     *
+     * @param name
+     */
+    public RSSItemTest(String name) {
+        super(name);
+    }
+
+    public void testGetTitle() {
+        assertEquals(null, item.getTitle());
+        item.setTitle("title");
+        assertEquals("title", item.getTitle());
+    }
+
+    public void testSetTitle() {
+        assertNotSame("titleNEW", item.getTitle());
+        item.setTitle("titleNEW");
+        assertEquals("titleNEW", item.getTitle());
+    }
+
+    public void testGetLink() {
+        assertEquals(null, item.getLink());
+        try {
+            item.setLink(link = new URL("http://www.apache.org/"));
+        } catch (MalformedURLException e) {
+            fail(e.toString());
+
+        }
+        assertEquals(link, item.getLink());
+    }
+
+    public void testSetLink() {
+        try {
+            link = new URL("http://ws.apache.org/axis2/");
+
+        } catch (MalformedURLException e) {
+            fail(e.toString());
+        }
+        assertNotSame(link, item.getLink());
+        item.setLink(link);
+        assertEquals(link, item.getLink());
+    }
+
+    public void testAddGuidElement() {
+
+        assertNull(item.getGuidElement());
+        assertTrue(guidElement.isPermaLink());
+        guidElement.setPermaLink(false);
+        assertFalse(guidElement.isPermaLink());
+        item.addGuidElement(guidElement);
+        assertNotNull(item.getGuidElement());
+        assertEquals(guidElement, item.getGuidElement());
+    }
+
+    public void testAddPubDate() {
+        assertNull(item.getPubDate());
+        item.addPubDate(pubDate);
+        assertNotNull(item.getPubDate());
+        assertEquals(pubDate, item.getPubDate());
+
+    }
+
+    public void testAddCategoryElement() {
+        assertNull(item.getCategoryElement());
+        assertNotNull(categoryElement.getCategoryName());
+        categoryElement.setDomain("axis2");
+        assertEquals("axis2", categoryElement.getDomain());
+        item.addCategoryElement(categoryElement);
+        assertNotNull(item.getCategoryElement());
+        assertEquals(categoryElement, item.getCategoryElement());
+    }
+
+    public void testGetGuidElement() {
+
+        assertNotSame(guidElement, item.getGuidElement());
+        assertNull(item.getGuidElement());
+        item.addGuidElement(guidElement);
+        assertEquals(guidElement.getGuid(), item.getGuidElement().getGuid());
+        guidElement.setGuid("guidNEW");
+        assertEquals(guidElement, item.getGuidElement());
+        assertEquals("guidNEW", item.getGuidElement().getGuid());
+    }
+
+    public void testGetPubDate() {
+        assertNull(item.getPubDate());
+        item.addPubDate(pubDate);
+        assertNotNull(item.getPubDate());
+        assertEquals(pubDate, item.getPubDate());
+    }
+
+    public void testGetCategoryElement() {
+        assertNull(item.getCategoryElement());
+        assertNotNull(categoryElement.getCategoryName());
+        categoryElement.setDomain("axis2");
+        assertEquals("axis2", categoryElement.getDomain());
+        item.addCategoryElement(categoryElement);
+        assertNotNull(item.getCategoryElement());
+        assertEquals(categoryElement, item.getCategoryElement());
+
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSModelTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSModelTest.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSModelTest.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSModelTest.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,108 @@
+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 junit.framework.TestCase;
+import org.apache.axis2.feed.feedmodel.AbstractFeedFactory;
+import org.apache.axis2.feed.feedmodel.rss.*;
+import org.apache.axis2.feed.feedmodel.rss.factory.RSSFactory;
+
+import java.net.URL;
+import java.util.Date;
+import java.util.Iterator;
+
+
+public class RSSModelTest extends TestCase {
+
+    private RSSFeed rssFeed;
+    private Channel channel;
+    private Item item;
+    private String description;
+    private String title;
+    private URL link;
+    private SourceElement sourceElement;
+
+    private LastBuildDate lastBuildDate;
+
+    private GuidElement guidElement;
+    private PubDate pubDate;
+    private CategoryElement categoryElement;
+
+
+    public static void main(String[] args) {
+    }
+
+    /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+        super.setUp();
+        RSSFactory fac = (RSSFactory) AbstractFeedFactory.getFeedFactory("RSS");
+        rssFeed = (RSSFeed) fac.createFeed("2.0");
+        channel = fac.createChannel("title", new URL("http://www.apache.org"), "feedChannel");
+        rssFeed.addChannel(channel);
+        item = fac.createItem();
+        description = "descriptoon";
+        title = "tilte";
+        link = new URL("http://ws.apache.org/axis2/");
+        sourceElement = new RSSSourceElement("sourceElement");
+        guidElement = new RSSGuidElement("guidElement");
+        pubDate = new PubDateImpl(new Date());
+        categoryElement = new RSSCategoryElement("category");
+        lastBuildDate = new LastBuildDateImpl(new Date());
+        item.setTitle(title);
+        item.setDescription(description);
+        item.setLink(link);
+        rssFeed.getChannel().addItem(item);
+        item.addGuidElement(guidElement);
+        item.addSourceElement(sourceElement);
+        item.addPubDate(pubDate);
+        item.addCategoryElement(categoryElement);
+        channel.addLastBuildDate(lastBuildDate);
+
+    }
+
+    public void testAll() {
+
+        assertEquals(channel, rssFeed.getChannel());
+        Iterator iterator = rssFeed.getChannel().getItems();
+        while (iterator.hasNext()) {
+            Item item1 = (Item) iterator.next();
+            assertEquals(item, item1);
+            assertEquals(description, item1.getDescription());
+            assertEquals(title, item1.getTitle());
+            assertEquals(link, item1.getLink());
+            assertEquals(sourceElement, item1.getSourceElement());
+            assertEquals(guidElement, item1.getGuidElement());
+            assertEquals(pubDate, item1.getPubDate());
+            assertEquals(sourceElement, item1.getSourceElement());
+            assertEquals(categoryElement, item1.getCategoryElement());
+
+        }
+        assertEquals(lastBuildDate, rssFeed.getChannel().getLastBuildDate());
+
+    }
+
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/BottomFrameOfAggregator.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/BottomFrameOfAggregator.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/BottomFrameOfAggregator.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/BottomFrameOfAggregator.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,40 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>Untitled Document</title>
+<style type="text/css">
+</style></head>
+
+<body>
+<table width="100%">
+ <hr></hr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+      <a href="adminLogout" target="adminLogout">LogOut</a>
+    </td>
+ </tr>
+</table>
+</body>
+</html>

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/EPRView.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/EPRView.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/EPRView.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/EPRView.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,36 @@
+
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<html>
+<head>
+<title>Axis2 Aggregatror:: Feeds</title>
+</head>
+
+<frameset rows="*,*" frameborder="NO" border="0" framespacing="0">
+<frame src="TopFrameOfAggregator.jsp" name="TopFrameOfAggregator" scrolling="NO"  >
+<frameset rows="*" cols="300,*" framespacing="0" frameborder="NO" border="0">
+<frame src="LeftFrameOfEPR.jsp" name="LeftFrameOfEPR"  border="0" noresize>
+<frame src="MainFrameOfEPR.jsp"  border="0" name="MainFrameOfEPR">
+</frameset>
+</frameset>
+<noframes><body>
+
+</body></noframes>
+</html>
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/FeedView.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/FeedView.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/FeedView.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/FeedView.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,36 @@
+
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<html>
+<head>
+<title>Axis2 Aggregatror:: Feeds</title>
+</head>
+
+<frameset rows="*,*" frameborder="NO" border="0" framespacing="0">
+<frame src="TopFrameOfAggregator.jsp" name="TopFrameOfAggregator" scrolling="NO"  >
+<frameset rows="*" cols="300,*" framespacing="0" frameborder="NO" border="0">
+<frame src="LeftFrameOfFeed.jsp" name="LeftFrameOfFeed"  border="0" noresize>
+<frame src="MainFrameOfFeed.jsp"  border="0" name="MainFrameOfFeed">
+</frameset>
+</frameset>
+<noframes><body>
+
+</body></noframes>
+</html>
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfAggregator.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfAggregator.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfAggregator.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfAggregator.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,86 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+<%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<html>
+
+<head>
+<title>Admin Function</title>
+<style type="text/css">
+</style></head>
+
+<body>
+<table width="100%">
+  <tr>
+     <td colspan="2" >
+      <b>Admin Function</b>
+     </td>
+  </tr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+      <a href="addFeedURL" target="MainFrameOfAggregator">Add Feed Location</a>
+    </td>
+ </tr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+      <a href="ListFeeds" target="MainFrameOfAggregator">show Feed List</a>
+    </td>
+ </tr>
+</table>
+
+<table width="100%">
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+      <hr></hr>
+ <hr></hr>
+    </td>
+ </tr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+      <a href="adminLogout" target="_parent">LogOut</a>
+      <hr></hr>
+ <hr></hr>
+    </td>
+ </tr>
+
+ <tr>
+  <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+   <td align="center"><a href="aggregator.jsp" target="_parent">Back Home</a>
+    <hr></hr>
+ <hr></hr>
+   </td>
+   </tr>
+
+</table>
+</body>
+</html>

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfEPR.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfEPR.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfEPR.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfEPR.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,83 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+<%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<html>
+
+<head>
+<title>EPRS</title>
+<style type="text/css">
+</style></head>
+
+<body>
+<table width="100%">
+  <tr>
+     <td colspan="2" >
+      <b>End Point Reference Derectory</b>
+     </td>
+  </tr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+      <a href="showEPRs" target="MainFrameOfEPR">Show ALL EPRs</a>
+    </td>
+ </tr>
+  <tr>
+  <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+     <td colspan="2" >
+      <b>Search For EPRs</b>
+     </td>
+  </tr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+
+      <a href="searchByOperation" target="MainFrameOfEPR">Search By Operation Name</a>
+    </td>
+ </tr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+
+      <a href="searchByService" target="MainFrameOfEPR">Search By Service Name</a>
+    </td>
+ </tr>
+</table>
+<hr></hr>
+  <hr></hr>
+<table width="100%">
+ <tr>
+  <td>
+
+
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+   <td align="center"><a href="aggregator.jsp" target="_parent">Back Home</a></td>
+   </tr>
+</table>
+</body>
+</html>

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfFeed.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfFeed.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfFeed.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfFeed.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,105 @@
+<%@ page import="org.apache.axis2.feed.aggregrator.registry.FeedObjectRegistry,
+                 org.apache.axis2.feed.aggregrator.registry.FeedObjectRegistryImpl,
+                 org.apache.axis2.feed.aggregrator.util.RSSFeedObjectList,
+                 java.util.Iterator,
+                 org.apache.axis2.feed.feedmodel.rss.impl.RSSFeed,
+                 org.apache.axis2.feed.aggregrator.registry.FeedRegistry,
+                 org.apache.axis2.feed.aggregrator.registry.RegistryImpl"%>
+
+ <%--
+                     /*
+                  * Copyright 2002,2004 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.
+                  */
+                 --%>
+
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+
+<head>
+<title>Feeds</title>
+<style type="text/css">
+</style></head>
+
+<body>
+<font size=5 color="red">
+<%!
+
+ FeedObjectRegistry feedObjectRegistry = new RegistryImpl().getFeedObjectRegistry(); RSSFeedObjectList feedList =null;%>
+<%
+     if(feedObjectRegistry!=null){
+
+    feedList = feedObjectRegistry.getRssFeedObjectList();
+
+ %>
+    <table border="0" width="50%" cellspacing="1" cellpadding="1">
+    <tr>
+
+
+
+        <table border="0" width="100%" cellspacing="1" cellpadding="1">
+        <tr>
+     <td colspan="2" >
+      <b>Feed List</b>
+     </td>
+  </tr>
+    <%
+      Iterator EPRIterator =  feedObjectRegistry.getRssFeedObjectList().iterator();
+       while(EPRIterator.hasNext()){
+
+      RSSFeed  feed = (RSSFeed)EPRIterator.next();
+        %>
+
+
+
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td > <%
+           if(feed.getChannel().getLink()!=null){
+    %>
+    <br>  <a href="singalFeed.jsp?linkid=<%=feed.getChannel().getLink()
+               %>" target="MainFrameOfFeed" ><font color="blue"><%=feed.getChannel().getTitle()%></font></a></br>
+      <%
+           }
+      %>
+    </td>
+ </tr>
+
+         </table>
+
+        <%
+           }
+         %>
+          </tr>
+
+<%
+       }
+    %>
+
+ <hr></hr>
+  <hr></hr>
+<table width="100%">
+ <tr>
+
+  <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+   <td align="center"><a href="aggregator.jsp" target="_parent">Back Home</a></td>
+   </tr>
+</table>
+
+</body>
+</html>

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfAggregator.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfAggregator.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfAggregator.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfAggregator.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,29 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>Axis2 Aggregator Feeds </title>
+<style type="text/css">
+</style></head>
+
+<body>
+</body>
+</html>

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfEPR.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfEPR.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfEPR.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfEPR.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,29 @@
+
+<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>Axis2 Aggregator EPRs </title>
+<style type="text/css">
+</style></head>
+
+<body>
+</body>
+</html>

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfFeed.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfFeed.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfFeed.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfFeed.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,28 @@
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>Axis2 Aggregator Feeds </title>
+<style type="text/css">
+</style></head>
+
+<body>     
+</body>
+</html>

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/TopFrameOfAggregator.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/TopFrameOfAggregator.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/TopFrameOfAggregator.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/TopFrameOfAggregator.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,29 @@
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>Untitled Document</title>
+<style type="text/css">
+</style></head>
+
+<body>
+<jsp:include page="include/header_aggregator.inc"></jsp:include>
+</body>
+</html>

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/addFeed.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/addFeed.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/addFeed.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/addFeed.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,58 @@
+<%@ page import="java.util.*
+                 ,
+                 org.apache.axis2.feed.aggregrator.registry.FeedRegistry,
+                 org.apache.axis2.feed.aggregrator.registry.FeedRegistryImpl,
+                 org.apache.axis2.feed.aggregrator.util.FeedList,
+                 org.apache.axis2.feed.aggregrator.description.FeedDescription,
+                 java.net.URL,
+                 org.apache.axis2.feed.aggregrator.registry.RegistryImpl,
+                 org.apache.axis2.feed.aggregrator.registry.Registry"%>
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+
+<%@ page contentType="text/html;charset=UTF-8" language="java" %><html>
+
+
+<body bgcolor="white">
+<font size=5 color="red">
+<%!
+     Registry registry = new RegistryImpl();
+     FeedRegistry feedRegistry = registry.getFeedRegistry();
+     FeedList feedList = feedRegistry.getFeedList();%>
+<%
+    if(request.getParameter("feedLocatoion")!=null)  {
+	feedList.addFeed(new FeedDescription(new URL(request.getParameter("feedLocatoion"))));
+    registry.store(feedRegistry);
+    }
+%>
+ <form method="get" name="resetForm" action="addURLForm.jsp">
+        <table border="0" width="100%" cellspacing="1" cellpadding="1">
+
+             <tr>
+             <td align="right">
+                 <input  name="submit" type="submit" value=" BACK  " >
+             </td>
+             </tr>
+
+         </table>
+         </form>
+
+</font>
+</body>
+</html>

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/addURLForm.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/addURLForm.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/addURLForm.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/addURLForm.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,63 @@
+<%@ page import="org.apache.axis2.feed.aggregrator.http.Constants"%>
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+  <head><title>ADDING URl</title></head>
+  <%
+      String status = (String)request.getSession().getAttribute(Constants.IS_ADMIN);
+      if(status == null || (! status.equals("Yes"))) {
+          throw new Exception("Invalid logging");
+      }
+  %>
+  <body>
+    <form method="get" name="addURLForm" action="addFeed.jsp">
+        <table border="0" width="100%" cellspacing="1" cellpadding="1">
+            <tr>
+                <td>
+                &nbsp;
+                &nbsp;
+                </td>
+            </tr>
+            <tr>
+                <td align="right" >Feed Loaction :</td>
+                <td> <INPUT align="left" TYPE=TEXT NAME="feedLocatoion">
+                </td>
+             </tr>
+
+             <tr>
+               <td colspan="2">
+                 <br>
+               </td>
+             </tr>
+             <tr>
+             <td align="right">
+                 <input  name="submit" type="submit" value=" ADD  " >
+             </td>
+             <td align="left">
+                <input  name="cancel" type="reset" value=" Clear " >
+             </td>
+             </tr>
+         </table>
+       </form>
+
+     </body>
+  </html>
+
+

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/adminLogout.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/adminLogout.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/adminLogout.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/adminLogout.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,53 @@
+<%@ page import="org.apache.axis2.feed.aggregrator.http.Constants"%>
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<%@ page %>
+
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+  <head><title>LogOut from Axis2-Aggregator : Administration </title></head>
+  <body><p>
+     <%
+      String status = (String)request.getSession().getAttribute(Constants.LOGGING_STATE);
+      if(status == null || (status.equals("No"))) {
+         %> <font color="green">LogOut Succsesfully</font>
+     <%} else{
+        %> <font color="green">LogOut UN-Succsesfully</font> <%
+      }
+     %><hr></hr>
+
+    <table width="100%">
+ <tr>
+ <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+        
+    </td>
+    <td>
+
+         <a href="aggregatoradminLoging.jsp">Login Again</a>
+    </td>
+  <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+   <td align="center"><a href="aggregator.jsp" target="_parent">Back Home</a></td>
+   </tr> </table>
+  </p></body>
+  </html>
+
+

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregator.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregator.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregator.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregator.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,49 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<html>
+
+<head>
+<title>Axis 2 Aggregator- Home</title>
+<link href="css/axis-style.css" rel="stylesheet" type="text/css">
+</head>
+<body>  <jsp:include page="include/header_aggregator.inc"></jsp:include>
+        <br/>
+        Welcome to the AXIS 2 Web service Feed Aggregator
+        <br/>
+        <ul>
+ 	    <li><a href="http://127.0.0.1:8080/axis2/feed/aggregator">Start Aggregator</a>
+        <br/>
+        To enable aggregator: <font color="red">should Start</font>
+        </li>
+        <li><a href="FeedView.jsp">View Available Feeds</a>
+        <br/>
+        Lists all the available Feeds  in this aggregator.
+        </li>
+        <li><a href="EPRView.jsp">View Available EPRS</a>
+        <br/>
+        This provide every EPRS of Services and give Search capability for EPRS
+        </li>
+        <li><a href="aggregatoradminLoging.jsp">Axis2 Agggregator Admin Login</a>
+        <br/>
+        To add or remove Feeds from Aggregator,Use this login
+        </li>
+        </ul>
+        </body>
+</html>
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregatoradmin.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregatoradmin.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregatoradmin.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregatoradmin.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,42 @@
+<%@ page import="org.apache.axis2.feed.aggregrator.http.Constants"%>
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<%@ page %>        <%@ page contentType="text/html;charset=UTF-8" language="java" %>
+        <html>
+
+        <head>
+<title>Axis2 Aggregatror:: Administrations Page</title>
+</head>
+
+<frameset rows="*,*" frameborder="NO" border="0" framespacing="0">
+<frame src="TopFrameOfAggregator.jsp" name="TopFrameOfAggregator" scrolling="NO"  >
+<frameset rows="*" cols="300,*" framespacing="0" frameborder="NO" border="0">
+<frame src="LeftFrameOfAggregator.jsp" name="LeftFrameOfAggregator"  border="0" noresize>
+<frame src="MainFrameOfAggregator.jsp"  border="0" name="MainFrameOfAggregator">
+</frameset>
+</frameset>
+<noframes><body>
+  <%
+      String status = (String)request.getSession().getAttribute(Constants.LOGGING_STATE);
+      if(status == null || (! status.equals("Yes"))) {
+          throw new Exception("Invalid logging");
+      }
+  %>
+</body></noframes>
+</html>
\ No newline at end of file

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregatoradminLoging.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregatoradminLoging.jsp?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregatoradminLoging.jsp (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregatoradminLoging.jsp Fri Sep  9 00:22:16 2005
@@ -0,0 +1,72 @@
+<%@ page import="org.apache.axis2.feed.aggregrator.http.Constants"%>
+ <%--
+    /*
+ * Copyright 2002,2004 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.
+ */
+--%>
+
+<%@ page %>
+
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+  <head><title>Login to Axis2-Aggregator : Administration </title></head>
+  <body>
+     <jsp:include page="include/header_aggregator.inc"></jsp:include>
+    <form method="get" name="AdminLogingForm" action="aggregatoradmin">
+        <table border="0" width="100%" cellspacing="1" cellpadding="1">
+            <tr>
+                <td>
+                &nbsp;
+                &nbsp;
+                </td>
+            </tr>
+            <tr>
+                <td align="right" >User Name :</td>
+                <td> <INPUT align="left" TYPE=TEXT NAME="userName">
+                </td>
+             </tr>
+             <tr>
+                <td align="right">Password     : </td>
+                <td><INPUT align="left" TYPE=PASSWORD NAME="password">
+                </td>
+             </tr>
+             <tr>
+               <td colspan="2">
+                 <br>
+               </td>
+             </tr>
+             <tr>
+             <td align="right">
+                 <input  name="submit" type="submit" value=" Login  " >
+             </td>
+             <td align="left">
+                <input  name="cancel" type="reset" value=" Clear " >
+             </td>
+             </tr>
+         </table>
+       </form>
+       <hr></hr>
+<table width="100%">
+ <tr>
+  <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+   <td align="center"><a href="aggregator.jsp" target="_parent">Back Home</a></td>
+   </tr> </table>
+
+     </body>
+  </html>
+
+



Mime
View raw message