You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2005/09/09 09:25:01 UTC
svn commit: r279723 [1/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...
Author: chinthaka
Date: Fri Sep 9 00:22:16 2005
New Revision: 279723
URL: http://svn.apache.org/viewcvs?rev=279723&view=rev
Log:
Comitting RSS stuff for Indika
Added:
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/conf/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/conf/web.xml
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/EPRDescription.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/FeedDescription.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/AggregatorAgent.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/AggreratorServlet.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/Constants.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/RequestHandler.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/FeedReader.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/impl/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/impl/FeedReaderImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedObjectRegistry.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedObjectRegistryImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedRegistry.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedRegistryImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/Registry.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/RegistryConstants.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/RegistryImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/FeedScheduler.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/FeedSchedulerTask.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/util/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/util/ATOMFeedObjectList.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/util/EndPointList.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/util/FeedList.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/util/RSSFeedObjectList.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/disptcher/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/disptcher/FeedDisptcher.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/AbstractBuilderFactory.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/AbstractFeedFactory.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/Feed.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/FeedBuilder.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/FeedContainer.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/FeedFactory.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/Serializer.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/ATOMConstants.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/ATOMEntry.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/ATOMFeed.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/ContentElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/DateElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/IDElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/LinkElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/ModeAttribute.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/PersonalElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/PersonalEmailElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/PersonalNameElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/PersonalURLElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/TypeAttribute.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/builder/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/builder/ATOMFeedBuilder.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/factory/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/factory/ATOMFactory.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/factory/impl/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/factory/impl/ATOMFactoryImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMAuthorElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMContentElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMCreatedElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMEntryElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMFeedImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMID.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMIssuedElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMLinkElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMModifiedElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMSummaryElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMTaglineElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMTitleElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ContentElementImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/DateElementImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/IDElementImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/LinkElementImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ModeAttributeImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalElementImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalEmailElementImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalNameElementImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalURLElementImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/TypeAttributeImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/builder/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/builder/EPRListBuilder.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/serialize/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/serialize/Serializer.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/builder/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/builder/FeedListBuilder.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/serialize/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/serialize/Serializer.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CategoryElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Channel.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CloudElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Constants.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CopyrightElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/DocsElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/EnclosureElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/GeneratorElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/GuidElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/ImageElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Item.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/LanguageElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/LastBuildDate.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/ManagingEditorElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/PubDate.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/SourceElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/TextInputElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/TtlElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/WebMasterElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/builder/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/builder/RSSFeedBuilder.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/factory/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/factory/RSSFactory.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/factory/impl/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/factory/impl/RSSFactoryImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/LastBuildDateImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/PubDateImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSCategoryElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSChannel.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSCloudElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSCopyrightElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSDocsElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSEnclosureElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSFeed.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSGeneratorElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSGuidElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSImageElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSItem.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSLanguageElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSManagingEditorElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSSourceElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSTextInputElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSTtlElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/impl/RSSWebMasterElement.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/util/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/util/impl/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/util/impl/FeedContainerImpl.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/EPRlist.xml
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/atom.xml
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/feedlist.xml
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test-resources/rss.xml
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/AbstractTestCase.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/EPRDescriptionTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/EPRTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FEEDTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FeedDescriptionTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/aggregrator/FeedObjectTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/builder/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/builder/ATOMFeedBuilderTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/factory/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/factory/impl/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/factory/impl/ATOMFactoryImplTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMEntryElementTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMFeedImplTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ATOMModelTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/ContentElementImplTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/DateElementImplTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/LinkElementImplTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/atom/impl/PersonalElementImplTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/eprlist/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/eprlist/builder/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/eprlist/builder/EPRListBuilderTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/feedlist/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/feedlist/builder/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/feedlist/builder/FeedListBuilderTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/builder/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/builder/RSSFeedBuilderTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/factory/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/factory/impl/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/factory/impl/RSSFactoryImplTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSChannelTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSFeedTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSItemTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/test/org/apache/axis2/feed/feedmodel/rss/impl/RSSModelTest.java
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/BottomFrameOfAggregator.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/EPRView.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/FeedView.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfAggregator.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfEPR.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/LeftFrameOfFeed.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfAggregator.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfEPR.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/MainFrameOfFeed.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/TopFrameOfAggregator.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/addFeed.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/addURLForm.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/adminLogout.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregator.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregatoradmin.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/aggregatoradminLoging.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/feedList.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/images/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/images/aggregator.JPG (with props)
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/images/axis.jpg (with props)
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/include/
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/include/header_aggregator.inc
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/searchByOperation.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/searchByService.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/showEPRs.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/showFeedList.jsp
webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/webapp/singalFeed.jsp
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/conf/web.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/conf/web.xml?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/conf/web.xml (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/conf/web.xml Fri Sep 9 00:22:16 2005
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+ <servlet>
+ <servlet-name>AGENT</servlet-name>
+ <servlet-class>org.apache.axis2.feed.aggregrator.http.AggregatorAgent</servlet-class>
+ </servlet>
+ <servlet>
+ <servlet-name>AGGREGRATEServlet</servlet-name>
+ <display-name>AGGRE AXIS</display-name>
+ <description>AGGRE feed of web services deployed on axis engine</description>
+ <servlet-class>org.apache.axis2.feed.aggregrator.http.AggreratorServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>AGGREGRATEServlet</servlet-name>
+ <url-pattern>/feed/aggregator</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AGENT</servlet-name>
+ <url-pattern>/feed/agent</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AGENT</servlet-name>
+ <url-pattern>/singleFeed</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AGENT</servlet-name>
+ <url-pattern>/aggregatoradmin</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AGENT</servlet-name>
+ <url-pattern>/ListFeeds</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AGENT</servlet-name>
+ <url-pattern>/adminLogout</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AGENT</servlet-name>
+ <url-pattern>/addFeedURL</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AGENT</servlet-name>
+ <url-pattern>/searchByService</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AGENT</servlet-name>
+ <url-pattern>/searchByOperation</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AGENT</servlet-name>
+ <url-pattern>/showEPRs</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/EPRDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/EPRDescription.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/EPRDescription.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/EPRDescription.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,162 @@
+package org.apache.axis2.feed.aggregrator.description;
+
+/*
+* 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 java.net.URL;
+
+public class EPRDescription {
+
+ public static final String TRANSPORT_HTTP = "http";
+
+ private String host = null;
+ private String operation = null;
+ private String service = null;
+ private URL url;
+ private int port = 80;
+
+ public EPRDescription(URL url) throws Exception {
+ if (isEPR(url.toString())) {
+ this.url = url;
+ extractOperation(url.toString());
+ } else {
+ this.url = null;
+ }
+ }
+
+ protected void extractOperation(String eprText) {
+ if (eprText != null) {
+ String extract [] = eprText.split("/");
+
+ if (extract[0].length() >= 1) {
+ String transportType = extract[0].substring(0, extract[0].length() - 1);
+
+ if (transportType.equalsIgnoreCase(TRANSPORT_HTTP)) {
+ String operation = null;
+ if (extract.length >= 1) {
+ this.operation = extract[extract.length - 1];
+ }
+
+ if (extract.length > 2) {
+
+ this.service = extract[extract.length - 2];
+ String extracthost [] = extract[2].split(":");
+
+
+ if (extracthost.length >= 2) {
+ this.host = extracthost[extracthost.length - 2];
+ this.port = new Integer(extracthost[extracthost.length - 1]).intValue();
+
+ } else {
+ host = extracthost[0];
+ }
+
+
+ }
+ }
+ }
+ }
+
+
+ }
+
+
+ protected boolean isEPR(String eprText) throws Exception {
+
+ if (eprText != null) {
+ String extract [] = eprText.split("/");
+
+ if (extract[0].length() >= 1) {
+ String transportType = extract[0].substring(0, extract[0].length() - 1);
+
+ if (transportType.equalsIgnoreCase(TRANSPORT_HTTP)) {
+ String operation1 = null;
+ if (extract.length >= 1) {
+ operation1 = extract[extract.length - 1];
+ }
+ String service1 = null;
+ if (extract.length > 2) {
+
+ service1 = extract[extract.length - 2];
+ String extracthost [] = extract[2].split(":");
+
+ String host1 = null;
+ int port1 = 80;
+
+ if (extracthost.length >= 2) {
+ host1 = extracthost[extracthost.length - 2];
+ port1 = new Integer(extracthost[extracthost.length - 1]).intValue();
+
+ } else {
+ host1 = extracthost[0];
+ }
+ if (operation1 != null & service1 != null & host1 != null) {
+ return true;
+ }
+
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ public String getHost() {
+ return host;
+ }
+
+ public String getOperation() {
+ return operation;
+ }
+
+ public String getService() {
+ return service;
+ }
+
+ public URL getUrl() {
+ return url;
+ }
+
+ public void setUrl(URL url) {
+ this.url = url;
+ extractOperation(url.toString());
+ }
+
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (!(o instanceof EPRDescription)) return false;
+
+ final EPRDescription eprDescription = (EPRDescription) o;
+
+ if (url != null ? !url.equals(eprDescription.url) : eprDescription.url != null) return false;
+
+ return true;
+ }
+
+ public int hashCode() {
+ return (url != null ? url.hashCode() : 0);
+ }
+
+ public int getPort() {
+ return port;
+ }
+
+ public void setPort(int port) {
+ this.port = port;
+ }
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/FeedDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/FeedDescription.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/FeedDescription.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/description/FeedDescription.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,82 @@
+package org.apache.axis2.feed.aggregrator.description;
+
+/*
+* 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 java.net.URL;
+
+
+public class FeedDescription {
+
+ private URL feedURL;
+ private boolean allreadyRead = false;
+ private int count = 0;
+ private boolean neverRead = false;
+
+ public FeedDescription(URL feedURL) {
+ this.feedURL = feedURL;
+ }
+
+ public URL getFeedURL() {
+ return feedURL;
+ }
+
+ public void setFeedURL(URL feedURL) {
+ this.feedURL = feedURL;
+ }
+
+ public void setAllReadyRead(boolean allreadyRead) {
+ this.allreadyRead = allreadyRead;
+ }
+
+ public boolean isAllReadyRead() {
+ if (count >= 10) {
+ setAllReadyRead(false);
+ }
+ return allreadyRead;
+ }
+
+ public void incrementCount(int increment) {
+ count += increment;
+ }
+
+ public void resetCount() {
+ count = 0;
+ }
+
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (!(o instanceof FeedDescription)) return false;
+
+ final FeedDescription feedDescription = (FeedDescription) o;
+
+ if (feedURL != null ? !feedURL.equals(feedDescription.feedURL) : feedDescription.feedURL != null) return false;
+
+ return true;
+ }
+
+ public int hashCode() {
+ return (feedURL != null ? feedURL.hashCode() : 0);
+ }
+
+ public boolean isNeverRead() {
+ return neverRead;
+ }
+
+ public void setNeverRead(boolean neverRead) {
+ this.neverRead = neverRead;
+ }
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/AggregatorAgent.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/AggregatorAgent.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/AggregatorAgent.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/AggregatorAgent.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,49 @@
+package org.apache.axis2.feed.aggregrator.http;
+
+/*
+* 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 javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+
+
+public class AggregatorAgent extends HttpServlet {
+
+ private RequestHandler requestHandler;
+
+ public void init(ServletConfig config) throws ServletException {
+ requestHandler = new RequestHandler();
+
+ }
+
+ protected void doGet(HttpServletRequest httpServletRequest,
+ HttpServletResponse httpServletResponse)
+ throws ServletException, IOException {
+ requestHandler.handle(httpServletRequest, httpServletResponse);
+
+ }
+
+ protected void doPost(HttpServletRequest httpServletRequest,
+ HttpServletResponse httpServletResponse)
+ throws ServletException, IOException {
+ doGet(httpServletRequest, httpServletResponse);
+ }
+
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/AggreratorServlet.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/AggreratorServlet.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/AggreratorServlet.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/AggreratorServlet.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,145 @@
+package org.apache.axis2.feed.aggregrator.http;
+
+/*
+* 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.aggregrator.description.FeedDescription;
+import org.apache.axis2.feed.aggregrator.registry.*;
+import org.apache.axis2.feed.aggregrator.scheduler.FeedScheduler;
+import org.apache.axis2.feed.aggregrator.scheduler.FeedSchedulerTask;
+import org.apache.axis2.feed.aggregrator.util.FeedList;
+import org.apache.axis2.feed.feedmodel.rss.Channel;
+import org.apache.axis2.feed.feedmodel.rss.Item;
+import org.apache.axis2.feed.feedmodel.rss.impl.LastBuildDateImpl;
+import org.apache.axis2.feed.feedmodel.rss.impl.PubDateImpl;
+import org.apache.axis2.feed.feedmodel.rss.impl.RSSChannel;
+import org.apache.axis2.feed.feedmodel.rss.impl.RSSFeed;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Date;
+import java.util.Iterator;
+import java.util.Properties;
+
+
+public class AggreratorServlet extends HttpServlet {
+
+
+ public void init() {
+ initilize();
+
+ }
+
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ Channel channel;
+ RSSFeed rssFeed;
+ Registry registry = new RegistryImpl();
+ FeedObjectRegistry feedObjectRegistry = registry.getFeedObjectRegistry();
+ channel = new RSSChannel("axis2 aggregrator", new URL("http://ws.apache.org/axis2/"), "Aggregrator feed channel");
+ channel.addLastBuildDate(new LastBuildDateImpl(new Date(System.currentTimeMillis())));
+ channel.addPudDate(new PubDateImpl(new Date(System.currentTimeMillis())));
+ rssFeed = new RSSFeed("2.0");
+ rssFeed.addChannel(channel);
+ response.setContentType("text/xml; charset=utf-8");
+
+ try {
+ Iterator iterator = feedObjectRegistry.getRssFeedObjectList().iterator();
+
+ if (iterator != null) {
+
+ while (iterator.hasNext()) {
+ Iterator iterator1 = ((RSSFeed) iterator.next()).getChannel().getItems();
+ while (iterator1.hasNext()) {
+ Item item = (Item) iterator1.next();
+ rssFeed.getChannel().addItem(item);
+ rssFeed.getChannel().addLastBuildDate(new LastBuildDateImpl(new Date(System.currentTimeMillis())));
+ }
+
+
+ }
+
+
+ } else {
+
+ }
+ XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(response.getOutputStream());
+ rssFeed.serialize(writer);
+ writer.flush();
+
+ } catch (XMLStreamException e) {
+ e.printStackTrace();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+
+ }
+
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ doPost(request, response);
+ }
+
+ private void initilize() {
+ try {
+ Properties sysProperties = System.getProperties();
+
+ sysProperties.put("proxyHost", "cache.mrt.ac.lk");
+ sysProperties.put("proxyPort", "3128");
+ sysProperties.put("proxySet", "true");
+
+ FeedObjectRegistry feedObjectRegistry = new FeedObjectRegistryImpl();
+ FeedRegistry feedRegistry = new FeedRegistryImpl();
+ FeedList feedList = null;
+ if (feedRegistry.getFeedList() != null) {
+
+ feedList = feedRegistry.getFeedList();
+ feedList.addFeed(new FeedDescription(new URL("http://127.0.0.1:8080/axis2/feed/RSS")));
+ feedRegistry.setFeedList(feedList);
+ }
+ Registry registry = new RegistryImpl();
+ registry.store(feedObjectRegistry);
+ registry.store(feedRegistry);
+ FeedSchedulerTask feedSchedulerTask = new FeedSchedulerTask(feedList);
+ FeedScheduler feedScheduler = new FeedScheduler();
+ feedScheduler.schedule(feedSchedulerTask);
+
+
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ }
+
+ public void destroy() {
+ Registry registry = new RegistryImpl();
+ FeedRegistry feedRegistry = registry.getFeedRegistry();
+
+ try {
+ feedRegistry.getFeedList().destroy();
+ } catch (XMLStreamException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/Constants.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/Constants.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/Constants.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/Constants.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,45 @@
+package org.apache.axis2.feed.aggregrator.http;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public class Constants {
+
+ public static String SERCH_PAGE = "search";
+ public static String ADMIN_PAGE = "aggregatoradmin.jsp";
+ public static String ADMIN_REQUEST = "aggregatoradmin";
+ public static String USER_NAME = "admin";
+ public static String PASS_WORd = "aggregator";
+ public static String LOGGING_STATE = "LOGGED";
+ public static String ADD_FEED_PAGE = "addURLForm.jsp";
+ public static String ADD_FEED = "addFeedURL";
+ public static String SHOW_FEED_LIST_PAGE = "showFeedList.jsp";
+ public static String SHOW_FEED_LIST = "ListFeeds";
+ public static String IS_ADMIN = "ISADMIN";
+ public static String ADMIN_LOGOUT = "adminLogout";
+ public static String ADMIN_LOGOUT_PAGE = "adminLogout.jsp";
+ public static String ADMIN_LOGING_PAGE = "aggregatoradminLoging.jsp";
+ public static String SINGAL_FEED = "singalFeed";
+ public static String SINGAL_FEED_PAGE = "singalFeed.jsp";
+ public static String SINGLE_FEED_LOCATION = "FeedLOcation";
+ public static String SHOW_EPR = "showEPRs";
+ public static String SHOW_EPR_PAGE = "showEPRs.jsp";
+ public static String SEARCH_BY_OPRATION = "searchByOperation";
+ public static String SEARCH_BY_OPRATION_PAGE = "searchByOperation.jsp";
+ public static String SEARCH_BY_SERVICE = "searchByService";
+ public static String SEARCH_BY_SERVICE_PAGE = "searchByService.jsp";
+
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/RequestHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/RequestHandler.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/RequestHandler.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/http/RequestHandler.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,126 @@
+package org.apache.axis2.feed.aggregrator.http;
+
+/*
+* 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 javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+
+
+public class RequestHandler {
+ private boolean isadminLogged = false;
+
+ protected void handle(HttpServletRequest httpServletRequest,
+ HttpServletResponse httpServletResponse)
+ throws IOException {
+ String filePart = httpServletRequest.getRequestURL().toString();
+ String linkOfFeed = filePart.substring(filePart.lastIndexOf("singleFeed?linkid=") + new String("singleFeed?linkid=").length(), filePart.length());
+
+ if ((filePart != null) && filePart.endsWith(Constants.ADMIN_REQUEST)) {
+ adminLogging(httpServletRequest, httpServletResponse);
+ return;
+ } else if ((filePart != null) && filePart.endsWith(Constants.ADD_FEED)) {
+ addFeed(httpServletRequest, httpServletResponse);
+ return;
+ } else if ((filePart != null) && filePart.endsWith(Constants.SHOW_FEED_LIST)) {
+ showFeedList(httpServletRequest, httpServletResponse);
+ return;
+ } else if ((filePart != null) && filePart.endsWith(Constants.ADMIN_LOGOUT)) {
+ logOut(httpServletRequest, httpServletResponse);
+ return;
+ } //else if((filePart != null)&&(linkOfFeed!=null)) {
+ // showSingleFeed(httpServletRequest,httpServletResponse,linkOfFeed);
+ // }
+ else if ((filePart != null) && filePart.endsWith(Constants.SHOW_EPR)) {
+ showEPRS(httpServletRequest, httpServletResponse);
+ return;
+ } else if ((filePart != null) && filePart.endsWith(Constants.SEARCH_BY_SERVICE)) {
+ searchByService(httpServletRequest, httpServletResponse);
+ return;
+ } else if ((filePart != null) && filePart.endsWith(Constants.SEARCH_BY_OPRATION)) {
+ searchByOperation(httpServletRequest, httpServletResponse);
+ return;
+ }
+ }
+
+ private void adminLogging(HttpServletRequest req, HttpServletResponse res) throws IOException {
+ String username = req.getParameter("userName");
+ String password = req.getParameter("password");
+ if (username == null
+ || password == null
+ || username.trim().equals("")
+ || password.trim().equals("")) {
+ throw new IOException("invalid user name");
+ }
+ String adminUserName = Constants.USER_NAME;
+
+ String adminPassword = Constants.PASS_WORd;
+ if (username != null
+ && password != null
+ && username.equals(adminUserName)
+ && password.equals(adminPassword)) {
+ req.getSession().setAttribute(Constants.LOGGING_STATE, "Yes");
+ isadminLogged = true;
+ res.sendRedirect(Constants.ADMIN_PAGE);
+ } else {
+ throw new IOException("invalid user name");
+ }
+ }
+
+ private void addFeed(HttpServletRequest req, HttpServletResponse res) throws IOException {
+
+ if (isadminLogged) {
+ req.getSession().setAttribute(Constants.IS_ADMIN, "Yes");
+ } else {
+ req.getSession().setAttribute(Constants.IS_ADMIN, "No");
+ }
+ res.sendRedirect(Constants.ADD_FEED_PAGE);
+ }
+
+ private void showFeedList(HttpServletRequest req, HttpServletResponse res) throws IOException {
+ if (isadminLogged) {
+ req.getSession().setAttribute(Constants.IS_ADMIN, "Yes");
+ } else {
+ req.getSession().setAttribute(Constants.IS_ADMIN, "No");
+ }
+ res.sendRedirect(Constants.SHOW_FEED_LIST_PAGE);
+ }
+
+ private void logOut(HttpServletRequest req, HttpServletResponse res) throws IOException {
+ isadminLogged = false;
+ req.getSession().setAttribute(Constants.IS_ADMIN, "No");
+ req.getSession().setAttribute(Constants.LOGGING_STATE, "No");
+ res.sendRedirect(Constants.ADMIN_LOGOUT_PAGE);
+ }
+
+ private void showSingleFeed(HttpServletRequest req, HttpServletResponse res, String linkOfFeed) throws IOException {
+ req.getSession().setAttribute(Constants.SINGLE_FEED_LOCATION, linkOfFeed);
+ res.sendRedirect(Constants.SINGAL_FEED_PAGE);
+ }
+
+ private void searchByOperation(HttpServletRequest req, HttpServletResponse res) throws IOException {
+ res.sendRedirect(Constants.SEARCH_BY_OPRATION_PAGE);
+ }
+
+ private void searchByService(HttpServletRequest req, HttpServletResponse res) throws IOException {
+ res.sendRedirect(Constants.SEARCH_BY_SERVICE_PAGE);
+ }
+
+ private void showEPRS(HttpServletRequest req, HttpServletResponse res) throws IOException {
+ res.sendRedirect(Constants.SHOW_EPR_PAGE);
+ }
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/FeedReader.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/FeedReader.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/FeedReader.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/FeedReader.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,23 @@
+package org.apache.axis2.feed.aggregrator.listner;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public interface FeedReader {
+
+ public void readFeed();
+
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/impl/FeedReaderImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/impl/FeedReaderImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/impl/FeedReaderImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/listner/impl/FeedReaderImpl.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,143 @@
+package org.apache.axis2.feed.aggregrator.listner.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.aggregrator.description.EPRDescription;
+import org.apache.axis2.feed.aggregrator.description.FeedDescription;
+import org.apache.axis2.feed.aggregrator.listner.FeedReader;
+import org.apache.axis2.feed.aggregrator.registry.FeedObjectRegistry;
+import org.apache.axis2.feed.aggregrator.registry.FeedRegistry;
+import org.apache.axis2.feed.aggregrator.registry.Registry;
+import org.apache.axis2.feed.aggregrator.registry.RegistryImpl;
+import org.apache.axis2.feed.aggregrator.util.EndPointList;
+import org.apache.axis2.feed.aggregrator.util.FeedList;
+import org.apache.axis2.feed.feedmodel.AbstractBuilderFactory;
+import org.apache.axis2.feed.feedmodel.AbstractFeedFactory;
+import org.apache.axis2.feed.feedmodel.Feed;
+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 javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import java.io.BufferedInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Iterator;
+
+
+public class FeedReaderImpl implements FeedReader {
+
+ private FeedList feedList;
+ private Registry registry = new RegistryImpl();
+
+ private FeedObjectRegistry feedObjectRegistry = registry.getFeedObjectRegistry();
+ private FeedRegistry feedRegistry = registry.getFeedRegistry();
+
+ public FeedReaderImpl(FeedList feedList) {
+ this.feedList = feedList;
+
+ }
+
+ public void readFeed() {
+ if (feedList.iterator() != null) {
+ Iterator iterator = feedList.iterator();
+ while (iterator.hasNext()) {
+ FeedDescription description = (FeedDescription) iterator.next();
+ if (!description.isAllReadyRead() && !description.isNeverRead()) {
+ RSSFeed rssFeed = (RSSFeed) readFeed(description);
+ if (rssFeed != null) {
+ feedObjectRegistry.getRssFeedObjectList().addFeed(rssFeed);
+ registry.store(feedObjectRegistry);
+ Iterator iterator1 = rssFeed.getChannel().getItems();
+ while (iterator1.hasNext()) {
+ try {
+ Item item = (Item) iterator1.next();
+ if (item.getGuidElement() != null) {
+ fillEPRs(feedRegistry.getEndPointList(), item.getGuidElement().getGuid());
+ } // feedRegistry.getEndPointList().addEPR(new EPRDescription(new URL(item.getGuidElement().getGuid())));
+ } catch (Exception e) {
+ continue;
+
+ }
+ }
+
+ } else {
+ description.setNeverRead(true);
+ }
+ description.setAllReadyRead(true);
+ description.resetCount();
+ description.incrementCount(3);
+
+ } else {
+ description.incrementCount(3);
+ continue;
+ }
+
+ }
+ }
+ }
+
+ private void fillEPRs(EndPointList eprList, String epr) throws Exception {
+ String eprArray [] = epr.split(",");
+ for (int i = 0; i < eprArray.length; i++) {
+ eprList.addEPR(new EPRDescription(new URL(eprArray[i])));
+
+ }
+
+
+ }
+
+ private Feed readFeed(FeedDescription feedDescription) {
+ Feed feed = null;
+ try {
+
+ URL url = feedDescription.getFeedURL();
+ InputStream in = url.openStream();
+ BufferedInputStream bufIn = new BufferedInputStream(in);
+ try {
+
+ XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(bufIn);
+ FeedBuilder builder = AbstractBuilderFactory.getFeedBuilder((RSSFactory) AbstractFeedFactory.getFeedFactory("RSS"), parser);
+ feed = (RSSFeed) builder.getFeed();
+
+
+ } catch (XMLStreamException e) {
+
+ e.printStackTrace();
+ } catch (MalformedURLException e) {
+
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+
+ } catch (MalformedURLException mue) {
+
+ return null;
+ } catch (IOException ioe) {
+ return null;
+
+ }
+ return feed;
+ }
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedObjectRegistry.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedObjectRegistry.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedObjectRegistry.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedObjectRegistry.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,33 @@
+package org.apache.axis2.feed.aggregrator.registry;
+
+/*
+* 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.aggregrator.util.ATOMFeedObjectList;
+import org.apache.axis2.feed.aggregrator.util.RSSFeedObjectList;
+
+public interface FeedObjectRegistry {
+
+ public ATOMFeedObjectList getAtomFeedObjectList();
+
+ public void setAtomFeedObjectList(ATOMFeedObjectList atomFeedObjectList);
+
+ public RSSFeedObjectList getRssFeedObjectList();
+
+ public void setRssFeedObjectList(RSSFeedObjectList rssFeedObjectList);
+
+ public void cleanUp();
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedObjectRegistryImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedObjectRegistryImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedObjectRegistryImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedObjectRegistryImpl.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,55 @@
+package org.apache.axis2.feed.aggregrator.registry;
+
+/*
+* 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.aggregrator.util.ATOMFeedObjectList;
+import org.apache.axis2.feed.aggregrator.util.RSSFeedObjectList;
+
+public class FeedObjectRegistryImpl implements FeedObjectRegistry {
+
+
+ private ATOMFeedObjectList atomFeedObjectList;
+ private RSSFeedObjectList rssFeedObjectList;
+
+
+ public FeedObjectRegistryImpl() {
+ atomFeedObjectList = new ATOMFeedObjectList();
+ rssFeedObjectList = new RSSFeedObjectList();
+ }
+
+ public ATOMFeedObjectList getAtomFeedObjectList() {
+ return atomFeedObjectList;
+ }
+
+ public void setAtomFeedObjectList(ATOMFeedObjectList atomFeedObjectList) {
+ this.atomFeedObjectList = atomFeedObjectList;
+ }
+
+ public RSSFeedObjectList getRssFeedObjectList() {
+ return rssFeedObjectList;
+ }
+
+ public void setRssFeedObjectList(RSSFeedObjectList rssFeedObjectList) {
+ this.rssFeedObjectList = rssFeedObjectList;
+ }
+
+ public void cleanUp() {
+ rssFeedObjectList.cleanUp();
+ atomFeedObjectList.cleanUp();
+
+ }
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedRegistry.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedRegistry.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedRegistry.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedRegistry.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,32 @@
+package org.apache.axis2.feed.aggregrator.registry;
+
+/*
+* 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.aggregrator.util.EndPointList;
+import org.apache.axis2.feed.aggregrator.util.FeedList;
+
+
+public interface FeedRegistry {
+
+ public FeedList getFeedList();
+
+ public void setFeedList(FeedList feedList);
+
+ public EndPointList getEndPointList();
+
+ public void setEndPointList(EndPointList endPointList);
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedRegistryImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedRegistryImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedRegistryImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/FeedRegistryImpl.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,48 @@
+package org.apache.axis2.feed.aggregrator.registry;
+
+/*
+* 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.aggregrator.util.EndPointList;
+import org.apache.axis2.feed.aggregrator.util.FeedList;
+
+public class FeedRegistryImpl implements FeedRegistry {
+
+ private FeedList feedList = null;
+ private EndPointList endPointList = null;
+
+
+ public FeedRegistryImpl() {
+ feedList = new FeedList();
+ endPointList = new EndPointList();
+ }
+
+ public FeedList getFeedList() {
+ return feedList;
+ }
+
+ public void setFeedList(FeedList feedList) {
+ this.feedList = feedList;
+ }
+
+ public EndPointList getEndPointList() {
+ return endPointList;
+ }
+
+ public void setEndPointList(EndPointList endPointList) {
+ this.endPointList = endPointList;
+ }
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/Registry.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/Registry.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/Registry.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/Registry.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,28 @@
+package org.apache.axis2.feed.aggregrator.registry;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public interface Registry {
+
+ public FeedObjectRegistry getFeedObjectRegistry();
+
+ public FeedRegistry getFeedRegistry();
+
+ public void store(FeedObjectRegistry feedObjectRegistry);
+
+ public void store(FeedRegistry feedRegistry);
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/RegistryConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/RegistryConstants.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/RegistryConstants.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/RegistryConstants.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,23 @@
+package org.apache.axis2.feed.aggregrator.registry;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public class RegistryConstants {
+
+ public static String FEED_OBJECT_REGISTRY_KEY = "Feed_object_Registry";
+ public static String FEED_REGISTRY_KEY = "Feed_Registry";
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/RegistryImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/RegistryImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/RegistryImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/registry/RegistryImpl.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,37 @@
+package org.apache.axis2.feed.aggregrator.registry;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+public class RegistryImpl implements Registry {
+
+ public FeedObjectRegistry getFeedObjectRegistry() {
+ return (FeedObjectRegistry) System.getProperties().get(RegistryConstants.FEED_OBJECT_REGISTRY_KEY);
+ }
+
+ public FeedRegistry getFeedRegistry() {
+ return (FeedRegistry) System.getProperties().get(RegistryConstants.FEED_REGISTRY_KEY);
+
+ }
+
+ public void store(FeedObjectRegistry feedObjectRegistry) {
+ System.getProperties().put(RegistryConstants.FEED_OBJECT_REGISTRY_KEY, feedObjectRegistry);
+ }
+
+ public void store(FeedRegistry feedRegistry) {
+ System.getProperties().put(RegistryConstants.FEED_REGISTRY_KEY, feedRegistry);
+ }
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/FeedScheduler.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/FeedScheduler.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/FeedScheduler.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/FeedScheduler.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,75 @@
+package org.apache.axis2.feed.aggregrator.scheduler;
+
+/*
+* 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 java.util.Calendar;
+import java.util.Date;
+import java.util.Timer;
+import java.util.TimerTask;
+
+public class FeedScheduler {
+
+ private final Timer timer = new Timer();
+ private Calendar calendar = Calendar.getInstance();
+
+ public class FeedTask extends TimerTask {
+ private FeedSchedulerTask feedSchedulerTask;
+
+ public FeedTask(FeedSchedulerTask feedSchedulerTask) {
+ this.feedSchedulerTask = feedSchedulerTask;
+ }
+
+ public void run() {
+ feedSchedulerTask.run();
+ reschedule(feedSchedulerTask);
+ }
+ }
+
+ private Date getNextDate() {
+ calendar.add(Calendar.SECOND, 10);
+ return calendar.getTime();
+ }
+
+ public void schedule(FeedSchedulerTask feedSchedulerTask) {
+
+ Date time = getNextDate();
+ if (time == null) {
+ feedSchedulerTask.cancel();
+ } else {
+ synchronized (feedSchedulerTask.lock) {
+ feedSchedulerTask.state = FeedSchedulerTask.SCHEDULED;
+ feedSchedulerTask.timerTask = new FeedScheduler.FeedTask(feedSchedulerTask);
+ timer.schedule(feedSchedulerTask.timerTask, time);
+ }
+ }
+ }
+
+ private void reschedule(FeedSchedulerTask feedSchedulerTask) {
+ Date time = getNextDate();
+ if (time == null) {
+ feedSchedulerTask.cancel();
+ } else {
+ synchronized (feedSchedulerTask.lock) {
+ if (feedSchedulerTask.state != FeedSchedulerTask.CANCELLED) {
+ feedSchedulerTask.timerTask = new FeedScheduler.FeedTask(feedSchedulerTask);
+ timer.schedule(feedSchedulerTask.timerTask, time);
+ }
+ }
+ }
+ }
+
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/FeedSchedulerTask.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/FeedSchedulerTask.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/FeedSchedulerTask.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/scheduler/FeedSchedulerTask.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,60 @@
+package org.apache.axis2.feed.aggregrator.scheduler;
+
+/*
+* 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.aggregrator.listner.FeedReader;
+import org.apache.axis2.feed.aggregrator.listner.impl.FeedReaderImpl;
+import org.apache.axis2.feed.aggregrator.util.FeedList;
+
+import java.util.TimerTask;
+
+public class FeedSchedulerTask implements Runnable {
+
+ private FeedReader feedReader;
+ final Object lock = new Object();
+ int state = 0;
+ static final int SCHEDULED = 1;
+ static final int CANCELLED = 2;
+
+ TimerTask timerTask;
+
+ public FeedSchedulerTask(FeedList feedList) {
+ feedReader = new FeedReaderImpl(feedList);
+
+
+ }
+
+ public void run() {
+ checkForFeed();
+
+ }
+
+ private void checkForFeed() {
+ feedReader.readFeed();
+ }
+
+ public boolean cancel() {
+ synchronized (lock) {
+ if (timerTask != null) {
+ timerTask.cancel();
+ }
+ boolean result = (state == SCHEDULED);
+ state = CANCELLED;
+ return result;
+ }
+ }
+}
Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/util/ATOMFeedObjectList.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/util/ATOMFeedObjectList.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/util/ATOMFeedObjectList.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/aggregrator/util/ATOMFeedObjectList.java Fri Sep 9 00:22:16 2005
@@ -0,0 +1,53 @@
+package org.apache.axis2.feed.aggregrator.util;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMFeed;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+
+
+public class ATOMFeedObjectList {
+
+ private ArrayList atomFeedlist;
+
+ public ATOMFeedObjectList() {
+ atomFeedlist = new ArrayList();
+ }
+
+ public void addFeed(ATOMFeed atomFeed) {
+ if (!atomFeedlist.contains(atomFeed)) {
+ atomFeedlist.add(atomFeed);
+ }
+ }
+
+ public void removeFeed(ATOMFeed atomFeed) {
+ atomFeedlist.remove(atomFeed);
+ }
+
+ public void cleanUp() {
+ atomFeedlist.clear();
+ }
+
+ public Iterator iterator() {
+ if (atomFeedlist != null) {
+ return atomFeedlist.iterator();
+ }
+ return null;
+ }
+}