You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by dj...@apache.org on 2009/08/19 01:10:00 UTC

svn commit: r805625 - /geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletContext.java

Author: djencks
Date: Tue Aug 18 23:10:00 2009
New Revision: 805625

URL: http://svn.apache.org/viewvc?rev=805625&view=rev
Log:
More missing methods found by Maxim Moldenhauer, thanks

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

Modified: geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletContext.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletContext.java?rev=805625&r1=805624&r2=805625&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletContext.java (original)
+++ geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletContext.java Tue Aug 18 23:10:00 2009
@@ -696,6 +696,22 @@
     Set<SessionTrackingMode> getDefaultSessionTrackingModes();
 
     /**
+     *
+     * @return the major version of the servlet spec the web app thinks it is using.
+     * @throws UnsupportedOperationException if this ServletContext was constructed in a way where the spec version cannot be determined.
+     * @since 3.0
+     */
+    int getEffectiveMajorVersion() throws UnsupportedOperationException;
+
+    /**
+     *
+     * @return the minor version of the servlet spec the web app thinks it is using.
+     * @throws UnsupportedOperationException if this ServletContext was constructed in a way where the spec version cannot be determined.
+     * @since 3.0
+     */
+    int getEffectiveMinorersion() throws UnsupportedOperationException;
+
+    /**
      * @return the actual session tracking modes.  These will be the default ones unless they've been explicitly set.
      * @since 3.0
      */