Return-Path: Delivered-To: apmail-incubator-roller-commits-archive@www.apache.org Received: (qmail 9772 invoked from network); 28 Jun 2006 02:08:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jun 2006 02:08:02 -0000 Received: (qmail 71385 invoked by uid 500); 28 Jun 2006 02:08:02 -0000 Delivered-To: apmail-incubator-roller-commits-archive@incubator.apache.org Received: (qmail 71355 invoked by uid 500); 28 Jun 2006 02:08:01 -0000 Mailing-List: contact roller-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: roller-dev@incubator.apache.org Delivered-To: mailing list roller-commits@incubator.apache.org Received: (qmail 71344 invoked by uid 99); 28 Jun 2006 02:08:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jun 2006 19:08:01 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jun 2006 19:08:01 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 106A11A983A; Tue, 27 Jun 2006 19:07:41 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r417635 - in /incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity: CommentServlet.java deprecated/CommentServlet.java Date: Wed, 28 Jun 2006 02:07:40 -0000 To: roller-commits@incubator.apache.org From: agilliland@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060628020741.106A11A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: agilliland Date: Tue Jun 27 19:07:40 2006 New Revision: 417635 URL: http://svn.apache.org/viewvc?rev=417635&view=rev Log: moving old comment servlet into the velocity deprecated package which is where we'll put all of our redirect servlets moving forward. Added: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/deprecated/CommentServlet.java - copied, changed from r417491, incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/CommentServlet.java Removed: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/CommentServlet.java Copied: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/deprecated/CommentServlet.java (from r417491, incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/CommentServlet.java) URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/deprecated/CommentServlet.java?p2=incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/deprecated/CommentServlet.java&p1=incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/CommentServlet.java&r1=417491&r2=417635&rev=417635&view=diff ============================================================================== --- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/CommentServlet.java (original) +++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/velocity/deprecated/CommentServlet.java Tue Jun 27 19:07:40 2006 @@ -1,21 +1,22 @@ /* -* 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.velocity; + * 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.velocity.deprecated; import java.io.IOException; import javax.servlet.RequestDispatcher; @@ -23,7 +24,6 @@ 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; import org.apache.roller.pojos.WeblogEntryData; @@ -40,13 +40,10 @@ * * @web.servlet name="CommentsServlet" * @web.servlet-mapping url-pattern="/comments/*" - * - * @author Allen Gilliland */ public class CommentServlet extends HttpServlet { - private static Log mLogger = - LogFactory.getFactory().getInstance(CommentServlet.class); + private static Log log = LogFactory.getLog(CommentServlet.class); /** @@ -56,7 +53,7 @@ * because these old comment servlet urls are deprecated now. */ public void doGet(HttpServletRequest request, HttpServletResponse response) - throws IOException, ServletException { + throws IOException, ServletException { // a GET request means that this client is trying to use this old // comment servlet as a form of permalink for rendering an entry. @@ -85,7 +82,7 @@ } } - mLogger.debug("forwarding to "+forward); + log.debug("forwarding to "+forward); // send an HTTP 301 response response.setStatus(response.SC_MOVED_PERMANENTLY); @@ -105,7 +102,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { - mLogger.warn(request.getHeader("referer")+ + log.warn(request.getHeader("referer")+ " is posting to the OLD CommentServlet"); // just dispatch to new CommentServlet