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/03/09 06:35:09 UTC
svn commit: r751589 - in
/geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet:
FilterRegistration.java ServletContext.java ServletRegistration.java
SessionCookieConfig.java
Author: djencks
Date: Mon Mar 9 05:35:08 2009
New Revision: 751589
URL: http://svn.apache.org/viewvc?rev=751589&view=rev
Log:
update to latest jetty7 servlet api 3 javadoc
Modified:
geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/FilterRegistration.java
geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletContext.java
geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletRegistration.java
geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/SessionCookieConfig.java
Modified: geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/FilterRegistration.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/FilterRegistration.java?rev=751589&r1=751588&r2=751589&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/FilterRegistration.java (original)
+++ geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/FilterRegistration.java Mon Mar 9 05:35:08 2009
@@ -24,27 +24,20 @@
import java.util.Map;
/**
- * @version $Rev:$ $Date:$
+ * @version $Rev$ $Date$
* @since 3.0
*/
-public abstract class FilterRegistration {
- protected String description;
- protected boolean isAsyncSupported;
+public interface FilterRegistration {
+ boolean setDescription(String description);
- public void setDescription(String description) {
- this.description = description;
- }
+ void setAsyncSupported(boolean asyncSupported);
- public void setAsyncSupported(boolean asyncSupported) {
- isAsyncSupported = asyncSupported;
- }
+ void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String ... servletNames);
- public abstract void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String ... servletNames);
+ void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String ... urlPatterns);
- public abstract void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String ... urlPatterns);
+ boolean setInitParameter(String name, String value);
- public abstract void setInitParameter(String name, String value);
-
- public abstract void setInitParameters(Map<String, String> initParameters);
+ void setInitParameters(Map<String, String> initParameters);
}
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=751589&r1=751588&r2=751589&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 Mon Mar 9 05:35:08 2009
@@ -661,6 +661,19 @@
String className) throws IllegalArgumentException, IllegalStateException;
/**
+ * Add the specified servlet to the context
+ * @param servletName servlet's name
+ * @param clazz class of the servlet
+ * @throws IllegalArgumentException duplicate servletName
+ * @throws IllegalStateException this method called after #initialize
+ * @return ServletRegistration allowing configuration of the servlet
+ *
+ * @since 3.0
+ */
+ ServletRegistration addServlet(String servletName,
+ Class<? extends Servlet> clazz) throws IllegalArgumentException, IllegalStateException;
+
+ /**
* Fish out the servlet registration for a named servlet
* @param servletName name of the servlet you want to configure
* @return ServletRegistration for servlet you want
@@ -731,7 +744,14 @@
*/
EnumSet<SessionTrackingMode> getEffectiveSessionTrackingModes();
-
+ /**
+ *
+ * @param name of the init parameter to set
+ * @param value new value
+ * @return whether it was set??
+ * @since 3.0
+ */
+ boolean setInitParameter(String name, String value);
}
Modified: geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletRegistration.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletRegistration.java?rev=751589&r1=751588&r2=751589&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletRegistration.java (original)
+++ geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/ServletRegistration.java Mon Mar 9 05:35:08 2009
@@ -23,31 +23,21 @@
import java.util.Map;
/**
- * @version $Rev:$ $Date:$
+ * @version $Rev$ $Date$
* @since 3.0
*/
-public abstract class ServletRegistration {
+public interface ServletRegistration {
- protected String description;
- protected boolean isAsyncSupported;
- protected int loadOnStartup;
+ boolean setDescription(String description);
- public void setDescription(String description) {
- this.description = description;
- }
+ void setAsyncSupported(boolean asyncSupported);
- public void setAsyncSupported(boolean asyncSupported) {
- isAsyncSupported = asyncSupported;
- }
+ void setLoadOnStartup(int loadOnStartup);
- public void setLoadOnStartup(int loadOnStartup) {
- this.loadOnStartup = loadOnStartup;
- }
+ void addMapping(String... urlPatterns);
- public abstract void addMapping(String... urlPatterns);
+ boolean setInitParameter(String name, String value);
- public abstract void setInitParameter(String name, String value);
+ void setInitParameters(Map<String, String> initParameters);
- public abstract void setInitParameters(Map<String, String> initParameters);
-
}
Modified: geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/SessionCookieConfig.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/SessionCookieConfig.java?rev=751589&r1=751588&r2=751589&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/SessionCookieConfig.java (original)
+++ geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/SessionCookieConfig.java Mon Mar 9 05:35:08 2009
@@ -21,42 +21,18 @@
package javax.servlet;
/**
- * @version $Rev:$ $Date:$
+ * @version $Rev$ $Date$
* @since 3.0
*/
-public class SessionCookieConfig {
+public interface SessionCookieConfig {
- private final String domain;
- private final String path;
- private final String comment;
- private final boolean httpOnly;
- private final boolean secure;
-
- public SessionCookieConfig(String domain, String path, String comment, boolean httpOnly, boolean secure) {
- this.domain = domain;
- this.path = path;
- this.comment = comment;
- this.httpOnly = httpOnly;
- this.secure = secure;
- }
-
- public String getDomain() {
- return domain;
- }
-
- public String getPath() {
- return path;
- }
-
- public String getComment() {
- return comment;
- }
-
- public boolean isHttpOnly() {
- return httpOnly;
- }
-
- public boolean isSecure() {
- return secure;
- }
+ String getDomain();
+
+ String getPath();
+
+ String getComment();
+
+ boolean isHttpOnly();
+
+ boolean isSecure();
}