AdminProperties¶
-
public class
AdminProperties
¶ A class to wrap the admin.main properties file for easier handling.
Author: Joel Matsumoto
Fields¶
Constructors¶
AdminProperties¶
-
public
AdminProperties
(PropertyTree tree)¶
Methods¶
getCutoff¶
-
public int
getCutoff
()¶ Return the ‘cutoff’ property if set, else if null or invalid, throw an exception.
Throws: Returns: int
getDay¶
-
public int
getDay
()¶ Return the ‘day’ property or throw an exception if an invalid integer
Throws: Returns: int
getEmail¶
getLastRun¶
getNextRun¶
getPort¶
-
public int
getPort
()¶ Return the ‘port’ property if set or throw an exception if null/invalid. If the value is not set, will return the deafult, 25;
Throws: Returns: int
getReason¶
getSmtp¶
getStatus¶
getUsername¶
isOn¶
-
public boolean
isOn
()¶ Return a boolean depending on if the value is set to ON/OFF or return false if none set/null/invalid.
Returns: boolean