smtp_relayserver
Class DeliverThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--smtp_relayserver.DeliverThread
All Implemented Interfaces:
java.lang.Runnable

public class DeliverThread
extends java.lang.Thread

This class delivers a received mail passed with the arguments in the Constructor.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DeliverThread(java.lang.String senderAddr, java.util.Vector rcptAddr, java.lang.String mailContent, SMTPRelayServer smtpSrv)
          Constructs and executes a delivery thread for a mail.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Constructor Detail

DeliverThread

public DeliverThread(java.lang.String senderAddr,
                     java.util.Vector rcptAddr,
                     java.lang.String mailContent,
                     SMTPRelayServer smtpSrv)
Constructs and executes a delivery thread for a mail. The thread connects to a SMTP server (passed by arguments) and does the hole SMTP buisness of a client.
Parameters:
senderAddr - The mail address of the mail originater
rcptAddr - The mail address of the final mail receiver
mailContent - The content of the mail
smtpSrv - The SMTPRelayServer who uses this thread
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread