Class SanitizeFilterPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.common.xmlprocessor.BaseXMLFilterPlugin
org.exoplatform.social.common.xmlprocessor.filters.SanitizeFilterPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, Filter

public class SanitizeFilterPlugin extends BaseXMLFilterPlugin
The filter escapes all the DOMTree to make sure it cleaned. Note: this filter cannot detect that content escaped or not so make sure that you don't use it twice or using it with escaped content.
  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Filters the input data.

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SanitizeFilterPlugin

      public SanitizeFilterPlugin()
  • Method Details

    • doFilter

      public Object doFilter(Object input)
      Filters the input data.
      Parameters:
      input - the input data
      Returns:
      an Object with the result after filtered