public class MailPlugin extends WebHarvestPlugin
elementDef| Constructor and Description |
|---|
MailPlugin() |
| Modifier and Type | Method and Description |
|---|---|
static javax.activation.DataSource |
createDataSourceOfVariable(Variable variable,
String charset,
String mimeType) |
Variable |
executePlugin(Scraper scraper,
ScraperContext context)
Mathod that actually executes processor.
|
String[] |
getAttributeValueSuggestions(String attributeName) |
Class[] |
getDependantProcessors()
Defines dependant subprocessors that are used inside this plugin and that will
automatically be registered with this plugin.
|
org.apache.commons.mail.Email |
getEmail() |
String |
getName()
Defines name of the processor.
|
protected String |
getNextAttachmentName() |
String[] |
getRequiredAttributes()
This method should return all mandatory attribute names for the plugin processor.
|
String[] |
getRequiredSubprocessors()
This method should return all mandatory subprocessor names, or in other words all
mandatory subtags that must be present in the body of this processor plugin.
|
String[] |
getValidAttributes()
This method should return all possible attribute names for the plugin processor.
|
String[] |
getValidSubprocessors()
This method should return all names of all allowed processors inside the body of
this processor plugin.
|
evaluateAttribute, evaluateAttributeAsBoolean, evaluateAttributeAsDouble, evaluateAttributeAsInteger, execute, executeBody, getAttributeDesc, getAttributes, getTagDesc, hasBody, setDefdebug, getBodyTextContent, getBodyTextContent, getBodyTextContent, getElementDef, getSubprocessors, run, setPropertypublic static javax.activation.DataSource createDataSourceOfVariable(Variable variable, String charset, String mimeType) throws IOException
IOExceptionpublic String getName()
WebHarvestPlugingetName in class WebHarvestPluginpublic Variable executePlugin(Scraper scraper, ScraperContext context)
WebHarvestPluginexecutePlugin in class WebHarvestPluginpublic String[] getValidAttributes()
WebHarvestPlugingetValidAttributes in class WebHarvestPluginpublic String[] getRequiredAttributes()
WebHarvestPlugingetRequiredAttributes in class WebHarvestPluginpublic String[] getValidSubprocessors()
WebHarvestPlugingetValidSubprocessors in class WebHarvestPluginpublic String[] getRequiredSubprocessors()
WebHarvestPlugingetRequiredSubprocessors in class WebHarvestPluginpublic Class[] getDependantProcessors()
WebHarvestPlugingetDependantProcessors in class WebHarvestPluginpublic org.apache.commons.mail.Email getEmail()
public String[] getAttributeValueSuggestions(String attributeName)
getAttributeValueSuggestions in class WebHarvestPluginattributeName - Name of plugin attributeprotected String getNextAttachmentName()
Copyright © 2022 WSO2. All rights reserved.