Class MailPlugin
- java.lang.Object
-
- org.webharvest.runtime.processors.AbstractProcessor<WebHarvestPluginDef>
-
- org.webharvest.runtime.processors.WebHarvestPlugin
-
- org.webharvest.runtime.processors.plugins.mail.MailPlugin
-
- All Implemented Interfaces:
Processor<WebHarvestPluginDef>
@Autoscanned @TargetNamespace({"http://org.webharvest/schema/2.1/core","http://org.webharvest/schema/1.0/config"}) @Definition("mail") public class MailPlugin extends WebHarvestPlugin
Mail sending processor.
-
-
Field Summary
-
Fields inherited from class org.webharvest.runtime.processors.AbstractProcessor
elementDef, LOG
-
-
Constructor Summary
Constructors Constructor Description MailPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataSource
createDataSourceOfVariable(Variable variable, String charset, String mimeType)
Variable
executePlugin(DynamicScopeContext context)
Mathod that actually executes processor.String[]
getAttributeValueSuggestions(String attributeName)
Class[]
getDependantProcessors()
org.apache.commons.mail.Email
getEmail()
String
getName()
protected String
getNextAttachmentName()
String[]
getRequiredAttributes()
String[]
getRequiredSubprocessors()
String[]
getValidAttributes()
String[]
getValidSubprocessors()
-
Methods inherited from class org.webharvest.runtime.processors.WebHarvestPlugin
evaluateAttribute, evaluateAttributeAsBoolean, evaluateAttributeAsDouble, evaluateAttributeAsInteger, execute, executeBody, getAttributes
-
Methods inherited from class org.webharvest.runtime.processors.AbstractProcessor
debug, getBodyTextContent, getBodyTextContent, getBodyTextContent, getElementDef, getParentProcessor, getRunningLevel, run, setElementDef, setParentProcessor, setProperty
-
-
-
-
Method Detail
-
createDataSourceOfVariable
public static DataSource createDataSourceOfVariable(Variable variable, String charset, String mimeType) throws IOException
- Throws:
IOException
-
getName
public String getName()
-
executePlugin
public Variable executePlugin(DynamicScopeContext context) throws InterruptedException
Description copied from class:WebHarvestPlugin
Mathod that actually executes processor. Since one instance of this class may be used for multiple executions, creator of plugin is responsible for initiating local variables at the beginning of this method.- Specified by:
executePlugin
in classWebHarvestPlugin
- Returns:
- Instance of variable as result of execution.
- Throws:
InterruptedException
-
getValidAttributes
public String[] getValidAttributes()
-
getRequiredAttributes
public String[] getRequiredAttributes()
-
getValidSubprocessors
public String[] getValidSubprocessors()
-
getRequiredSubprocessors
public String[] getRequiredSubprocessors()
-
getDependantProcessors
public Class[] getDependantProcessors()
-
getEmail
public org.apache.commons.mail.Email getEmail()
-
getNextAttachmentName
protected String getNextAttachmentName()
-
-