geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r796410 - /geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/Registration.java
Date Tue, 21 Jul 2009 17:49:30 GMT
Author: djencks
Date: Tue Jul 21 17:49:30 2009
New Revision: 796410

URL: http://svn.apache.org/viewvc?rev=796410&view=rev
Log:
More updates from glassfish javadoc.  Would be nice if sun sent out a change notice

Modified:
    geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/Registration.java

Modified: geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/Registration.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/Registration.java?rev=796410&r1=796409&r2=796410&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/Registration.java
(original)
+++ geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/Registration.java
Tue Jul 21 17:49:30 2009
@@ -21,21 +21,53 @@
 package javax.servlet;
 
 import java.util.Map;
+import java.util.Set;
 
 /**
  * @version $Rev$ $Date$
  * @since 3.0
  */
 public interface Registration {
+
+    /**
+     *
+     * @return the class name of filter or servlet this registered
+     */
+    String getClassName();
+
+    /**
+     *
+     * @param name init parameter name
+     * @return init parameter value or null if not set
+     */
+    String getInitParameter(String name);
+
+    /**
+     *
+     * @return non-null immutable map of all init parameters
+     */
+    Map<String, String> getInitParameters();
+
+    /**
+     *
+     * @return name of filter or servlet this initialised
+     */
+    String getName();
+
     boolean setInitParameter(String name, String value);
 
-    void setInitParameters(Map<String, String> initParameters);
+    /**
+     *
+     * @param initParameters map of name-value paramters
+     * @return set of previously set parameter names
+     */
+    Set<String> setInitParameters(Map<String, String> initParameters);
 
     public interface Dynamic extends Registration {
 
         void setAsyncSupported(boolean asyncSupported);
 
-        boolean setDescription(String description);
+        void setDescription(String description);
         
     }
 }



Mime
View raw message