com.calfater.mailcarbon.impl
Class ClearMailbox

java.lang.Object
  extended by java.lang.Thread
      extended by com.calfater.mailcarbon.impl.ClearMailbox
All Implemented Interfaces:
java.lang.Runnable

public class ClearMailbox
extends java.lang.Thread

A thread which clean a mailbox.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClearMailbox(Logger logger)
          The constructor.
 
Method Summary
 void run()
           
 void setHost(java.lang.String host)
          Set the host.
 void setPassword(java.lang.String password)
          Set the password.
 void setPort(int port)
          Set the port.
 void setProtocol(java.lang.String protocol)
          Set the protocol.
 void setUsername(java.lang.String username)
          Set the username.
 
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
 

Constructor Detail

ClearMailbox

public ClearMailbox(Logger logger)
The constructor.

Parameters:
logger - Where should be written the output.
Method Detail

run

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

setProtocol

public final void setProtocol(java.lang.String protocol)
Set the protocol.

Parameters:
protocol - See MailConstant.

setHost

public final void setHost(java.lang.String host)
Set the host.

Parameters:
host - The host name.

setPort

public final void setPort(int port)
Set the port.

Parameters:
port - The port number.

setUsername

public final void setUsername(java.lang.String username)
Set the username.

Parameters:
username - The user login.

setPassword

public final void setPassword(java.lang.String password)
Set the password.

Parameters:
password - The user password.