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
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>
-
Field Summary
FieldsFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
TARGET
- See Also:
-
-
Constructor Details
-
OpenLinkNewTabFilterPlugin
public OpenLinkNewTabFilterPlugin()
-
-
Method Details
-
doFilter
Description copied from interface:FilterFilters the input data.- Parameters:
input- the input data- Returns:
- an Object with the result after filtered
-