javax.servlet.FilterConfig翻译

来源:互联网 发布:cmd怎么ping端口 编辑:程序博客网 时间:2024/04/16 21:53
 

javax.servlet.FilterConfig翻译

分类: 技术翻译
initializationstringfilterparametersservletdeprecated

目录(?)[+]

 Overview Package  Class Tree Deprecated Index Help JavaTM 2 Platform
Ent. Ed. v1.4
 PREV CLASS   NEXT CLASSFRAMES    NO FRAMES     All ClassesSUMMARY: NESTED | FIELD | CONSTR | METHODDETAIL: 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 StringgetFilterName() 
          Returns the filter-name of this filter as defined in the deployment descriptor. 返回过滤器在部署描述符中定义的名称。
 StringgetInitParameter(String name) 
          Returns a String containing the value of the named initialization parameter, ornull if the parameter does not exist. 返回命名的初始化参数的对应值,如果参数不存在返回null。
 EnumerationgetInitParameterNames() 
          Returns the names of the filter's initialization parameters as an Enumeration ofString objects, or an empty Enumeration if the filter has no initialization parameters. 返回以String对象的Enumeration形式的过滤器初始化参数名称,如果过滤器不含初始化参数,返回一个空Enumeration。
 ServletContextgetServletContext() 
          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:
ServletContext object, used by the caller to interact with its servlet container 由调用者和servlet容器交互的对象
See Also:
ServletContext

getInitParameter

public String getInitParameter(String name)
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist. 返回命名的初始化参数的对应值,如果参数不存在返回null。

Parameters:
name - a String specifying the name of the initialization parameter 指定初始化参数名称的String
Returns:
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 of String objects, or an empty Enumeration if the filter has no initialization parameters. 返回以String对象的Enumeration形式的过滤器初始化参数名称,如果过滤器不含初始化参数,返回一个空Enumeration。

Returns:
an Enumeration of String objects containing the names of the filter's initialization parameters 包含过滤器初始化参数的String对象的枚举
0 0