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/08/02 04:46:39 UTC
svn commit: r226929 [1/4] - in
/webservices/axis/trunk/archive/java/scratch/Google_SoC: ./ FeedGenerator/
FeedGenerator/src/ FeedGenerator/src/org/ FeedGenerator/src/org/apache/
FeedGenerator/src/org/apache/axis/ FeedGenerator/src/org/apache/axis/feed/...
Author: chinthaka
Date: Mon Aug 1 19:43:54 2005
New Revision: 226929
URL: http://svn.apache.org/viewcvs?rev=226929&view=rev
Log:
Commiting Google Summer of code project - RSS for Axis2 on behalf of Jananda, Indika and Sudam
Added:
webservices/axis/trunk/archive/java/scratch/Google_SoC/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/ATOMServlet.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/RSSServlet.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/AbstractFeedBuilder.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/Constants.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/FeedBuilder.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/atom/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/atom/ATOMFeedBuilder.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/rss/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/rss/RSSFeedBuilder.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/AbstractFeedFactory.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/Feed.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedContainer.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedException.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedFactory.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/Serializer.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMConstants.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMEntry.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMFeed.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ContentElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/DateElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/IDElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/LinkElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ModeAttribute.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalEmailElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalNameElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalURLElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/TypeAttribute.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/ATOMFactory.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/impl/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/impl/ATOMFactoryImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMAuthorElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMContentElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMCreatedElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMEntryElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMFeedImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMID.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMIssuedElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMLinkElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMModifiedElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMSummaryElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMTaglineElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMTitleElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ContentElementImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/DateElementImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/IDElementImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/LinkElementImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ModeAttributeImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalElementImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalEmailElementImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalNameElementImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalURLElementImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/TypeAttributeImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CategoryElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Channel.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CloudElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Constants.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CopyrightElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/DocsElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/EnclosureElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/GeneratorElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/GuidElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/ImageElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Item.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/LanguageElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/LastBuildDate.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/ManagingEditorElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/PubDate.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/SourceElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/TextInputElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/TtlElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/WebMasterElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/RSSFactory.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/impl/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/impl/RSSFactoryImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/LastBuildDateImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/PubDateImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSCategoryElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSChannel.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSCloudElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSCopyrightElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSDocsElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSEnclosureElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSFeed.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSGeneratorElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSGuidElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSImageElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSItem.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSLanguageElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSManagingEditorElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSSourceElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSTextInputElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSTtlElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/RSSWebMasterElement.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/util/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/util/impl/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/util/impl/FeedContainerImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/listner/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/listner/ListnerConstants.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/listner/impl/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/listner/impl/ListnerImpl.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedbuilder/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedbuilder/atom/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedbuilder/atom/ATOMFeedBuilderTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedbuilder/rss/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedbuilder/rss/RSSFeedBuilderTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/factory/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/factory/impl/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/factory/impl/ATOMFactoryImplTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/impl/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/impl/ATOMEntryElementTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/impl/ATOMFeedImplTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/impl/ATOMModelTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/impl/ContentElementImplTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/impl/DateElementImplTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/impl/LinkElementImplTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/atom/impl/PersonalElementImplTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/rss/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/rss/factory/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/rss/factory/impl/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/rss/factory/impl/RSSFactoryImplTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/rss/impl/
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/rss/impl/RSSChannelTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/rss/impl/RSSFeedTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/rss/impl/RSSItemTest.java
webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/test/org/apache/axis/feed/feedmodel/rss/impl/RSSModelTest.java
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/ATOMServlet.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/ATOMServlet.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/ATOMServlet.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/ATOMServlet.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,44 @@
+package org.apache.axis;
+
+
+import org.apache.axis.feed.feedbuilder.Constants;
+import org.apache.axis.feed.feedmodel.atom.ATOMFeed;
+
+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;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 20, 2005
+ * Time: 4:35:41 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class ATOMServlet extends HttpServlet {
+
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ response.setContentType("text/xml; charset=utf-8");
+ try {
+ ATOMFeed feed = (ATOMFeed) System.getProperties().get(Constants.ATOM_KEY);
+ XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(response.getOutputStream());
+ feed.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);
+ }
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/RSSServlet.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/RSSServlet.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/RSSServlet.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/RSSServlet.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,45 @@
+package org.apache.axis;
+
+
+import org.apache.axis.feed.feedbuilder.Constants;
+import org.apache.axis.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;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 18, 2005
+ * Time: 12:00:26 PM
+ * To change this template use File | Settings | File Templates.
+ */
+
+public class RSSServlet extends HttpServlet {
+
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+
+ response.setContentType("text/xml; charset=utf-8");
+ try {
+
+ RSSFeed rssFeed = (RSSFeed) System.getProperties().get(Constants.RSS_KEY);
+
+ XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(response.getOutputStream());
+ rssFeed.serialize(writer);
+ writer.flush();
+ } catch (XMLStreamException e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ doPost(request, response);
+ }
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/AbstractFeedBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/AbstractFeedBuilder.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/AbstractFeedBuilder.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/AbstractFeedBuilder.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedbuilder;
+
+import org.apache.axis.feed.feedbuilder.atom.ATOMFeedBuilder;
+import org.apache.axis.feed.feedbuilder.rss.RSSFeedBuilder;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: 020223
+ * Date: Jul 16, 2001
+ * Time: 1:53:05 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class AbstractFeedBuilder {
+ public static FeedBuilder getFeedBuilder(int feedType) {
+ if (Constants.ATOM_FEED == feedType) {
+ return new ATOMFeedBuilder();
+ }
+ if (Constants.RSS_FEED == feedType) {
+ return new RSSFeedBuilder();
+ }
+ return null;
+ }
+
+
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/Constants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/Constants.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/Constants.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/Constants.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,27 @@
+package org.apache.axis.feed.feedbuilder;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: 020223
+ * Date: Jul 16, 2001
+ * Time: 12:43:01 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface Constants {
+
+ public static int RSS_FEED = 1;
+ public static int ATOM_FEED = 2;
+
+ public static String RSS_KEY = "RSS";
+ public static String ATOM_KEY = "ATOM";
+
+
+ String FEEDDERECTORY = "\\feed";
+ String RSSHOME = "\\feed\\rss";
+ String ATOMHOME = "\\feed\\atom";
+
+ String RSSFILE = "rss.xml";
+ String ATOMFILE = "atom.xml";
+
+
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/FeedBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/FeedBuilder.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/FeedBuilder.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/FeedBuilder.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,21 @@
+package org.apache.axis.feed.feedbuilder;
+
+import org.apache.axis2.description.ServiceDescription;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: 020223
+ * Date: Jul 16, 2001
+ * Time: 12:35:21 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface FeedBuilder {
+
+ public void initialiseFeed(String channel_defaultHome);
+
+ public void addHOTFeed(ServiceDescription serviceDescription, String itemDefualtLink);
+
+ public void removeFeed(ServiceDescription serviceDescription, String itemDefualtLink);
+
+
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/atom/ATOMFeedBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/atom/ATOMFeedBuilder.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/atom/ATOMFeedBuilder.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/atom/ATOMFeedBuilder.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,190 @@
+package org.apache.axis.feed.feedbuilder.atom;
+
+
+import org.apache.axis.feed.feedbuilder.Constants;
+import org.apache.axis.feed.feedbuilder.FeedBuilder;
+import org.apache.axis.feed.feedmodel.AbstractFeedFactory;
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis.feed.feedmodel.atom.ATOMEntry;
+import org.apache.axis.feed.feedmodel.atom.ATOMFeed;
+import org.apache.axis.feed.feedmodel.atom.LinkElement;
+import org.apache.axis.feed.feedmodel.atom.factory.ATOMFactory;
+import org.apache.axis.feed.feedmodel.atom.impl.*;
+import org.apache.axis2.description.ModuleDescription;
+import org.apache.axis2.description.OperationDescription;
+import org.apache.axis2.description.ServiceDescription;
+import org.apache.wsdl.WSDLEndpoint;
+
+import javax.xml.stream.XMLStreamException;
+import java.io.IOException;
+import java.util.Date;
+import java.util.Iterator;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: 020223
+ * Date: Jul 16, 2001
+ * Time: 12:38:49 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class ATOMFeedBuilder implements FeedBuilder {
+
+
+ private Integer connt = new Integer(1);
+
+ public ATOMFeedBuilder() {
+
+ }
+
+
+ public void initialiseFeed(String channel_defaultHome) {
+ createChannel(channel_defaultHome);
+ }
+
+ public void addHOTFeed(ServiceDescription serviceDescription, String itemDefualtLink) {
+ this.createATOMFileAppending(serviceDescription, itemDefualtLink);
+
+ }
+
+ public void removeFeed(ServiceDescription serviceDescription, String itemDefualtLink) {
+
+ try {
+ ATOMFeed atomFeed;
+ atomFeed = build();
+ ATOMFactory fac = (ATOMFactory) AbstractFeedFactory.getFeedFactory("ATOM");
+ LinkElement linkElement = fac.createATOMLinkElement(ATOMConstants.LINK_REL_ATTR_VALUE, itemDefualtLink, "text/html");
+
+ if (serviceDescription.getWSDLDefinition() != null) {
+ // linkElement.setHerfAttribute(serviceDescription.getWSDLDefinition().getDocumentBaseURI());
+ }
+ ATOMEntry atomEntry = fac.createEntryElement(fac.createATOMTitleElement(serviceDescription.getName().getLocalPart()), fac.createATOMModifiedElement(new Date(serviceDescription.getLastupdate())), linkElement, fac.createATOMIsuuedElement(new Date(serviceDescription.getLastupdate())));
+ atomEntry.setATOMId(new ATOMID(new Long(System.currentTimeMillis()).toString() + connt.toString()));
+ String description = serviceDescription.getServiceDescription() + eprInfo(serviceDescription) + serviceInfo(serviceDescription) + moduleInfo(serviceDescription) + wsdlInfo(serviceDescription);
+ description = "<p><ul>" + "<li>" + serviceDescription.getServiceDescription() + "</li>" + "<li>" + eprInfo(serviceDescription) + "</li>" + "<li>" + serviceInfo(serviceDescription) + "</ul></p><li>" + moduleInfo(serviceDescription) + "</li>" + "</li>" + "<li>" + wsdlInfo(serviceDescription) + "</li>" + "</li>" + "</ul></p>";
+ atomEntry.setAtomSummaryElement(new ATOMSummaryElement(description));
+ atomEntry.setAtomContentElement(new ATOMContentElement(description));
+ atomFeed.remove(atomEntry);
+
+ } catch (XMLStreamException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ }
+
+
+ private void createChannel(String channel_defaultHome) {
+ try {
+ if (!System.getProperties().containsKey(Constants.ATOM_KEY)) {
+ ATOMFeed atomFeed;
+ ATOMFactory fac = (ATOMFactory) AbstractFeedFactory.getFeedFactory("ATOM");
+ atomFeed = fac.createFeedElement("0.3", new org.apache.axis.feed.feedmodel.atom.impl.ATOMTitleElement("AXIS2 ATOM FEED CHANNEL "), new ATOMModifiedElement(new Date()), new ATOMLinkElement(ATOMConstants.LINK_REL_ATTR_VALUE, channel_defaultHome, "text/html"), new ATOMAuthorElement(new PersonalNameElementImpl("axis 2")));
+ atomFeed.setIdElement(new ATOMID("feedid" + new Long(System.currentTimeMillis()).toString()));
+ System.getProperties().put(Constants.ATOM_KEY, atomFeed);
+ }
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+
+ }
+
+
+ private ATOMFeed build() throws Exception {
+ ATOMFeed atomFeed = (ATOMFeed) System.getProperties().get(Constants.ATOM_KEY);
+ if (atomFeed != null) {
+
+ return atomFeed;
+ }
+ return null;
+
+ }
+
+ private void createATOMFileAppending(ServiceDescription serviceDescription, String itemDefualtLink) {
+
+ try {
+ ATOMFeed atomFeed;
+ atomFeed = build();
+ ATOMFactory fac = (ATOMFactory) AbstractFeedFactory.getFeedFactory("ATOM");
+ LinkElement linkElement = fac.createATOMLinkElement(ATOMConstants.LINK_REL_ATTR_VALUE, itemDefualtLink, "text/html");
+
+ if (serviceDescription.getWSDLDefinition() != null) {
+ // linkElement.setHerfAttribute(serviceDescription.getWSDLDefinition().getDocumentBaseURI());
+ }
+ ATOMEntry atomEntry = fac.createEntryElement(fac.createATOMTitleElement(serviceDescription.getName().getLocalPart()), fac.createATOMModifiedElement(new Date(serviceDescription.getLastupdate())), linkElement, fac.createATOMIsuuedElement(new Date(serviceDescription.getLastupdate())));
+ atomEntry.setATOMId(new ATOMID(new Long(System.currentTimeMillis()).toString() + connt.toString()));
+ String description = serviceDescription.getServiceDescription() + eprInfo(serviceDescription) + serviceInfo(serviceDescription) + moduleInfo(serviceDescription) + wsdlInfo(serviceDescription);
+ description = "<p><ul>" + "<li>" + serviceDescription.getServiceDescription() + "</li>" + "<li>" + eprInfo(serviceDescription) + "</li>" + "<li>" + serviceInfo(serviceDescription) + "</ul></p><li>" + moduleInfo(serviceDescription) + "</li>" + "</li>" + "<li>" + wsdlInfo(serviceDescription) + "</li>" + "</li>" + "</ul></p>";
+ atomEntry.setAtomSummaryElement(new ATOMSummaryElement(description));
+ atomEntry.setAtomContentElement(new ATOMContentElement(description));
+ int temp = connt.intValue() + 4;
+ connt = new Integer(temp);
+ if (atomFeed != null && atomEntry != null) {
+ atomFeed.addEntry(atomEntry);
+ System.getProperties().put(Constants.ATOM_KEY, atomFeed);
+
+ }
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+
+ }
+
+ private String eprInfo(ServiceDescription serviceDescription) {
+ String info = "END PONITS :";
+ if (!serviceDescription.getEndpoints().isEmpty()) {
+ if (!serviceDescription.getEndpoints().values().isEmpty()) {
+ Iterator iterator = serviceDescription.getEndpoints().values().iterator();
+ while (iterator.hasNext()) {
+ info = info + ((WSDLEndpoint) iterator.next()).getName();
+ }
+ }
+ }
+ return info;
+ }
+
+ private String wsdlInfo(ServiceDescription serviceDescription) {
+ String info = "WSDL INFOMATION :";
+ if (serviceDescription.getWSDLDefinition() != null) {
+ info += serviceDescription.getWSDLDefinition().getQName() + serviceDescription.getWSDLDefinition().getDocumentBaseURI();
+ }
+ return info;
+ }
+
+ private String moduleInfo(ServiceDescription serviceDescription) {
+ String info = "MODULE INFORMATION :";
+ if (!serviceDescription.getEngagedModules().isEmpty()) {
+ Iterator iterator = serviceDescription.getEngagedModules().iterator();
+ while (iterator.hasNext()) {
+ ModuleDescription moduleDescription = (ModuleDescription) iterator.next();
+ info += moduleDescription.getName();
+ }
+ }
+ return info;
+ }
+
+ private String serviceInfo(ServiceDescription serviceDescription) {
+ String info = "<p>OPERATION INFORMATION:<ul>";
+ if (serviceDescription.getOperations() != null) {
+ if (!serviceDescription.getOperations().values().isEmpty()) {
+ Iterator iterator = serviceDescription.getOperations().values().iterator();
+ while (iterator.hasNext()) {
+ OperationDescription operationDescription = (OperationDescription) iterator.next();
+ info += "<li><ul><li>Operation Name :" + operationDescription.getName() + "</li><li>" + "<A href=\"" + operationDescription.getMessageExchangePattern() + "\">MEP" + operationDescription.getMessageExchangePattern() + "</A>" + "</li></ul></li>";
+ }
+ }
+
+
+ }
+ return info;
+ }
+
+
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/rss/RSSFeedBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/rss/RSSFeedBuilder.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/rss/RSSFeedBuilder.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedbuilder/rss/RSSFeedBuilder.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,210 @@
+package org.apache.axis.feed.feedbuilder.rss;
+
+import org.apache.axis.feed.feedbuilder.Constants;
+import org.apache.axis.feed.feedbuilder.FeedBuilder;
+import org.apache.axis.feed.feedmodel.AbstractFeedFactory;
+import org.apache.axis.feed.feedmodel.rss.Channel;
+import org.apache.axis.feed.feedmodel.rss.GuidElement;
+import org.apache.axis.feed.feedmodel.rss.Item;
+import org.apache.axis.feed.feedmodel.rss.factory.RSSFactory;
+import org.apache.axis.feed.feedmodel.rss.impl.*;
+import org.apache.axis2.description.ModuleDescription;
+import org.apache.axis2.description.OperationDescription;
+import org.apache.axis2.description.ServiceDescription;
+import org.apache.wsdl.WSDLEndpoint;
+
+import javax.xml.stream.XMLStreamException;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Date;
+import java.util.Iterator;
+import java.util.Properties;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: 020223
+ * <p/>
+ * <p/>
+ * Date: Jul 16, 2001
+ * Time: 12:39:30 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class RSSFeedBuilder implements Constants, FeedBuilder {
+
+
+ private Integer connt = new Integer(1);
+
+ public RSSFeedBuilder() {
+ super();
+
+
+ }
+
+
+ public void initialiseFeed(String channel_defaultHome) {
+ createChannel(channel_defaultHome);
+ }
+
+ public void addHOTFeed(ServiceDescription serviceDescription, String itemDefualtLink) {
+ this.createRSSFileAppending(serviceDescription, itemDefualtLink);
+ }
+
+ public void removeFeed(ServiceDescription serviceDescription, String itemDefualtLink) {
+
+ try {
+ RSSFeed rssFeed;
+ rssFeed = build();
+ String description = serviceDescription.getServiceDescription() + eprInfo(serviceDescription) + serviceInfo(serviceDescription) + moduleInfo(serviceDescription) + wsdlInfo(serviceDescription);
+ Item item = new RSSItem();
+ description = "<p><ul>" + "<li>" + serviceDescription.getServiceDescription() + "</li>" + "<li>" + eprInfo(serviceDescription) + "</li>" + "<li>" + serviceInfo(serviceDescription) + "</ul></p><li>" + moduleInfo(serviceDescription) + "</li>" + "</li>" + "<li>" + wsdlInfo(serviceDescription) + "</li>" + "</li>" + "</ul></p>";
+ item.setDescription(description);
+ if (serviceDescription.getWSDLDefinition() != null) {
+ // item.setLink(new URL(serviceDescription.getWSDLDefinition().getDocumentBaseURI()));
+ item.setLink(new URL(itemDefualtLink));
+
+ } else {
+ item.setLink(new URL(itemDefualtLink));
+ }
+ item.setTitle(serviceDescription.getName().getLocalPart());
+ item.addPubDate(new PubDateImpl(new Date(serviceDescription.getLastupdate())));
+ GuidElement guidElement = new RSSGuidElement(new Long(System.currentTimeMillis()).toString() + connt.toString());
+ guidElement.setPermaLink(false);
+ item.addGuidElement(guidElement);
+ rssFeed.getChannel().remove(item);
+ System.getProperties().put(Constants.RSS_KEY, rssFeed);
+
+
+ } catch (XMLStreamException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ }
+
+
+ private void createChannel(String channel_defaultHome) {
+
+ Properties properties = System.getProperties();
+ if (!properties.containsKey(Constants.RSS_KEY)) {
+ RSSFactory fac = (RSSFactory) AbstractFeedFactory.getFeedFactory("RSS");
+ RSSFeed rssFeed = (RSSFeed) fac.createFeed("2.0");
+ Channel channel;
+ try {
+ channel = new RSSChannel("Apache Axis2", new URL(channel_defaultHome), "Apache Axis2 is an implementation of the Simple Object Access Protocol (SOAP) Recommendation from the W3C. Axis2 can be used to provide and consume Web Services.");
+ channel.addPudDate(new PubDateImpl(new Date()));
+ channel.addLastBuildDate(new LastBuildDateImpl(new Date()));
+ channel.addCategoryElement(new RSSCategoryElement("WEB SERVICE FEEDS"));
+ channel.setGeneratorElement(new RSSGeneratorElement("Axis 2.0 Feed Generator 0.9"));
+ channel.setLanguageElement(new RSSLanguageElement("en-us"));
+
+ rssFeed.addChannel(channel);
+ properties.put(Constants.RSS_KEY, rssFeed);
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+
+
+ }
+ }
+
+
+ private RSSFeed build() throws Exception {
+
+ Properties properties = System.getProperties();
+ RSSFeed rssFeed = (RSSFeed) properties.get(Constants.RSS_KEY);
+ if (rssFeed != null) {
+ return rssFeed;
+ }
+
+ return null;
+ }
+
+ private void createRSSFileAppending(ServiceDescription serviceDescription, String itemDefualtLink) {
+
+
+ try {
+ RSSFeed rssFeed;
+ rssFeed = build();
+ String description = serviceDescription.getServiceDescription() + eprInfo(serviceDescription) + serviceInfo(serviceDescription) + moduleInfo(serviceDescription) + wsdlInfo(serviceDescription);
+ Item item = new RSSItem();
+ description = "<p><ul>" + "<li>" + serviceDescription.getServiceDescription() + "</li>" + "<li>" + eprInfo(serviceDescription) + "</li>" + "<li>" + serviceInfo(serviceDescription) + "</ul></p><li>" + moduleInfo(serviceDescription) + "</li>" + "</li>" + "<li>" + wsdlInfo(serviceDescription) + "</li>" + "</li>" + "</ul></p>";
+ item.setDescription(description);
+ if (serviceDescription.getWSDLDefinition() != null) {
+ // item.setLink(new URL(serviceDescription.getWSDLDefinition().getDocumentBaseURI()));
+ item.setLink(new URL(itemDefualtLink));
+
+ } else {
+ item.setLink(new URL(itemDefualtLink));
+ }
+ item.setTitle(serviceDescription.getName().getLocalPart());
+ item.addPubDate(new PubDateImpl(new Date(serviceDescription.getLastupdate())));
+ GuidElement guidElement = new RSSGuidElement(new Long(System.currentTimeMillis()).toString() + connt.toString());
+ guidElement.setPermaLink(false);
+ item.addGuidElement(guidElement);
+ int temp = connt.intValue() + 4;
+ connt = new Integer(temp);
+ rssFeed.getChannel().addLastBuildDate(new LastBuildDateImpl(new Date(serviceDescription.getLastupdate())));
+ rssFeed.getChannel().addItem(item);
+ System.getProperties().put(Constants.RSS_KEY, rssFeed);
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+
+ private String eprInfo(ServiceDescription serviceDescription) {
+ String info = "END PONITS :";
+ if (!serviceDescription.getEndpoints().isEmpty()) {
+ if (!serviceDescription.getEndpoints().values().isEmpty()) {
+ Iterator iterator = serviceDescription.getEndpoints().values().iterator();
+ while (iterator.hasNext()) {
+ info = info + ((WSDLEndpoint) iterator.next()).getName();
+ }
+ }
+ }
+ return info;
+ }
+
+ private String wsdlInfo(ServiceDescription serviceDescription) {
+ String info = "WSDL INFOMATION :";
+ if (serviceDescription.getWSDLDefinition() != null) {
+ info += serviceDescription.getWSDLDefinition().getQName() + serviceDescription.getWSDLDefinition().getDocumentBaseURI();
+ }
+ return info;
+ }
+
+ private String moduleInfo(ServiceDescription serviceDescription) {
+ String info = "MODULE INFORMATION :";
+ if (!serviceDescription.getEngagedModules().isEmpty()) {
+ Iterator iterator = serviceDescription.getEngagedModules().iterator();
+ while (iterator.hasNext()) {
+ ModuleDescription moduleDescription = (ModuleDescription) iterator.next();
+ info += moduleDescription.getName();
+ }
+ }
+ return info;
+ }
+
+ private String serviceInfo(ServiceDescription serviceDescription) {
+ String info = "<p>OPERATION INFORMATION:<ul>";
+ if (serviceDescription.getOperations() != null) {
+ if (!serviceDescription.getOperations().values().isEmpty()) {
+ Iterator iterator = serviceDescription.getOperations().values().iterator();
+ while (iterator.hasNext()) {
+ OperationDescription operationDescription = (OperationDescription) iterator.next();
+ info += "<li><ul><li>Operation Name :" + operationDescription.getName() + "</li><li>" + "<A href=\"" + operationDescription.getMessageExchangePattern() + "\">MEP" + operationDescription.getMessageExchangePattern() + "</A>" + "</li></ul></li>";
+ }
+ }
+
+
+ }
+ return info;
+ }
+
+
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/AbstractFeedFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/AbstractFeedFactory.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/AbstractFeedFactory.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/AbstractFeedFactory.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,28 @@
+package org.apache.axis.feed.feedmodel;
+
+
+import org.apache.axis.feed.feedmodel.atom.factory.impl.ATOMFactoryImpl;
+import org.apache.axis.feed.feedmodel.rss.factory.impl.RSSFactoryImpl;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 1, 2005
+ * Time: 9:11:19 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class AbstractFeedFactory {
+
+ public static FeedFactory getFeedFactory(String factoryName) {
+ FeedFactory feedFac = null;
+ if (factoryName.matches("RSS")) {
+ feedFac = new RSSFactoryImpl();
+ }
+ if (factoryName.matches("ATOM")) {
+ feedFac = new ATOMFactoryImpl();
+ }
+
+ return feedFac;
+ }
+
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/Feed.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/Feed.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/Feed.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/Feed.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,16 @@
+package org.apache.axis.feed.feedmodel;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 1, 2005
+ * Time: 9:30:18 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface Feed {
+
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedContainer.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedContainer.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedContainer.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedContainer.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,20 @@
+package org.apache.axis.feed.feedmodel;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 4:20:23 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface FeedContainer {
+
+ public void addFeed(Feed feed);
+
+ public Iterator getFeedsIterator();
+
+ public ArrayList getFeeds();
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedException.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedException.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedException.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedException.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,11 @@
+package org.apache.axis.feed.feedmodel;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 1, 2005
+ * Time: 10:16:00 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class FeedException extends Exception {
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedFactory.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedFactory.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/FeedFactory.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,14 @@
+package org.apache.axis.feed.feedmodel;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 1, 2005
+ * Time: 9:10:27 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface FeedFactory {
+
+ public Feed createFeed(String version);
+
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/Serializer.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/Serializer.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/Serializer.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/Serializer.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,15 @@
+package org.apache.axis.feed.feedmodel;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 9, 2005
+ * Time: 1:48:11 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface Serializer {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMConstants.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMConstants.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMConstants.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,47 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 9:27:38 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface ATOMConstants {
+
+ public static String NAMESPASE_URL = "http://ws.apache.org/axis2/feed/atom/ns#";
+ public static String NAMWSPASE_PREFIX = "axis2atom";
+
+ public static String XML_MODE_ARRTIBUTE = "xml";
+ public static String ESCAPED_MODE_ARRTIBUTE = "escaped";
+ public static String BASE64_MODE_ARRTIBUTE = "base64";
+ public static String MODE_ARRTIBUTE = "mode";
+ public static String TYPE_ARRTIBUTE = "type";
+
+ public static String AUTOR_ELEMENT_NAME = "author";
+ public static String TITLE_ELEMENT_NAME = "title";
+ public static String ID_ELEMENT_NAME = "id";
+ public static String CONTENT_ELEMENT_NAME = "content";
+ public static String SUMMARY_ELEMENT_NAME = "summary";
+ public static String TAGLINE_ELEMENT_NAME = "tagline";
+
+ public static String PERSONAL_NAME_ELEMENT_NAME = "name";
+ public static String PERSONAL_EMAIL_ELEMENT_NAME = "email";
+ public static String PERSONAL_URL_ELEMENT_NAME = "url";
+ public static String LINK_ELEMENT_NAME = "link";
+ public static String LINK_REL_ATTR = "rel";
+ public static String LINK_REL_ATTR_VALUE = "alternate";
+ public static String LINK_HERF_ATTR = "href";
+ public static String LINK_TITLE_ATTR = "title";
+ public static String LINK_TYPE_ATTR = "type";
+
+ public static String MODIFIED_DATE_ELEMET_NAME = "modified";
+ public static String ISSUED_DATE_ELEMET_NAME = "issued";
+ public static String CREATED_DATE_ELEMET_NAME = "created";
+
+ public static String ENTRY_ELEMENT_NAME = "entry";
+
+ public static String FEED_ELEMENT_NAME = "feed";
+ public static String FEED_VERSION_ATTR = "version";
+ public static String FEED_LANG_ATTR = "lang";
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMEntry.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMEntry.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMEntry.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMEntry.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,43 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:57:37 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface ATOMEntry {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public ContentElement getTitleElement();
+
+ public void setTitleElement(ContentElement titleElement);
+
+ public DateElement getModifiedElement();
+
+ public void setModifiedElement(DateElement modifiedElement);
+
+ public LinkElement getLinkElement();
+
+ public void setLinkElement(LinkElement linkElement);
+
+ public DateElement getIssuedElement();
+
+ public void setIssuedElement(DateElement issuedElement);
+
+ public ContentElement getAtomSummaryElement();
+
+ public void setAtomSummaryElement(ContentElement atomSummaryElement);
+
+ public ContentElement getAtomContentElement();
+
+ public void setAtomContentElement(ContentElement atomContentElement);
+
+ public IDElement getATOMId();
+
+ public void setATOMId(IDElement ATOMId);
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMFeed.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMFeed.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMFeed.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ATOMFeed.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,48 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import org.apache.axis.feed.feedmodel.atom.impl.ATOMAuthorElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Iterator;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:58:07 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface ATOMFeed {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public void addEntry(ATOMEntry entryElement);
+
+ public void remove(ATOMEntry atomEntry);
+
+ public Iterator getEntries();
+
+ public ContentElement getTitleElement();
+
+ public void setTitleElement(ContentElement titleElement);
+
+ public DateElement getModifiedElement();
+
+ public void setModifiedElement(DateElement modifiedElement);
+
+ public LinkElement getLinkElement();
+
+ public void setLinkElement(LinkElement linkElement);
+
+ public IDElement getIdElement();
+
+ public void setIdElement(IDElement idElement);
+
+ public ATOMAuthorElement getAuthorElement();
+
+ public void setAuthorElement(ATOMAuthorElement authorElement);
+
+ public String getVersionAttr();
+
+ public void setVersionAttr(String versionAttr);
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ContentElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ContentElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ContentElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ContentElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,28 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 9:58:37 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface ContentElement {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public TypeAttribute getTypeAttribute();
+
+ public void setTypeAttribute(TypeAttribute typeAttribute);
+
+ public ModeAttribute getModeAttribute();
+
+
+ public void setModeAttribute(ModeAttribute modeAttribute);
+
+ public String getContent();
+
+ public void setContent(String content);
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/DateElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/DateElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/DateElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/DateElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,22 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:25:27 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface DateElement {
+
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public Date getDate();
+
+ public void setDate(Date date);
+
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/IDElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/IDElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/IDElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/IDElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,19 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 11:05:14 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface IDElement {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public String getId();
+
+ public void setId(String id);
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/LinkElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/LinkElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/LinkElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/LinkElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,31 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:47:42 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface LinkElement {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public String getRelAttribute();
+
+ public void setRelAttribute(String relAttribute);
+
+ public String getTypeAttribute();
+
+ public void setTypeAttribute(String typeAttribute);
+
+ public String getTitleAttribute();
+
+ public void setTitleAttribute(String titleAttribute);
+
+ public String getHerfAttribute();
+
+ public void setHerfAttribute(String herfAttribute);
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ModeAttribute.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ModeAttribute.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ModeAttribute.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/ModeAttribute.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,19 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 9:42:01 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface ModeAttribute {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public String getMode();
+
+ public void setMode(String mode);
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,30 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 9:43:18 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface PersonalElement {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+
+ public PersonalNameElement getName();
+
+ public void setName(PersonalNameElement name);
+
+ public PersonalURLElement getURL();
+
+ public void setURL(PersonalURLElement URL);
+
+ public PersonalEmailElement getEmail();
+
+ public void setEmail(PersonalEmailElement email);
+
+
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalEmailElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalEmailElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalEmailElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalEmailElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,19 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 9:44:22 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface PersonalEmailElement {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public String getEmail();
+
+ public void setEmail(String email);
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalNameElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalNameElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalNameElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalNameElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,19 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 9:44:35 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface PersonalNameElement {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public String getName();
+
+ public void setName(String name);
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalURLElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalURLElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalURLElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/PersonalURLElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,20 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 9:44:04 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface PersonalURLElement {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public URL getUrl();
+
+ public void setUrl(URL url);
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/TypeAttribute.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/TypeAttribute.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/TypeAttribute.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/TypeAttribute.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,19 @@
+package org.apache.axis.feed.feedmodel.atom;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:20:34 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface TypeAttribute {
+ public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+ public String getMediaType();
+
+ public void setMediaType(String mediaType);
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/ATOMFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/ATOMFactory.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/ATOMFactory.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/ATOMFactory.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,55 @@
+package org.apache.axis.feed.feedmodel.atom.factory;
+
+import org.apache.axis.feed.feedmodel.FeedFactory;
+import org.apache.axis.feed.feedmodel.atom.*;
+import org.apache.axis.feed.feedmodel.atom.impl.ATOMAuthorElement;
+
+import java.net.URL;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 9:23:41 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface ATOMFactory extends FeedFactory {
+
+ public ATOMFeed createFeedElement(String versionAttr, ContentElement titleElement, DateElement modifiedElement, LinkElement linkElement, ATOMAuthorElement authorElement);
+
+ public ATOMEntry createEntryElement(ContentElement titleElement, DateElement modifiedElement, LinkElement linkElement, DateElement issuedElement);
+
+ public ContentElement createATOMTitleElement(String title);
+
+ public ContentElement createATOMContentElement(String content);
+
+ public ContentElement createATOMSummaryElement(String summary);
+
+ public ContentElement createATOMTaglineElement(String tagcontent);
+
+
+ public DateElement createATOMCreatedElement(Date date);
+
+ public DateElement createATOMIsuuedElement(Date date);
+
+ public DateElement createATOMModifiedElement(Date date);
+
+ public PersonalElement createATOMAuthorElement(PersonalNameElement name);
+
+ public PersonalEmailElement createPersonalEmailElement(String email);
+
+ public PersonalNameElement createPersonalNameElement(String name);
+
+ public PersonalURLElement createPersonalURLElement(URL url);
+
+ public IDElement createATOMIDElement(String id);
+
+ public LinkElement createATOMLinkElement(String relAttribute, String herfAttribute, String typeAttribute);
+
+ public ModeAttribute createModeAttribute(String mode);
+
+ public TypeAttribute createTypeAttribute(String mediaType);
+
+
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/impl/ATOMFactoryImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/impl/ATOMFactoryImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/impl/ATOMFactoryImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/factory/impl/ATOMFactoryImpl.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,94 @@
+package org.apache.axis.feed.feedmodel.atom.factory.impl;
+
+import org.apache.axis.feed.feedmodel.Feed;
+import org.apache.axis.feed.feedmodel.atom.*;
+import org.apache.axis.feed.feedmodel.atom.factory.ATOMFactory;
+import org.apache.axis.feed.feedmodel.atom.impl.*;
+
+import java.net.URL;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 9:29:21 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class ATOMFactoryImpl implements ATOMFactory {
+
+
+ public Feed createFeed(String version) {
+ return null;
+ }
+
+
+ public ATOMFeed createFeedElement(String versionAttr, ContentElement titleElement, DateElement modifiedElement, LinkElement linkElement, ATOMAuthorElement authorElement) {
+ return new ATOMFeedImpl(versionAttr, titleElement, modifiedElement, linkElement, authorElement);
+ }
+
+ public ATOMEntry createEntryElement(ContentElement titleElement, DateElement modifiedElement, LinkElement linkElement, DateElement issuedElement) {
+ return new ATOMEntryElement(titleElement, modifiedElement, linkElement, issuedElement);
+ }
+
+ public ContentElement createATOMTitleElement(String title) {
+ return new ATOMTitleElement(title);
+ }
+
+ public ContentElement createATOMSummaryElement(String summary) {
+ return new ATOMSummaryElement(summary);
+ }
+
+ public ContentElement createATOMContentElement(String content) {
+ return new ATOMContentElement(content);
+ }
+
+ public ContentElement createATOMTaglineElement(String tagcontent) {
+ return new ATOMTaglineElement(tagcontent);
+ }
+
+
+ public DateElement createATOMCreatedElement(Date date) {
+ return new ATOMCreatedElement(date); //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public DateElement createATOMIsuuedElement(Date date) {
+ return new ATOMIssuedElement(date); //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public DateElement createATOMModifiedElement(Date date) {
+ return new ATOMModifiedElement(date); //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public PersonalElement createATOMAuthorElement(PersonalNameElement name) {
+ return new ATOMAuthorElement(name);
+ }
+
+ public PersonalEmailElement createPersonalEmailElement(String email) {
+ return new PersonalEmailElementImpl(email); //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public PersonalNameElement createPersonalNameElement(String name) {
+ return new PersonalNameElementImpl(name);
+ }
+
+ public PersonalURLElement createPersonalURLElement(URL url) {
+ return new PersonalURLElementImpl(url); //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public IDElement createATOMIDElement(String id) {
+ return new ATOMID(id); //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public LinkElement createATOMLinkElement(String relAttribute, String herfAttribute, String typeAttribute) {
+ return new ATOMLinkElement(relAttribute, herfAttribute, typeAttribute);
+ }
+
+ public ModeAttribute createModeAttribute(String mode) {
+ return new ModeAttributeImpl(mode); //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public TypeAttribute createTypeAttribute(String mediaType) {
+ return new TypeAttributeImpl(mediaType); //To change body of implemented methods use File | Settings | File Templates.
+ }
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMAuthorElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMAuthorElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMAuthorElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMAuthorElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,28 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis.feed.feedmodel.atom.PersonalNameElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:00:40 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class ATOMAuthorElement extends PersonalElementImpl {
+
+
+ public ATOMAuthorElement(PersonalNameElement name) {
+ super(name);
+ }
+
+ public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+ streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.AUTOR_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+ super.serialize(streamWriter);
+ streamWriter.writeEndElement();
+ }
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMContentElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMContentElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMContentElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMContentElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:09:18 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class ATOMContentElement extends ContentElementImpl {
+ public ATOMContentElement(String content) {
+ super(content);
+ }
+
+
+ public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+ streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.CONTENT_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+ super.serialize(streamWriter);
+ }
+}
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMCreatedElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMCreatedElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMCreatedElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMCreatedElement.java Mon Aug 1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:10:03 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class ATOMCreatedElement extends DateElementImpl {
+ public ATOMCreatedElement(Date date) {
+ super(date);
+ }
+
+ public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+ streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.CREATED_DATE_ELEMET_NAME, ATOMConstants.NAMESPASE_URL);
+
+ super.serialize(streamWriter);
+ }
+}