| JavaTM 2 Platform Ent. Ed. v1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES <script type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </script> All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.servlet
Interface FilterConfig
-
public interface FilterConfig
A filter configuration object used by a servlet container to pass information to a filter during initialization. 一个过滤器配置对象,在初始化过程中由servlet容器传递信息给过滤器。
-
Since:
- Servlet 2.3 See Also:
-
Filter
Method Summary | |
String | getFilterName() Returns the filter-name of this filter as defined in the deployment descriptor. 返回过滤器在部署描述符中定义的名称。 |
String | getInitParameter(String name) Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist. 返回命名的初始化参数的对应值,如果参数不存在返回null。 |
Enumeration | getInitParameterNames() Returns the names of the filter's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the filter has no initialization parameters. 返回以String对象的Enumeration形式的过滤器初始化参数名称,如果过滤器不含初始化参数,返回一个空Enumeration。 |
ServletContext | getServletContext() Returns a reference to the ServletContext in which the caller is executing. 返回调用者正在执行的ServletContext的引用。 |
Method Detail |
getFilterName
public String getFilterName()
- Returns the filter-name of this filter as defined in the deployment descriptor. 返回过滤器在部署描述符中定义的名称。
-
getServletContext
public ServletContext getServletContext()
-
Returns a reference to the
ServletContext
in which the caller is executing. 返回调用者正在执行的ServletContext的引用。 -
-
Returns:
-
a
ServletContext
object, used by the caller to interact with its servlet container 由调用者和servlet容器交互的对象
See Also:
-
ServletContext
-
a
getInitParameter
public String getInitParameter(String name)
-
Returns a
String
containing the value of the named initialization parameter, ornull
if the parameter does not exist. 返回命名的初始化参数的对应值,如果参数不存在返回null。 -
-
Parameters:
-
name
- aString
specifying the name of the initialization parameter 指定初始化参数名称的String
Returns:
-
a
String
containing the value of the initialization parameter 初始化参数的对应String值
-
getInitParameterNames
public Enumeration getInitParameterNames()
-
Returns the names of the filter's initialization parameters as an
Enumeration
ofString
objects, or an emptyEnumeration
if the filter has no initialization parameters. 返回以String对象的Enumeration形式的过滤器初始化参数名称,如果过滤器不含初始化参数,返回一个空Enumeration。 -
-
Returns:
-
an
Enumeration
ofString
objects containing the names of the filter's initialization parameters 包含过滤器初始化参数的String对象的枚举
-
an
| JavaTM 2 Platform Ent. Ed. v1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES <script type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </script> All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2003 Sun Microsystems, Inc. All rights reserved.