ePOST API

rice.email.proxy.smtp
Class SmtpServerImpl

java.lang.Object
  extended by java.lang.Thread
      extended by rice.email.proxy.smtp.SmtpServerImpl
All Implemented Interfaces:
java.lang.Runnable, SmtpServer
Direct Known Subclasses:
SSLSmtpServerImpl

public class SmtpServerImpl
extends java.lang.Thread
implements SmtpServer


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 int connections
           
 int fail
           
protected  Logger logger
           
 int success
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SmtpServerImpl(java.net.InetAddress localHost, int port, EmailService email, boolean gateway, PostEntityAddress address, boolean acceptNonLocal, boolean authenticate, UserManager userManager, java.lang.String server, Environment env)
           
 
Method Summary
 int getConnections()
           
 Environment getEnvironment()
           
 int getFail()
           
 java.net.InetAddress getLocalHost()
           
 int getPort()
           
 int getSuccess()
           
 void incrementFail()
           
 void incrementSuccess()
           
 void initialize()
           
 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
 
Methods inherited from interface rice.email.proxy.smtp.SmtpServer
start
 

Field Detail

connections

public int connections

success

public int success

fail

public int fail

logger

protected Logger logger
Constructor Detail

SmtpServerImpl

public SmtpServerImpl(java.net.InetAddress localHost,
                      int port,
                      EmailService email,
                      boolean gateway,
                      PostEntityAddress address,
                      boolean acceptNonLocal,
                      boolean authenticate,
                      UserManager userManager,
                      java.lang.String server,
                      Environment env)
               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getConnections

public int getConnections()
Specified by:
getConnections in interface SmtpServer

getSuccess

public int getSuccess()
Specified by:
getSuccess in interface SmtpServer

getFail

public int getFail()
Specified by:
getFail in interface SmtpServer

incrementSuccess

public void incrementSuccess()
Specified by:
incrementSuccess in interface SmtpServer

incrementFail

public void incrementFail()
Specified by:
incrementFail in interface SmtpServer

getLocalHost

public java.net.InetAddress getLocalHost()
Specified by:
getLocalHost in interface SmtpServer

getPort

public int getPort()
Specified by:
getPort in interface SmtpServer

initialize

public void initialize()
                throws java.io.IOException
Throws:
java.io.IOException

run

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

getEnvironment

public Environment getEnvironment()
Specified by:
getEnvironment in interface SmtpServer

ePOST API

Copyright © 2001-2005 - Rice Pastry.