Sfoglia il codice sorgente

HADOOP-5853. Undeprecate HttpServer.addInternalServlet method. Contributed by Suresh Srinivas

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@776414 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze 16 anni fa
parent
commit
a77561a13e
2 ha cambiato i file con 8 aggiunte e 3 eliminazioni
  1. 3 0
      CHANGES.txt
  2. 5 3
      src/core/org/apache/hadoop/http/HttpServer.java

+ 3 - 0
CHANGES.txt

@@ -624,6 +624,9 @@ Trunk (unreleased changes)
     HADOOP-5835. Fix findbugs warnings found in Block, DataNode, NameNode and
     a few other hdfs classes.  (Suresh Srinivas via szetszwo)
 
+    HADOOP-5853. Undeprecate HttpServer.addInternalServlet method.  (Suresh
+    Srinivas via szetszwo)
+
 Release 0.20.1 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 5 - 3
src/core/org/apache/hadoop/http/HttpServer.java

@@ -238,13 +238,15 @@ public class HttpServer implements FilterContainer {
   }
 
   /**
-   * Add an internal servlet in the server.
+   * Add an internal servlet in the server. 
+   * Note: This method is to be used for adding servlets that facilitate
+   * internal communication and not for user facing functionality. For
+   * servlets added using this method, filters are not enabled. 
+   * 
    * @param name The name of the servlet (can be passed as null)
    * @param pathSpec The path spec for the servlet
    * @param clazz The servlet class
-   * @deprecated this is a temporary method
    */
-  @Deprecated
   public void addInternalServlet(String name, String pathSpec,
       Class<? extends HttpServlet> clazz) {
     ServletHolder holder = new ServletHolder(clazz);