public class ConfigurableFilterConfig extends Object implements javax.servlet.FilterConfig
| Constructor and Description |
|---|
ConfigurableFilterConfig(javax.servlet.FilterConfig config) |
| Modifier and Type | Method and Description |
|---|---|
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. |
javax.servlet.ServletContext |
getServletContext()
Returns a reference to the
ServletContext in which the caller
is executing. |
void |
setFilterName(String name)
Sets the name of the filter.
|
void |
setParameter(String name,
String value)
Sets the value of a parameter
|
public ConfigurableFilterConfig(javax.servlet.FilterConfig config)
public String getFilterName()
getFilterName in interface javax.servlet.FilterConfigpublic javax.servlet.ServletContext getServletContext()
ServletContext in which the caller
is executing.getServletContext in interface javax.servlet.FilterConfigServletContext object, used
by the caller to interact with its servlet
containerServletContextpublic String getInitParameter(String name)
String containing the value of the
named initialization parameter, or null if
the parameter does not exist.getInitParameter in interface javax.servlet.FilterConfigname - a String specifying the name
of the initialization parameterString containing the value
of the initialization parameterpublic Enumeration getInitParameterNames()
Enumeration of String objects,
or an empty Enumeration if the filter has
no initialization parameters.getInitParameterNames in interface javax.servlet.FilterConfigEnumeration of String
objects containing the names of the filter's
initialization parameterspublic void setParameter(String name, String value)
name - the name of the parametervalue - the value of the parameterpublic void setFilterName(String name)
name - Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.