threads
Class SmtpThread

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

public class SmtpThread
extends java.lang.Thread

Thread for the smtp connections

Author:
Gabriele Bianchi

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 SmtpClient smtpClient
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SmtpThread(java.lang.String local, ComposeScreen _compScreen)
          Constructor
 
Method Summary
 void close()
          Close connection
 void connect()
          Connect to the server
 void run()
          Run the thread
 void sendMessage(Message msg)
          Send mail
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

smtpClient

public SmtpClient smtpClient
Constructor Detail

SmtpThread

public SmtpThread(java.lang.String local,
                  ComposeScreen _compScreen)
Constructor

Parameters:
local -
_compScreen -
Method Detail

close

public void close()
Close connection


connect

public void connect()
Connect to the server


run

public void run()
Run the thread

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

sendMessage

public void sendMessage(Message msg)
Send mail

Parameters:
msg -