You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/06/22 09:07:28 UTC

svn commit: r416286 - in /incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering: servlets/FoafServlet.java velocity/FoafServlet.java

Author: agilliland
Date: Thu Jun 22 00:07:28 2006
New Revision: 416286

URL: http://svn.apache.org/viewvc?rev=416286&view=rev
Log:
deleting old and defunct foaf servlet and adding a new skeleton replacement.  we'll finish the implementation of the new one a bit later.


Added:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FoafServlet.java
Removed:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/FoafServlet.java

Added: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FoafServlet.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FoafServlet.java?rev=416286&view=auto
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FoafServlet.java (added)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/FoafServlet.java Thu Jun 22 00:07:28 2006
@@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.ui.rendering.servlets;
+
+import java.io.IOException;
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+
+/**
+ * Render foaf feeds.
+ *
+ * NOTE: as of right now the foaf servlet is MIA, but it's been that way since
+ *       Roller 2.0.  we plan to fix it up eventually ;)
+ */
+public class FoafServlet extends HttpServlet {
+    
+    private static Log log = LogFactory.getLog(FoafServlet.class);
+    
+    
+    /**
+     * Init method for this servlet
+     */
+    public void init(ServletConfig servletConfig) throws ServletException {
+        
+        super.init(servletConfig);
+        
+        log.info("Initializing FoafServlet");
+    }
+    
+    
+    /**
+     * Handle GET requests for foaf feeds.
+     */
+    public void doGet(HttpServletRequest request, HttpServletResponse response) 
+            throws ServletException, IOException {
+        
+        // TODO: redo foaf servlet
+    }
+    
+}