public interface IJEMHMailHeaderPreProcTask extends IJEMHModuleProvider
| Modifier and Type | Method and Description | 
|---|---|
String | 
filterHeader(String header,
            String value,
            IJEMHRuntimeConfig config,
            List<ConfigField> taskConfig)
API exposes the config via ConfigFields rather than entities 
 | 
String | 
filterPostProcessedMail(String content)  | 
List<ConfigField> | 
getDefaultConfig()
Allow JEMH to create example TaskConfig as need for this task, list is pre-sorted based on weight 
 | 
Set<String> | 
getHeadersHandled()
Collection of headers that are to be processed 
 | 
void | 
init(IJEMHRuntimeConfig config,
    IJEMHInboundReport report,
    List<ConfigField> fields)
Generic init method to allow setup if needed 
 | 
boolean | 
isFilterPostProccessedMail()  | 
boolean | 
isSelfTestCapable()  | 
boolean | 
runSelfTest(List<ConfigField> updatedConfig)
run a local self test, if implemented 
 | 
getDescription, getKey, getName, getStatus, getVendor, getVendorUrl, isUsablestatic final String UTF8
void init(IJEMHRuntimeConfig config, IJEMHInboundReport report, List<ConfigField> fields) throws InitFailureException
config - the JEMH runtime configurationreport - to feedback from preproc tasksfields - the pre-proc task configuration fieldsInitFailureException - if it breaksSet<String> getHeadersHandled()
String filterHeader(String header, String value, IJEMHRuntimeConfig config, List<ConfigField> taskConfig) throws PreProcTaskFailureException
header - the header to filter, eg Tovalue - the value of the header coming inconfig - the JEMH runtime configurationtaskConfig - the list of pre-proc task configuration fieldsPreProcTaskFailureException - if it breaksList<ConfigField> getDefaultConfig()
boolean runSelfTest(List<ConfigField> updatedConfig) throws PreProcTaskFailureException
updatedConfig - updated pre-proc task configPreProcTaskFailureException - if it didn'tboolean isSelfTestCapable()
boolean isFilterPostProccessedMail()
Copyright © 2008–2020 The Plugin People. All rights reserved.