|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.curn.plugins.EmailOutputPlugIn
public class EmailOutputPlugIn
The EmailOutputPlugIn handles emailing the output from a curn run, if one or more email addresses are specified in the configuration file. It intercepts the following main ([curn]) section configuration parameters:
| Parameter | Meaning | Default |
|---|---|---|
| MailOutputTo | One or more comma- or blank-separated email addresses to receive an email containing the output. | None |
| MailFrom | The email address to use as the sender of the message. | The user running curn, and the current machine. |
| MailSubject | The subject to use for email messages. | "RSS Feeds" |
| Constructor Summary | |
|---|---|
EmailOutputPlugIn()
Default constructor (required). |
|
| Method Summary | |
|---|---|
java.lang.String |
getPlugInName()
Get a displayable name for the plug-in. |
java.lang.String |
getPlugInSortKey()
Get the sort key for this plug-in. |
void |
initPlugIn()
Initialize the plug-in. |
void |
runMainConfigItemPlugIn(java.lang.String sectionName,
java.lang.String paramName,
CurnConfig config)
Called immediately after curn has read and processed a configuration item in the main [curn] configuration section. |
void |
runPostOutputPlugIn(java.util.Collection<OutputHandler> outputHandlers)
Called after curn has flushed all output handlers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmailOutputPlugIn()
| Method Detail |
|---|
public java.lang.String getPlugInName()
getPlugInName in interface PlugInpublic java.lang.String getPlugInSortKey()
getPlugInSortKey in interface PlugIn
public void initPlugIn()
throws CurnException
initPlugIn in interface PlugInCurnException - on error
public void runMainConfigItemPlugIn(java.lang.String sectionName,
java.lang.String paramName,
CurnConfig config)
throws CurnException
runMainConfigItemPlugIn in interface MainConfigItemPlugInsectionName - the name of the configuration section where
the item was foundparamName - the name of the parameterconfig - the CurnConfig object
CurnException - on errorCurnConfig
public void runPostOutputPlugIn(java.util.Collection<OutputHandler> outputHandlers)
throws CurnException
runPostOutputPlugIn in interface PostOutputPlugInoutputHandlers - a Collection of the
OutputHandler objects (useful for
obtaining the output files, for instance).
CurnException - on errorOutputHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||