org.xwiki.xml.internal.html
Class DefaultHTMLCleanerConfiguration

java.lang.Object
  extended by org.xwiki.xml.internal.html.DefaultHTMLCleanerConfiguration
All Implemented Interfaces:
HTMLCleanerConfiguration

public class DefaultHTMLCleanerConfiguration
extends Object
implements HTMLCleanerConfiguration

Default and basic implementation used by the DefaultHTMLCleaner implementation.

Since:
1.8.1

Field Summary
 
Fields inherited from interface org.xwiki.xml.html.HTMLCleanerConfiguration
NAMESPACES_AWARE, RESTRICTED
 
Constructor Summary
DefaultHTMLCleanerConfiguration()
           
 
Method Summary
 List<HTMLFilter> getFilters()
           
 Map<String,String> getParameters()
           
 void setFilters(List<HTMLFilter> filters)
           
 void setParameters(Map<String,String> parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHTMLCleanerConfiguration

public DefaultHTMLCleanerConfiguration()
Method Detail

getFilters

public List<HTMLFilter> getFilters()
Specified by:
getFilters in interface HTMLCleanerConfiguration
Returns:
the ordered list of filters to use for cleaning the HTML content

getParameters

public Map<String,String> getParameters()
Specified by:
getParameters in interface HTMLCleanerConfiguration
Returns:
the list of cleaning parameters that will be used to clean the HTML content. Note that these parameters are implementation dependent and thus depend on the HTML cleaner implementation used.

setFilters

public void setFilters(List<HTMLFilter> filters)
Specified by:
setFilters in interface HTMLCleanerConfiguration
Parameters:
filters - the ordered list of filters to use for cleaning the HTML content

setParameters

public void setParameters(Map<String,String> parameters)
Specified by:
setParameters in interface HTMLCleanerConfiguration
Parameters:
parameters - the list of cleaning parameters that will be used to clean the HTML content