|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--javatools.smtp.SmtpListener
A class which listens for incoming SMTP connections. You will need to implement the newProcessor to return an instance of a class which inherits SmtpProcessor which can process a single email message.
Field Summary | |
(package private) java.io.IOException |
exception
|
(package private) java.net.ServerSocket |
serverSocket
|
static java.lang.String |
thisDomain
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
SmtpListener(int port,
java.lang.String domain)
|
Method Summary | |
abstract SmtpProcessor |
newProcessor(java.net.Socket socket,
java.lang.ThreadGroup threadGroup)
|
void |
reset()
|
void |
run()
|
void |
shutdown()
Shutdown this server thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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 |
Field Detail |
public static java.lang.String thisDomain
java.io.IOException exception
java.net.ServerSocket serverSocket
Constructor Detail |
public SmtpListener(int port, java.lang.String domain) throws java.io.IOException
Method Detail |
public void reset() throws ResetException
reset
in interface Resetable
ResetException
public void shutdown()
Server
shutdown
in interface Server
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public abstract SmtpProcessor newProcessor(java.net.Socket socket, java.lang.ThreadGroup threadGroup) throws SmtpException
SmtpException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |