public class FilterMappingEmbed
extends java.lang.Object
ResinEmbed resin = new ResinEmbed();
WebAppEmbed webApp = new WebAppEmbed("/foo", "/var/resin/foo");
FilterMappingEmbed myFilter
= new FilterMappingEmbed("/my-filter", "*.jsp", "qa.MyFilter");
webApp.addFilterMapping(myFilter);
resin.addWebApp(webApp);
Constructor and Description |
---|
FilterMappingEmbed()
Creates a new embedded filter-mapping
|
FilterMappingEmbed(java.lang.String filterName)
Creates a new embedded filter-mapping
|
FilterMappingEmbed(java.lang.String filterName,
java.lang.String urlPattern)
Creates a new embedded filter-mapping
|
FilterMappingEmbed(java.lang.String filterName,
java.lang.String urlPattern,
java.lang.String filterClass)
Creates a new embedded filter-mapping
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String name,
java.lang.Object value)
Adds a property.
|
protected void |
configure(FilterMapping filterMapping) |
java.lang.String |
getFilterClass()
The filter-class
|
java.lang.String |
getFilterName()
The filter-name
|
java.lang.String |
getUrlPattern()
The url-pattern
|
void |
setFilterClass(java.lang.String filterClass)
The filter-class
|
void |
setFilterName(java.lang.String filterName)
The filter-name
|
void |
setInitParam(java.lang.String name,
java.lang.String value)
Sets an init-param.
|
void |
setServletName(java.lang.String servletName)
The servlet-name
|
void |
setUrlPattern(java.lang.String urlPattern)
The url-pattern
|
public FilterMappingEmbed()
public FilterMappingEmbed(java.lang.String filterName)
filterName
- the filter-namepublic FilterMappingEmbed(java.lang.String filterName, java.lang.String urlPattern)
filterName
- the filter-nameurlPattern
- the url-patternpublic FilterMappingEmbed(java.lang.String filterName, java.lang.String urlPattern, java.lang.String filterClass)
filterName
- the filter-nameurlPattern
- the url-patternfilterClass
- the filter-classpublic void setFilterName(java.lang.String filterName)
public java.lang.String getFilterName()
public void setFilterClass(java.lang.String filterClass)
public java.lang.String getFilterClass()
public void setUrlPattern(java.lang.String urlPattern)
public java.lang.String getUrlPattern()
public void setServletName(java.lang.String servletName)
public void setInitParam(java.lang.String name, java.lang.String value)
public void addProperty(java.lang.String name, java.lang.Object value)
protected void configure(FilterMapping filterMapping)