Package org.glassfish.grizzly.servlet
Class FilterConfigImpl
java.lang.Object
org.glassfish.grizzly.servlet.FilterConfigImpl
- All Implemented Interfaces:
FilterConfig
FilterConfig implementation.- Author:
- Jeanfrancois Arcand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the application Filter we are configured for.Returns the filter-name of this filter as defined in the deployment descriptor.getInitParameter(String name) Returns aStringcontaining the value of the named initialization parameter, ornullif the initialization parameter does not exist.Returns the names of the filter's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the filter has no initialization parameters.Returns a reference to theServletContextin which the caller is executing.protected voidrecycle()Release the Filter instance associated with this FilterConfig, if there is one.protected voidSet theFilterassociated with this object.protected voidsetFilterName(String filterName) Set theFilter's name associated with this object.protected voidsetInitParameters(Map<String, String> initParameters) Set the init parameters associated with this associatedFilter.
-
Constructor Details
-
FilterConfigImpl
-
-
Method Details
-
getInitParameter
Returns aStringcontaining the value of the named initialization parameter, ornullif the initialization parameter does not exist.- Specified by:
getInitParameterin interfaceFilterConfig- Parameters:
name- aStringspecifying the name of the initialization parameter- Returns:
- a
Stringcontaining the value of the initialization parameter, ornullif the initialization parameter does not exist
-
getFilterName
Returns the filter-name of this filter as defined in the deployment descriptor.- Specified by:
getFilterNamein interfaceFilterConfig- Returns:
- the filter name of this filter
-
getInitParameterNames
Returns the names of the filter's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the filter has no initialization parameters.- Specified by:
getInitParameterNamesin interfaceFilterConfig- Returns:
- an
EnumerationofStringobjects containing the names of the filter's initialization parameters
-
getServletContext
Returns a reference to theServletContextin which the caller is executing.- Specified by:
getServletContextin interfaceFilterConfig- Returns:
- a
ServletContextobject, used by the caller to interact with its servlet container - See Also:
-
getFilter
Return the application Filter we are configured for. -
recycle
protected void recycle()Release the Filter instance associated with this FilterConfig, if there is one. -
setFilter
Set theFilterassociated with this object.- Parameters:
filter-
-
setFilterName
Set theFilter's name associated with this object.- Parameters:
filterName- the name of thisFilter.
-
setInitParameters
Set the init parameters associated with this associatedFilter.- Parameters:
initParameters- the configuration parameters for thisFilter
-