Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 32926 invoked from network); 9 Sep 2005 07:26:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Sep 2005 07:26:43 -0000 Received: (qmail 6785 invoked by uid 500); 9 Sep 2005 07:26:27 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 6282 invoked by uid 500); 9 Sep 2005 07:26:25 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 6161 invoked by uid 500); 9 Sep 2005 07:26:22 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 6077 invoked by uid 99); 9 Sep 2005 07:26:20 -0000 X-ASF-Spam-Status: No, hits=-9.7 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 09 Sep 2005 00:26:11 -0700 Received: (qmail 31939 invoked by uid 65534); 9 Sep 2005 07:26:10 -0000 Message-ID: <20050909072610.31938.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: axis2-cvs@ws.apache.org From: chinthaka@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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. + */ +--%> + + + + +Untitled Document + + + + +
+ + + + +
+      + + LogOut +
+ + 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. + */ +--%> + + + +Axis2 Aggregatror:: Feeds + + + + + + + + + +<body> + +</body> + \ 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. + */ +--%> + + + +Axis2 Aggregatror:: Feeds + + + + + + + + + +<body> + +</body> + \ 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. + */ +--%> + + + + +Admin Function + + + + + + + + + + + + + + + +
+ Admin Function +
+      + + Add Feed Location +
+      + + show Feed List +
+ + + + + + + + + + + + + + + + +
+      + +
+
+
+      + + LogOut +
+
+
+      + Back Home +
+
+
+ + 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. + */ +--%> + + + + +EPRS + + + + + + + + + + + + + + + + + + + + + + + +
+ End Point Reference Derectory +
+      + + Show ALL EPRs +
+      + + Search For EPRs +
+      + + + Search By Operation Name +
+      + + + Search By Service Name +
+
+
+ + + + + +
+ + +      + Back Home
+ + 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" %> + + + +Feeds + + + + +<%! + + FeedObjectRegistry feedObjectRegistry = new RegistryImpl().getFeedObjectRegistry(); RSSFeedObjectList feedList =null;%> +<% + if(feedObjectRegistry!=null){ + + feedList = feedObjectRegistry.getRssFeedObjectList(); + + %> + + + + + +
+ + + + <% + Iterator EPRIterator = feedObjectRegistry.getRssFeedObjectList().iterator(); + while(EPRIterator.hasNext()){ + + RSSFeed feed = (RSSFeed)EPRIterator.next(); + %> + + + + + + + + +
+ Feed List +
+      + <% + if(feed.getChannel().getLink()!=null){ + %> +
<%=feed.getChannel().getTitle()%>
+ <% + } + %> +
+ + <% + } + %> + + +<% + } + %> + +
+
+ + + + + + +
+      + Back Home
+ + + 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. + */ +--%> + + + + +Axis2 Aggregator Feeds + + + + + 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. + */ +--%> + + + + +Axis2 Aggregator EPRs + + + + + 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" %> + + + +Axis2 Aggregator Feeds + + + + + 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" %> + + + +Untitled Document + + + + + + 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" %> + + + + +<%! + 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); + } +%> +
+ + + + + + +
+ +
+
+ +
+ + 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" %> + + ADDING URl + <% + String status = (String)request.getSession().getAttribute(Constants.IS_ADMIN); + if(status == null || (! status.equals("Yes"))) { + throw new Exception("Invalid logging"); + } + %> + +
+ + + + + + + + + + + + + + + + +
+   +   +
Feed Loaction : +
+
+
+ + + +
+
+ + + + + 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" %> + + LogOut from Axis2-Aggregator : Administration +

+ <% + String status = (String)request.getSession().getAttribute(Constants.LOGGING_STATE); + if(status == null || (status.equals("No"))) { + %> LogOut Succsesfully + <%} else{ + %> LogOut UN-Succsesfully <% + } + %>


+ + + + + + + +
+      + + + + Login Again + +      + Back Home
+

+ + + 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. + */ +--%> + + + + +Axis 2 Aggregator- Home + + + +
+ Welcome to the AXIS 2 Web service Feed Aggregator +
+ + + \ 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" %> + + + +Axis2 Aggregatror:: Administrations Page + + + + + + + + + +<body> + <% + String status = (String)request.getSession().getAttribute(Constants.LOGGING_STATE); + if(status == null || (! status.equals("Yes"))) { + throw new Exception("Invalid logging"); + } + %> +</body> + \ 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" %> + + Login to Axis2-Aggregator : Administration + + +
+ + + + + + + + + + + + + + + + + + + +
+   +   +
User Name : +
Password : +
+
+
+ + + +
+
+
+ + + + +
+      + Back Home
+ + + + +