stella.log
Class Calima

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by util.Mailer
                  extended by stella.log.Calima
All Implemented Interfaces:
Cloneable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class Calima
extends Mailer

We scan a webpage for calima warnings.


Nested Class Summary
private static class Calima.Div
           
 
Nested classes/interfaces inherited from class util.Mailer
Mailer.Google
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static String DEFCALIMAPREDICT
          The weather report for current calima situation .
private static String DEFCALIMATODAY
          The weather report for current calima situation .
private static boolean DEFDEBUG
          The default debuggin mode.
private static String DEFFROM
          The default from address.
private static String DEFGENERALTO
          The default from address.
private static String FOUND
           
static String KEY_BCC
          Address list of the recipients, bcc-type.
static String KEY_CALIMAPREDICT
          The key to the predicted calima situation .
static String KEY_CALIMATODAY
          The key to the current calima situation .
static String KEY_CC
          Address list of the recipients, cc-type.
static String KEY_DEBUG
          If true, mail-delivery is blocked for debugging mode.
static String KEY_FROM
          Address of the sender, with or without domain.
static String KEY_GENERALTO
          Address list of the recipients of the general report.
 
Fields inherited from class util.Mailer
KEY_PASSWORD, KEY_SMTPHOST, KEY_SMTPPORT, KEY_USERNAME, KEY_USESSL, STELLAMAINTENANCE, STELLAROBOTIC
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
Calima(Map<String,String> prop)
           
 
Method Summary
private  void checkCalima(String day, List<String> text)
           
 void init()
          We prepare the session for sending mail.
static void main(String[] arg)
           
 
Methods inherited from class util.Mailer
close, createStellaRoboticMailer, getAddresses, getStellaMaintenance, getStellaRobotic, prepareMail, sendMail, sendMail, threadMail
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 

Field Detail

KEY_CALIMATODAY

public static final String KEY_CALIMATODAY
The key to the current calima situation .

See Also:
Constant Field Values

KEY_CALIMAPREDICT

public static final String KEY_CALIMAPREDICT
The key to the predicted calima situation .

See Also:
Constant Field Values

KEY_FROM

public static final String KEY_FROM
Address of the sender, with or without domain. Follow RFC822 syntax.

See Also:
Constant Field Values

KEY_GENERALTO

public static final String KEY_GENERALTO
Address list of the recipients of the general report.

See Also:
Constant Field Values

KEY_CC

public static final String KEY_CC
Address list of the recipients, cc-type. With or without domain.

See Also:
Constant Field Values

KEY_BCC

public static final String KEY_BCC
Address list of the recipients, bcc-type. With or without domain.

See Also:
Constant Field Values

KEY_DEBUG

public static final String KEY_DEBUG
If true, mail-delivery is blocked for debugging mode.

See Also:
Constant Field Values

DEFFROM

private static final String DEFFROM
The default from address. Used without domain.

See Also:
Constant Field Values

DEFGENERALTO

private static final String DEFGENERALTO
The default from address. Used without domain.

See Also:
Constant Field Values

DEFCALIMATODAY

private static final String DEFCALIMATODAY
The weather report for current calima situation .

See Also:
Constant Field Values

DEFCALIMAPREDICT

private static final String DEFCALIMAPREDICT
The weather report for current calima situation .

See Also:
Constant Field Values

DEFDEBUG

private static final boolean DEFDEBUG
The default debuggin mode.

See Also:
Constant Field Values

FOUND

private static String FOUND
Constructor Detail

Calima

public Calima(Map<String,String> prop)
Method Detail

init

public void init()
Description copied from class: Mailer
We prepare the session for sending mail.

Specified by:
init in interface Initializable
Overrides:
init in class Mailer

checkCalima

private void checkCalima(String day,
                         List<String> text)
                  throws javax.mail.internet.AddressException
Throws:
javax.mail.internet.AddressException

main

public static void main(String[] arg)
                 throws Exception
Throws:
Exception