Class OpenLinkNewTabFilterPlugin

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

public class OpenLinkNewTabFilterPlugin extends BaseXMLFilterPlugin
This OpenLinkNewTabFilterPlugin is a plugin for XMLProcessor which will force all links have to be open in new tab. It will set attribute target="_blank" if this attribute is omitted or had other value. For example: <a href="http://abc.com">abc</a> => <a href="http://abc.com" target="_blank">abc</a> <a href="http://abc.com" target="frame_name">abc</a> => <a href="http://abc.com" target="_blank">abc</a>
Author:
Tuyen Nguyen The.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    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
  • Field Details

  • Constructor Details

    • OpenLinkNewTabFilterPlugin

      public OpenLinkNewTabFilterPlugin()
  • Method Details

    • doFilter

      public Object doFilter(Object input)
      Description copied from interface: Filter
      Filters the input data.
      Parameters:
      input - the input data
      Returns:
      an Object with the result after filtered