geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1505072 - /geronimo/specs/trunk/geronimo-servlet_3.1_spec/src/main/java/javax/servlet/ServletContext.java
Date Sat, 20 Jul 2013 00:47:52 GMT
Author: gawor
Date: Sat Jul 20 00:47:52 2013
New Revision: 1505072

URL: http://svn.apache.org/r1505072
Log:
GERONIMO-6453: Servlet 3.1 API - additional fix. Patch from Andy McCright.

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

Modified: geronimo/specs/trunk/geronimo-servlet_3.1_spec/src/main/java/javax/servlet/ServletContext.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-servlet_3.1_spec/src/main/java/javax/servlet/ServletContext.java?rev=1505072&r1=1505071&r2=1505072&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-servlet_3.1_spec/src/main/java/javax/servlet/ServletContext.java
(original)
+++ geronimo/specs/trunk/geronimo-servlet_3.1_spec/src/main/java/javax/servlet/ServletContext.java
Sat Jul 20 00:47:52 2013
@@ -732,6 +732,21 @@ public interface ServletContext {
      */
     JspConfigDescriptor getJspConfigDescriptor ();
 
+    /**
+     * Returns the configuration name of the logical host on which the ServletContext is
deployed. 
+     * Servlet containers may support multiple logical hosts. This method must return the
same name
+     * for all the servlet contexts deployed on a logical host, and the name returned by
this method 
+     * must be distinct, stable per logical host, and suitable for use in associating server

+     * configuration information with the logical host. The returned value is NOT expected
or 
+     * required to be equivalent to a network address or hostname of the logical host.
+     * 
+     * @return a String containing the configuration name of the logical host on which the
servlet
+     *         context is deployed.
+     * @throws UnsupportedOperationException - if this ServletContext was passed to the 
+     *         ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)
 method
+     *         of a ServletContextListener that was neither declared in web.xml or web-fragment.xml,

+     *         nor annotated with WebListener
+     * @since Servlet 3.1
+     */
+    String getVirtualServerName();
 }
-
-



Mime
View raw message