Package edu.uiuc.ncsa.security.util.mail
Class MailUtilProvider
- java.lang.Object
- 
- edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvider<MailUtil>
- 
- edu.uiuc.ncsa.security.util.mail.MailUtilProvider
 
 
- 
- All Implemented Interfaces:
- ConfigurationTags,- CfgEventListener,- MailConfigurationTags,- EventListener,- javax.inject.Provider<MailUtil>
 - Direct Known Subclasses:
- ServletMailUtilProvider
 
 public class MailUtilProvider extends HierarchicalConfigProvider<MailUtil> implements MailConfigurationTags Provider for theMailUtilfrom an XML configuration file.Created by Jeff Gaynor 
 on 1/19/12 at 4:56 PM
- 
- 
Field Summary- 
Fields inherited from interface edu.uiuc.ncsa.security.core.configuration.ConfigurationTagsDEBUG
 - 
Fields inherited from interface edu.uiuc.ncsa.security.util.mail.MailConfigurationTagsMAIL, MAIL_COMPONENT, MAIL_CONFIG_ADMIN, MAIL_CONFIG_ALERTS, MAIL_CONFIG_DEFAULT_NAME, MAIL_CONFIG_HELP, MAIL_CONFIG_ROOT, MAIL_ENABLED, MAIL_FAIL_ON_MISSING_CONFIG, MAIL_MESSAGE_TEMPLATE, MAIL_NAME, MAIL_PARENT, MAIL_PASSWORD, MAIL_PORT, MAIL_RECIPIENTS, MAIL_SERVER, MAIL_START_TLS, MAIL_SUBJECT_TEMPLATE, MAIL_USE_SSL, MAIL_USERNAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description MailUtilProvider()MailUtilProvider(CFNode config)MailUtilProvider(org.apache.commons.configuration.tree.ConfigurationNode config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckEvent(CfgEvent cfgEvent)Checks that the event applies to this component.ObjectcomponentFound(CfgEvent configurationEvent)MailUtilget()protected StringgetAttribute(org.apache.commons.configuration.tree.ConfigurationNode node, String name)protected MailEnvironmentgetME()protected Map<String,Object>getRawConfig(CFNode node)protected Map<String,Object>getRawConfig(org.apache.commons.configuration.tree.ConfigurationNode node)protected booleanhasAttribute(org.apache.commons.configuration.tree.ConfigurationNode node, String name)protected MailEnvironmentoldME(CFNode node)protected MailEnvironmentoldME(org.apache.commons.configuration.tree.ConfigurationNode node)protected Map<String,Map>parseIt()protected MapresolveParents(Map<String,Map> allMaps, String name)- 
Methods inherited from class edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvideraddListener, fireComponentFound, getAttribute, getAttribute, getBooleanAttribute, getCFNode, getConfig, getConfigurationAt, getIntAttribute, getIntAttribute, getListeners, hasA, hasCFNode, isA, removeListener, setCFNode, setConfig
 
- 
 
- 
- 
- 
Constructor Detail- 
MailUtilProviderpublic MailUtilProvider() 
 - 
MailUtilProviderpublic MailUtilProvider(org.apache.commons.configuration.tree.ConfigurationNode config) 
 - 
MailUtilProviderpublic MailUtilProvider(CFNode config) 
 
- 
 - 
Method Detail- 
checkEventprotected boolean checkEvent(CfgEvent cfgEvent) Description copied from class:HierarchicalConfigProviderChecks that the event applies to this component. The type is the component and the target is Normally you set the component key as a static field in the class (e.g. "mysql") and pass it along in the theCfgEventListener.componentFound(CfgEvent)method. If checkEvent fails, do no more processing with the event.- Specified by:
- checkEventin class- HierarchicalConfigProvider<MailUtil>
- Returns:
 
 - 
componentFoundpublic Object componentFound(CfgEvent configurationEvent) - Specified by:
- componentFoundin interface- CfgEventListener
 
 - 
getMEprotected MailEnvironment getME() 
 - 
oldMEprotected MailEnvironment oldME(org.apache.commons.configuration.tree.ConfigurationNode node) 
 - 
oldMEprotected MailEnvironment oldME(CFNode node) 
 - 
hasAttributeprotected boolean hasAttribute(org.apache.commons.configuration.tree.ConfigurationNode node, String name)
 - 
getAttributeprotected String getAttribute(org.apache.commons.configuration.tree.ConfigurationNode node, String name) 
 - 
getRawConfigprotected Map<String,Object> getRawConfig(org.apache.commons.configuration.tree.ConfigurationNode node) 
 
- 
 
-