|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.servlet Interface FilterConfig
public interface FilterConfig
servlet 容器使用的过滤器配置对象,该对象在初始化期间将信息传递给过滤器。
since |
| |
See also | javax.servlet.Filter |
A filter configuration object used by a servlet container to pass information to a filter during initialization.
- 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. |
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. |
ServletContext |
getServletContext()
Returns a reference to the ServletContext in which the caller
is executing. |
Method Detail |
---|
public String
getFilterName()
如部署描述符中定义的那样,返回此过滤器的过滤器名称。
英文文档:
getFilterName
String getFilterName()
- Returns the filter-name of this filter as defined in the deployment descriptor.
public ServletContext
getServletContext()
返回对调用者在其中执行操作的 ServletContext
的引用。
return |
一个 ServletContext 对象,调用者用于与其 servlet 容器交互 |
See also | javax.servlet.ServletContext |
getServletContext
ServletContext getServletContext()
- Returns a reference to the
ServletContext
in which the caller is executing. - Returns:
- a
ServletContext
object, used by the caller to interact with its servlet container - See Also:
ServletContext
public String
getInitParameter(String name)
返回包含指定初始化参数的值的 String
,如果参数不存在,则返回 null
。
name |
指定初始化参数名称的 String |
return |
包含初始化参数值的 String |
getInitParameter
String getInitParameter(String name)
- Returns a
String
containing the value of the named initialization parameter, ornull
if the parameter does not exist. - Parameters:
name
- aString
specifying the name of the initialization parameter- Returns:
- a
String
containing the value of the initialization parameter
public java.util.Enumeration<E>
getInitParameterNames()
以 String
对象的 Enumeration
的形式返回过滤器初始化参数的名称,如果过滤器没有初始化参数,则返回一个空的 Enumeration
。
return |
包含过滤器初始化参数名称的 String 对象的 Enumeration |
getInitParameterNames
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. - Returns:
- an
Enumeration
ofString
objects containing the names of the filter's initialization parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!