Author: burton
Date: Sun Mar 27 15:19:50 2005
New Revision: 159209

URL: http://svn.apache.org/viewcvs?view=rev&rev=159209
Log:
changed URL to not include the sandbox

Modified:
    
jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/RSSFeedParser.java
    
jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/network/URLResourceRequest.java

Modified: 
jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/RSSFeedParser.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/RSSFeedParser.java?view=diff&r1=159208&r2=159209
==============================================================================
--- 
jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/RSSFeedParser.java
 (original)
+++ 
jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/RSSFeedParser.java
 Sun Mar 27 15:19:50 2005
@@ -227,7 +227,9 @@
                 Element items = state.current.getChild( "items", NS.CONTENT );
 
                 if ( items != null ) {
-            
+
+                    //FIXME: with malformed XML this could throw an NPE. Luckly
+                    //this format is rare now.
                     Element value =
                         items.getChild( "Bag", NS.RDF )
                             .getChild( "li", NS.RDF )

Modified: 
jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/network/URLResourceRequest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/network/URLResourceRequest.java?view=diff&r1=159208&r2=159209
==============================================================================
--- 
jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/network/URLResourceRequest.java
 (original)
+++ 
jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/network/URLResourceRequest.java
 Sun Mar 27 15:19:50 2005
@@ -45,15 +45,22 @@
 
     public static final String ACCEPT_ENCODING_HEADER = "Accept-Encoding";
     public static final String IF_NONE_MATCH_HEADER = "If-None-Match";
-
     public static final String GZIP_ENCODING = "gzip";
-
     public static final String USER_AGENT_HEADER = "User-Agent";
-    
+
+    /**
+     *
+     * Enable RFC 3228 HTTP Delta for feeds.
+     * 
+     * http://bobwyman.pubsub.com/main/2004/09/using_rfc3229_w.html
+     * 
+     *  http://bobwyman.pubsub.com/main/2004/09/implementations.html
+     * 
+     */
     public static boolean ENABLE_HTTP_DELTA_FEED_IM = false;
     
     public static String USER_AGENT
-        = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1; 
aggregator:FeedParser; http://jakarta.apache.org/commons/sandbox/feedparser/) 
Gecko/20021130";
+        = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1; 
aggregator:FeedParser; http://jakarta.apache.org/commons/feedparser/) 
Gecko/20021130";
 
     public static String USER_AGENT_MOZILLA
         = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130";
@@ -62,7 +69,7 @@
      * Not used anymore.  Provided for historical reasons.
      */
     public static final String REFERER
-        = 
"http://jakarta.apache.org/commons/sandbox/feedparser/?isAggregator=true";;
+        = "http://jakarta.apache.org/commons/feedparser/?isAggregator=true";;
     
     public static final int MAX_CONTENT_LENGTH = 1000000;
     
@@ -166,7 +173,10 @@
                 if ( ENABLE_HTTP_DELTA_FEED_IM ) {
 
                     //note that this will return HTTP 226 if used.
+                    //
+                    
                     httpURLConn.setRequestProperty( "A-IM", "feed, gzip" );
+
                 }
 
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to