You are viewing a plain text version of this content. The canonical link for it is here.
Posted to servletapi-dev@jakarta.apache.org by da...@locus.apache.org on 2000/10/16 21:09:11 UTC

cvs commit: jakarta-servletapi/src/share/javax/servlet FilterConfig.java ServletConfig.java Config.java

dannyc      00/10/16 12:09:09

  Modified:    src/share/javax/servlet Tag: SERVLET_23_JSP_12
                        FilterConfig.java ServletConfig.java
  Removed:     src/share/javax/servlet Tag: SERVLET_23_JSP_12 Config.java
  Log:
  Removed Config interface and moved methods back, as per the forwards compatibility decision in the expert group.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +50 -1     jakarta-servletapi/src/share/javax/servlet/Attic/FilterConfig.java
  
  Index: FilterConfig.java
  ===================================================================
  RCS file: /home/cvs/jakarta-servletapi/src/share/javax/servlet/Attic/FilterConfig.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- FilterConfig.java	2000/08/17 01:33:10	1.1.2.1
  +++ FilterConfig.java	2000/10/16 19:09:05	1.1.2.2
  @@ -63,6 +63,7 @@
   
   
   import java.util.Iterator;
  +import java.util.Enumeration;
   
   	 /** 
   	 *
  @@ -79,7 +80,7 @@
   	 */
   
   
  -public interface FilterConfig extends Config {
  +public interface FilterConfig {
   
   	/** 
   	* Returns the filter-name of this filter as defined in the deployment descriptor. 
  @@ -100,6 +101,54 @@
   	* support the optional remove() operation. 
   	**/
       public Iterator getFilters();
  +
  + /**
  +     * Returns a reference to the {@link ServletContext} in which the caller
  +     * is executing.
  +     *
  +     *
  +     * @return		a {@link ServletContext} object, used
  +     *			by the caller to interact with its servlet 
  +     *                  container
  +     * 
  +     * @see		ServletContext
  +     *
  +     */
  +
  +    public ServletContext getServletContext();
  +    
  +    /**
  +     * Returns a <code>String</code> containing the value of the 
  +     * named initialization parameter, or <code>null</code> if 
  +     * the parameter does not exist.
  +     *
  +     * @param name	a <code>String</code> specifying the name
  +     *			of the initialization parameter
  +     *
  +     * @return		a <code>String</code> containing the value 
  +     *			of the initialization parameter
  +     *
  +     */
  +
  +    public String getInitParameter(String name);
  +
  +
  +    /**
  +     * Returns the names of the servlet's initialization parameters
  +     * as an <code>Enumeration</code> of <code>String</code> objects, 
  +     * or an empty <code>Enumeration</code> if the servlet has
  +     * no initialization parameters.
  +     *
  +     * @return		an <code>Enumeration</code> of <code>String</code> 
  +     *			objects containing the names of the servlet's 
  +     *			initialization parameters
  +     *
  +     *
  +     *
  +     */
  +
  +    public Enumeration getInitParameterNames();
  +
   
   
   
  
  
  
  1.1.1.1.4.2 +49 -1     jakarta-servletapi/src/share/javax/servlet/ServletConfig.java
  
  Index: ServletConfig.java
  ===================================================================
  RCS file: /home/cvs/jakarta-servletapi/src/share/javax/servlet/ServletConfig.java,v
  retrieving revision 1.1.1.1.4.1
  retrieving revision 1.1.1.1.4.2
  diff -u -r1.1.1.1.4.1 -r1.1.1.1.4.2
  --- ServletConfig.java	2000/08/17 01:33:10	1.1.1.1.4.1
  +++ ServletConfig.java	2000/10/16 19:09:06	1.1.1.1.4.2
  @@ -71,7 +71,7 @@
    *
    */
    
  -public interface ServletConfig extends Config {
  +public interface ServletConfig {
       
   
       /**
  @@ -87,5 +87,53 @@
        */
   
       public String getServletName();
  +
  +    /**
  +     * Returns a reference to the {@link ServletContext} in which the caller
  +     * is executing.
  +     *
  +     *
  +     * @return		a {@link ServletContext} object, used
  +     *			by the caller to interact with its servlet 
  +     *                  container
  +     * 
  +     * @see		ServletContext
  +     *
  +     */
  +
  +    public ServletContext getServletContext();
  +    
  +    /**
  +     * Returns a <code>String</code> containing the value of the 
  +     * named initialization parameter, or <code>null</code> if 
  +     * the parameter does not exist.
  +     *
  +     * @param name	a <code>String</code> specifying the name
  +     *			of the initialization parameter
  +     *
  +     * @return		a <code>String</code> containing the value 
  +     *			of the initialization parameter
  +     *
  +     */
  +
  +    public String getInitParameter(String name);
  +
  +
  +    /**
  +     * Returns the names of the servlet's initialization parameters
  +     * as an <code>Enumeration</code> of <code>String</code> objects, 
  +     * or an empty <code>Enumeration</code> if the servlet has
  +     * no initialization parameters.
  +     *
  +     * @return		an <code>Enumeration</code> of <code>String</code> 
  +     *			objects containing the names of the servlet's 
  +     *			initialization parameters
  +     *
  +     *
  +     *
  +     */
  +
  +    public Enumeration getInitParameterNames();
  +
   
   }