Babylon Java Chat

Class BabylonEmail

java.lang.Object
  extended by java.lang.Thread
      extended by BabylonEmail
All Implemented Interfaces:
java.lang.Runnable

public class BabylonEmail
extends java.lang.Thread

A thread that provides e-mail sending functionality, including address parsing and host lookups. When instantiated, this class stores the supplied information required to conduct a mail exchange. When run, it will contact the appropriate mail exchanger and deliver the e-mail.

Author:
Andy McLaughlin

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.lang.String fromName
           
protected  java.lang.String mxHost
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BabylonEmail(BabylonServerConnection conn, java.lang.String from, java.lang.String to, java.lang.String subj, java.lang.String txt)
           
 
Method Summary
protected static java.lang.String mxLookup(java.lang.String emailAddress)
          Returns the name of a mail exchanger for the supplied email address.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fromName

protected java.lang.String fromName

mxHost

protected java.lang.String mxHost
Constructor Detail

BabylonEmail

public BabylonEmail(BabylonServerConnection conn,
                    java.lang.String from,
                    java.lang.String to,
                    java.lang.String subj,
                    java.lang.String txt)
Method Detail

mxLookup

protected static java.lang.String mxLookup(java.lang.String emailAddress)
                                    throws javax.naming.NamingException
Returns the name of a mail exchanger for the supplied email address.

Throws:
javax.naming.NamingException

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

Babylon Java Chat