]> WPIA git - gigi.git/blob - lib/servlet-api/javax/servlet/FilterConfig.java
adding servlet api (from tomcat)
[gigi.git] / lib / servlet-api / javax / servlet / FilterConfig.java
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements.  See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License.  You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 package javax.servlet;
19
20 import java.util.Enumeration;
21
22 /**
23  *
24  * A filter configuration object used by a servlet container to pass information
25  * to a filter during initialization.
26  *
27  * @see Filter
28  * @since Servlet 2.3
29  */
30 public interface FilterConfig {
31
32     /**
33      * Returns the filter-name of this filter as defined in the deployment
34      * descriptor.
35      */
36     public String getFilterName();
37
38     /**
39      * Returns a reference to the {@link ServletContext} in which the caller is
40      * executing.
41      *
42      * @return {@link ServletContext} object, used by the caller to interact
43      *         with its servlet container
44      *
45      * @see ServletContext
46      */
47     public ServletContext getServletContext();
48
49     /**
50      * Returns a <code>String</code> containing the value of the named
51      * initialization parameter, or <code>null</code> if the parameter does not
52      * exist.
53      *
54      * @param name
55      *            <code>String</code> specifying the name of the initialization
56      *            parameter
57      *
58      * @return <code>String</code> containing the value of the initialization
59      *         parameter
60      */
61     public String getInitParameter(String name);
62
63     /**
64      * Returns the names of the filter's initialization parameters as an
65      * <code>Enumeration</code> of <code>String</code> objects, or an empty
66      * <code>Enumeration</code> if the filter has no initialization parameters.
67      *
68      * @return <code>Enumeration</code> of <code>String</code> objects
69      *         containing the names of the filter's initialization parameters
70      */
71     public Enumeration<String> getInitParameterNames();
72
73 }