You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2008/03/11 12:16:36 UTC

svn commit: r635887 - /incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java

Author: fmeschbe
Date: Tue Mar 11 04:16:20 2008
New Revision: 635887

URL: http://svn.apache.org/viewvc?rev=635887&view=rev
Log:
Default implementation of the getServletInfo() method returns the simple
class name of the servlet now

Modified:
    incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java

Modified: incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java?rev=635887&r1=635886&r2=635887&view=diff
==============================================================================
--- incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java (original)
+++ incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java Tue Mar 11 04:16:20 2008
@@ -376,6 +376,14 @@
     }
 
     /**
+     * Returns the simple class name of this servlet class. Extensions of this
+     * class may overwrite to return more specific information.
+     */
+    public String getServletInfo() {
+        return getClass().getSimpleName();
+    }
+
+    /**
      * Helper method called by
      * {@link #doOptions(HttpServletRequest, HttpServletResponse)} to calculate
      * the value of the <em>Allow</em> header sent as the response to the HTTP