Top Description Fields Constructors Methods
org.glassfish.grizzly.servlet

public Class FilterConfigImpl

extends Object
implements FilterConfig
Class Inheritance
All Implemented Interfaces
jakarta.servlet.FilterConfig
Annotations
@SuppressWarnings:unchecked
Imports
java.util.ArrayList, .Enumeration, .Map, org.glassfish.grizzly.http.server.util.Enumerator, jakarta.servlet.Filter, .FilterConfig, .ServletContext

FilterConfig implementation.
Author
Jeanfrancois Arcand

Field Summary

Modifier and TypeField and Description
private Filter
filter

The application Filter we are configured for.

private String
filterName

Filter name

private Map<String, String>
initParameters

Filter's initParameters.

private WebappContext
servletContext

The Context with which we are associated.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Filter
getFilter()

Return the application Filter we are configured for.

public String
getFilterName()

Implements jakarta.servlet.FilterConfig.getFilterName.

Returns the filter-name of this filter as defined in the deployment descriptor.

public String
getInitParameter(String name)

Implements jakarta.servlet.FilterConfig.getInitParameter.

Returns a String containing the value of the named initialization parameter, or null if the initialization parameter does not exist.

public Enumeration<String>
getInitParameterNames()

Implements jakarta.servlet.FilterConfig.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.

public ServletContext
getServletContext()

Implements jakarta.servlet.FilterConfig.getServletContext.

Returns a reference to the ServletContext in which the caller is executing.

protected void
recycle()

Release the Filter instance associated with this FilterConfig, if there is one.

protected void
setFilter(Filter filter)

Set the Filter associated with this object.

protected void
setFilterName(String
the name of this Filter.
filterName
)

Set the Filter's name associated with this object.

protected void
setInitParameters(Map<String, String>
the configuration parameters for this Filter
initParameters
)

Set the init parameters associated with this associated Filter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

filterback to summary
private Filter filter

The application Filter we are configured for.

filterNameback to summary
private String filterName

Filter name

initParametersback to summary
private Map<String, String> initParameters

Filter's initParameters.

servletContextback to summary
private WebappContext servletContext

The Context with which we are associated.

Constructor Detail

FilterConfigImplback to summary
public FilterConfigImpl(WebappContext servletContext)

Method Detail

getFilterback to summary
public Filter getFilter()

Return the application Filter we are configured for.

getFilterNameback to summary
public String getFilterName()

Implements jakarta.servlet.FilterConfig.getFilterName.

Doc from jakarta.servlet.FilterConfig.getFilterName.

Returns the filter-name of this filter as defined in the deployment descriptor.

Annotations
@Override
getInitParameterback to summary
public String getInitParameter(String name)

Implements jakarta.servlet.FilterConfig.getInitParameter.

Doc from jakarta.servlet.FilterConfig.getInitParameter.

Returns a String containing the value of the named initialization parameter, or null if the initialization parameter does not exist.

Annotations
@Override
getInitParameterNamesback to summary
public Enumeration<String> getInitParameterNames()

Implements jakarta.servlet.FilterConfig.getInitParameterNames.

Doc from jakarta.servlet.FilterConfig.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.

Annotations
@Override
getServletContextback to summary
public ServletContext getServletContext()

Implements jakarta.servlet.FilterConfig.getServletContext.

Doc from jakarta.servlet.FilterConfig.getServletContext.

Returns a reference to the ServletContext in which the caller is executing.

Annotations
@Override
recycleback to summary
protected void recycle()

Release the Filter instance associated with this FilterConfig, if there is one.

setFilterback to summary
protected void setFilter(Filter filter)

Set the Filter associated with this object.

setFilterNameback to summary
protected void setFilterName(String filterName)

Set the Filter's name associated with this object.

Parameters
filterName:String

the name of this Filter.

setInitParametersback to summary
protected void setInitParameters(Map<String, String> initParameters)

Set the init parameters associated with this associated Filter.

Parameters
initParameters:Map<String, String>

the configuration parameters for this Filter