com.caucho.resin
Class FilterMappingEmbed

java.lang.Object
  extended by com.caucho.resin.FilterMappingEmbed

public class FilterMappingEmbed
extends java.lang.Object

Embeddable version of a filter-mapping

 ResinEmbed resin = new ResinEmbed();

 WebAppEmbed webApp = new WebAppEmbed("/foo", "/var/www/foo");

 FilterMappingEmbed myFilter
   = new FilterMappingEmbed("/my-filter", "*.jsp", "qa.MyFilter");

 webApp.addFilterMapping(myFilter);

 resin.addWebApp(webApp);
 


Constructor Summary
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
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterMappingEmbed

public FilterMappingEmbed()
Creates a new embedded filter-mapping


FilterMappingEmbed

public FilterMappingEmbed(java.lang.String filterName)
Creates a new embedded filter-mapping

Parameters:
filterName - the filter-name

FilterMappingEmbed

public FilterMappingEmbed(java.lang.String filterName,
                          java.lang.String urlPattern)
Creates a new embedded filter-mapping

Parameters:
filterName - the filter-name
urlPattern - the url-pattern

FilterMappingEmbed

public FilterMappingEmbed(java.lang.String filterName,
                          java.lang.String urlPattern,
                          java.lang.String filterClass)
Creates a new embedded filter-mapping

Parameters:
filterName - the filter-name
urlPattern - the url-pattern
filterClass - the filter-class
Method Detail

setFilterName

public void setFilterName(java.lang.String filterName)
The filter-name


getFilterName

public java.lang.String getFilterName()
The filter-name


setFilterClass

public void setFilterClass(java.lang.String filterClass)
The filter-class


getFilterClass

public java.lang.String getFilterClass()
The filter-class


setUrlPattern

public void setUrlPattern(java.lang.String urlPattern)
The url-pattern


getUrlPattern

public java.lang.String getUrlPattern()
The url-pattern


setServletName

public void setServletName(java.lang.String servletName)
The servlet-name


setInitParam

public void setInitParam(java.lang.String name,
                         java.lang.String value)
Sets an init-param.


addProperty

public void addProperty(java.lang.String name,
                        java.lang.Object value)
Adds a property.


configure

protected void configure(FilterMapping filterMapping)