roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r748713 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/atomprotocol/RollerAtomHandler.java
Date Fri, 27 Feb 2009 21:40:31 GMT
Author: snoopdave
Date: Fri Feb 27 21:40:30 2009
New Revision: 748713

URL: http://svn.apache.org/viewvc?rev=748713&view=rev
Log:
making it easier to extend Roller's Atom handler. no change in functionality just making some
fields protected and adding a no-arg constructor.

Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/atomprotocol/RollerAtomHandler.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/atomprotocol/RollerAtomHandler.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/atomprotocol/RollerAtomHandler.java?rev=748713&r1=748712&r2=748713&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/atomprotocol/RollerAtomHandler.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/atomprotocol/RollerAtomHandler.java
Fri Feb 27 21:40:30 2009
@@ -36,7 +36,6 @@
 import com.sun.syndication.propono.atom.server.AtomException;
 import com.sun.syndication.propono.atom.server.AtomHandler;
 import com.sun.syndication.propono.atom.server.AtomMediaResource;
-import com.sun.syndication.propono.atom.server.AtomNotAuthorizedException;
 import com.sun.syndication.propono.atom.server.AtomNotFoundException;
 import org.apache.commons.lang.StringUtils;
 import org.apache.roller.weblogger.WebloggerException;
@@ -81,38 +80,18 @@
  *    /roller-services/app/[weblog-handle]/resource/[name]
  *    Individual resource data (GET)
  * 
- * 
- *  Coming soon...
- *
- *    /roller-services/app/[weblog-handle]/comments
- *    Comments collection for weblog (GET, POST)
- * 
- *    /roller-services/app/[weblog-handle]/comments/[offset]
- *    Comments collection for weblog with offset (GET)
- * 
- *    /roller-services/app/[weblog-handle]/comment/[id]
- *    Individual comment within weblog (GET, PUT, DELETE)
- * 
- * 
- *    /roller-services/app/[weblog-handle]/entry/[id]/comments
- *    Comments collection for entry with id (GET)
- * 
- *    /roller-services/app/[weblog-handle]/entry/[id]/comments/[offset]
- *    Comments collection for entry with id (GET)
- * 
  * </pre>
  * @author David M Johnson
  */
 public class RollerAtomHandler implements AtomHandler {
-    private Weblogger roller;
-    private User      user;
-    private int       maxEntries = 20;
-    
-    private final String atomURL;
+    protected Weblogger roller = null;
+    protected User user = null;
+    protected int  maxEntries = 20;
+    protected      String atomURL = null;
     
-    private static boolean throttle = true;
+    protected static boolean throttle = true;
     
-    private static Log log =
+    protected static Log log =
             LogFactory.getFactory().getInstance(RollerAtomHandler.class);
     
     static {
@@ -121,7 +100,7 @@
     }
     
     //------------------------------------------------------------ construction
-    
+
     /**
      * Create Atom handler for a request and attempt to authenticate user.
      * If user is authenticated, then getAuthenticatedUsername() will return
@@ -144,6 +123,9 @@
         atomURL = WebloggerFactory.getWeblogger().getUrlStrategy().getAtomProtocolURL(true);
     }
     
+    /** For testing and for those who wish to extend */
+    public RollerAtomHandler() {}
+
     /**
      * Return weblogHandle of authenticated user or null if there is none.
      */



Mime
View raw message