com.caucho.resin
Class FilterEmbed

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

public class FilterEmbed
extends java.lang.Object

Embeddable version of a filter

 ResinEmbed resin = new ResinEmbed();

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

 FilterEmbed myFilter = new FilterEmbed("my-filter", "qa.MyFilter");
 webApp.addFilter(myFilter);

 resin.addWebApp(webApp);
 


Constructor Summary
FilterEmbed()
          Creates a new embedded filter
FilterEmbed(java.lang.String filterClass)
          Creates a new embedded filter
FilterEmbed(java.lang.String filterClass, java.lang.String filterName)
          Creates a new embedded filter
 
Method Summary
 void addProperty(java.lang.String name, java.lang.Object value)
          Adds a property.
protected  void configure(FilterConfigImpl filterConfig)
           
 java.lang.String getFilterClass()
          The filter-class
 java.lang.String getFilterName()
          The filter-name
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterEmbed

public FilterEmbed()
Creates a new embedded filter


FilterEmbed

public FilterEmbed(java.lang.String filterClass)
Creates a new embedded filter

Parameters:
filterClass - the filter-class

FilterEmbed

public FilterEmbed(java.lang.String filterClass,
                   java.lang.String filterName)
Creates a new embedded filter

Parameters:
filterClass - the filter-class
filterName - the filter-name
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


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(FilterConfigImpl filterConfig)