public final class ApplicationFilterConfig extends Object implements javax.servlet.FilterConfig, Serializable
javax.servlet.FilterConfig
useful in
managing the filter instances instantiated when a web application
is first started.Modifier and Type | Field and Description |
---|---|
protected boolean |
dynamic
Dynamic flag.
|
protected ApplicationFilterConfigFacade |
facade
The facade associated with this wrapper.
|
Constructor and Description |
---|
ApplicationFilterConfig(Context context,
FilterDef filterDef)
Construct a new ApplicationFilterConfig for the specified filter
definition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addMappingForServletNames(EnumSet<javax.servlet.DispatcherType> dispatcherTypes,
boolean isMatchAfter,
String... servletNames) |
boolean |
addMappingForUrlPatterns(EnumSet<javax.servlet.DispatcherType> dispatcherTypes,
boolean isMatchAfter,
String... urlPatterns) |
javax.servlet.FilterRegistration |
getFacade()
Get the facade FilterRegistration.
|
String |
getFilterClass()
Return the class of the filter we are configuring.
|
FilterDef |
getFilterDef()
Return the filter definition we are configured for.
|
javax.servlet.Filter |
getFilterInstance()
Return the filter instance.
|
String |
getFilterName()
Return the name of the filter we are configuring.
|
String |
getInitParameter(String name)
Return a
String containing the value of the named
initialization parameter, or null if the parameter
does not exist. |
Enumeration<String> |
getInitParameterNames()
Return an
Enumeration of the names of the initialization
parameters for this Filter. |
Map<String,String> |
getInitParameters() |
javax.servlet.ServletContext |
getServletContext()
Return the ServletContext of our associated web application.
|
Collection<String> |
getServletNameMappings() |
Collection<String> |
getUrlPatternMappings() |
boolean |
isDynamic() |
void |
setAsyncSupported(boolean asyncSupported) |
void |
setDescription(String description) |
void |
setDynamic(boolean dynamic) |
void |
setFilter(javax.servlet.Filter filter)
Set the filter instance programmatically.
|
boolean |
setInitParameter(String name,
String value) |
Set<String> |
setInitParameters(Map<String,String> initParameters) |
String |
toString()
Return a String representation of this object.
|
protected ApplicationFilterConfigFacade facade
protected boolean dynamic
public ApplicationFilterConfig(Context context, FilterDef filterDef)
context
- The context with which we are associatedfilterDef
- Filter definition for which a FilterConfig is to be
constructedpublic String getFilterName()
getFilterName
in interface javax.servlet.FilterConfig
public String getFilterClass()
public 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.FilterConfig
name
- Name of the requested initialization parameterpublic Enumeration<String> getInitParameterNames()
Enumeration
of the names of the initialization
parameters for this Filter.getInitParameterNames
in interface javax.servlet.FilterConfig
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.FilterConfig
public javax.servlet.FilterRegistration getFacade()
public boolean isDynamic()
public void setDynamic(boolean dynamic)
public String toString()
public boolean addMappingForServletNames(EnumSet<javax.servlet.DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames)
public boolean addMappingForUrlPatterns(EnumSet<javax.servlet.DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns)
public Collection<String> getServletNameMappings()
public Collection<String> getUrlPatternMappings()
public void setAsyncSupported(boolean asyncSupported)
public void setDescription(String description)
public void setFilter(javax.servlet.Filter filter)
public javax.servlet.Filter getFilterInstance()
public FilterDef getFilterDef()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.