Package org.qdl_lang.extensions.mail
Class QDLMail
- java.lang.Object
-
- org.qdl_lang.extensions.mail.QDLMail
-
- All Implemented Interfaces:
Serializable,QDLMetaModule
public class QDLMail extends Object implements QDLMetaModule
Created by Jeff Gaynor
on 11/2/23 at 11:17 AM- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classQDLMail.SendclassQDLMail.SetCfg
-
Field Summary
Fields Modifier and Type Field Description static StringCFG_METHOD_NAMEstatic StringMAIL_BCCstatic StringMAIL_CCstatic StringMAIL_CONTENT_TYPEstatic StringMAIL_DEBUGstatic StringMAIL_FROMstatic StringMAIL_PASSWORDstatic StringMAIL_PORTstatic StringMAIL_REPLY_TOstatic StringMAIL_SERVERstatic StringMAIL_START_TLSstatic StringMAIL_TOstatic StringMAIL_USE_SSLstatic StringMAIL_USERNAMEstatic StringSEND_NAME
-
Constructor Summary
Constructors Constructor Description QDLMail()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static QDLStemaddAll(List<String> x)static QDLStemconvertMEToStem(edu.uiuc.ncsa.security.util.mail.MailEnvironment me)Convert aMailEnvironmentto a stem.voiddeserializeFromJSON(net.sf.json.JSONObject json)QDLStemgetCfg()booleanhasCfg()net.sf.json.JSONObjectserializeToJSON()Send back a serialization of internal state for this object.voidsetCfg(QDLStem cfg)protected static voidstemPut(QDLStem stem, Object k, Object v)Centralize adding values to stem
-
-
-
Field Detail
-
SEND_NAME
public static String SEND_NAME
-
CFG_METHOD_NAME
public static String CFG_METHOD_NAME
-
MAIL_BCC
public static String MAIL_BCC
-
MAIL_CC
public static String MAIL_CC
-
MAIL_CONTENT_TYPE
public static String MAIL_CONTENT_TYPE
-
MAIL_FROM
public static String MAIL_FROM
-
MAIL_PASSWORD
public static String MAIL_PASSWORD
-
MAIL_PORT
public static String MAIL_PORT
-
MAIL_SERVER
public static String MAIL_SERVER
-
MAIL_START_TLS
public static String MAIL_START_TLS
-
MAIL_TO
public static String MAIL_TO
-
MAIL_DEBUG
public static String MAIL_DEBUG
-
MAIL_USE_SSL
public static String MAIL_USE_SSL
-
MAIL_USERNAME
public static String MAIL_USERNAME
-
MAIL_REPLY_TO
public static String MAIL_REPLY_TO
-
-
Method Detail
-
getCfg
public QDLStem getCfg()
-
setCfg
public void setCfg(QDLStem cfg)
-
hasCfg
public boolean hasCfg()
-
convertMEToStem
public static QDLStem convertMEToStem(edu.uiuc.ncsa.security.util.mail.MailEnvironment me)
Convert aMailEnvironmentto a stem. This is not for the current configuration, but is a general utility that should go in this class.- Parameters:
me-- Returns:
-
stemPut
protected static void stemPut(QDLStem stem, Object k, Object v)
Centralize adding values to stem- Parameters:
stem-k-v-
-
serializeToJSON
public net.sf.json.JSONObject serializeToJSON()
Description copied from interface:QDLMetaModuleSend back a serialization of internal state for this object. This allows for the state you choose to be serialized and then reloaded.NOTE
There is no canonical form for this. Set it how you will and deserialize it accordingly.- Specified by:
serializeToJSONin interfaceQDLMetaModule- Returns:
-
deserializeFromJSON
public void deserializeFromJSON(net.sf.json.JSONObject json)
- Specified by:
deserializeFromJSONin interfaceQDLMetaModule
-
-