Package overit.geocall.mail
Class JavaMail
java.lang.Object
overit.geocall.mail.JavaMail
Class that manages the java mail system
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanprotected static intprotected static boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringReturns the versionstatic voidinit()Init JavaMailstatic booleanisDebug()Returnstrueif debug is enabled,falseotherwisestatic final booleanReturnstrueif is the version 1.3,falseotherwisestatic final booleanReturnstrueif is the version 1.4,falseotherwisestatic PropertiesSest a new basic session propertiesstatic voidsetDebug(boolean debug) Sets the debug capability
-
Field Details
-
_init
protected static boolean _init -
_exceptions
protected static int _exceptions -
_debug
protected static boolean _debug
-
-
Constructor Details
-
JavaMail
public JavaMail()
-
-
Method Details
-
isDebug
public static boolean isDebug()Returnstrueif debug is enabled,falseotherwise- Returns:
trueif debug is enabled,falseotherwise
-
setDebug
public static void setDebug(boolean debug) Sets the debug capability- Parameters:
debug- boolean that inidicates if the debug capability should be enabled
-
getVersion
Returns the version- Returns:
- The version
-
isVersion13
public static final boolean isVersion13()Returnstrueif is the version 1.3,falseotherwise- Returns:
trueif is the version 1.3,falseotherwise
-
isVersion14
public static final boolean isVersion14()Returnstrueif is the version 1.4,falseotherwise- Returns:
trueif is the version 1.4,falseotherwise
-
newBasicSessionProperties
Sest a new basic session properties- Returns:
- The
Properties
-
init
public static void init()Init JavaMail
-