com.goodeast.webobjects.switchablestring
Class SSHTMLFilter.Factory

java.lang.Object
  |
  +--com.goodeast.webobjects.switchablestring.SSHTMLFilter.Factory
Enclosing class:
SSHTMLFilter

public static class SSHTMLFilter.Factory
extends java.lang.Object

Factory class that implements a caching scheme to avoid the overhead of creating a new object each time a new filter is desired with the same allowed or disallowed list.


Method Summary
static SSHTMLFilter filterForStrings(java.lang.String aTagsString, java.lang.String dTagsString)
          The method that you should use if you want an SSHTMLFilter object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

filterForStrings

public static SSHTMLFilter filterForStrings(java.lang.String aTagsString,
                                            java.lang.String dTagsString)
The method that you should use if you want an SSHTMLFilter object. It parses the tag strings and returns the correct filter for the tag strings from the cache if it is already there, or creates a new subclass of the right type if it is not.

Parameters:
aTagsString - List of allowed tags
dTagsString - List of disallowed tags
Returns:
An SSHTMLFilter object