Class HTMLTransformer
- java.lang.Object
-
- org.ametys.cms.transformation.AbstractRichTextTransformer
-
- org.ametys.plugins.workspaces.html.HTMLTransformer
-
- All Implemented Interfaces:
RichTextTransformer
,PluginAware
,Component
,Serviceable
public class HTMLTransformer extends AbstractRichTextTransformer implements Component, PluginAware
RichTextTransformer
which convert HTML into HTML.
-
-
Constructor Summary
Constructors Constructor Description HTMLTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
_getSourceUriForHTML2RichText()
Returns the internalSource
URI used to process the HTML editor content.protected String
_getSourceUriForRichText2HTML()
Returns the internalSource
URI used to process the RichText's InputStream.void
setPluginInfo(String pluginName, String featureName, String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.-
Methods inherited from class org.ametys.cms.transformation.AbstractRichTextTransformer
service, transform, transform, transformForEditing, transformForEditing, transformForRendering, transformForRendering
-
-
-
-
Constructor Detail
-
HTMLTransformer
public HTMLTransformer()
-
-
Method Detail
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
_getSourceUriForHTML2RichText
protected String _getSourceUriForHTML2RichText()
Description copied from class:AbstractRichTextTransformer
Returns the internalSource
URI used to process the HTML editor content.- Specified by:
_getSourceUriForHTML2RichText
in classAbstractRichTextTransformer
- Returns:
- the internal
Source
URI used to process the HTML editor content.
-
_getSourceUriForRichText2HTML
protected String _getSourceUriForRichText2HTML()
Description copied from class:AbstractRichTextTransformer
Returns the internalSource
URI used to process the RichText's InputStream.- Specified by:
_getSourceUriForRichText2HTML
in classAbstractRichTextTransformer
- Returns:
- the internal
Source
URI used to process the RichText's InputStream.
-
-