Package io.meeds.social.html.service
Interface HtmlProcessorService
public interface HtmlProcessorService
A service used to transform a HTML content for display
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(HtmlProcessorPlugin processorPlugin) Add new Processor Plugin to consider while processing the html to write on databaseprocess(String html, HtmlProcessorContext context) Process the HTML input into content before storing in databasevoidremovePlugin(HtmlProcessorPlugin processorPlugin) Removes a plugin that was previously added
-
Method Details
-
process
Process the HTML input into content before storing in database- Parameters:
html- HTML inputcontext- HTML processor context of typeHtmlProcessorContext- Returns:
- processed HTML output
-
addPlugin
Add new Processor Plugin to consider while processing the html to write on database- Parameters:
processorPlugin-HtmlProcessorPlugin
-
removePlugin
Removes a plugin that was previously added- Parameters:
processorPlugin-HtmlProcessorPlugin
-