|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.subethamail.smtp.server.ConnectionHandler
public class ConnectionHandler
The thread that handles a connection. This class passes most of it's responsibilities off to the CommandHandler.
| 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 | |
|---|---|
ConnectionHandler(SMTPServer server,
java.net.Socket socket)
|
|
| Method Summary | |
|---|---|
ConnectionHandler |
getConnection()
|
java.io.InputStream |
getInput()
|
long |
getLastActiveTime()
|
java.io.OutputStream |
getOutput()
|
java.net.SocketAddress |
getRemoteAddress()
|
SMTPServer |
getServer()
|
Session |
getSession()
|
SMTPServer |
getSMTPServer()
|
java.net.Socket |
getSocket()
|
long |
getStartTime()
|
void |
refreshLastActiveTime()
|
void |
run()
|
void |
sendResponse(java.lang.String response)
|
void |
setSocket(java.net.Socket socket)
|
void |
timeout()
|
| 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 |
|---|
public ConnectionHandler(SMTPServer server,
java.net.Socket socket)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public Session getSession()
getSession in interface ConnectionContextpublic ConnectionHandler getConnection()
getConnection in interface ConnectionContextpublic SMTPServer getServer()
getServer in interface ConnectionContext
public void timeout()
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
public void setSocket(java.net.Socket socket)
throws java.io.IOException
java.io.IOExceptionpublic java.net.Socket getSocket()
getSocket in interface ConnectionContextpublic java.io.InputStream getInput()
public java.io.OutputStream getOutput()
public void sendResponse(java.lang.String response)
throws java.io.IOException
sendResponse in interface ConnectionContextjava.io.IOExceptionpublic long getStartTime()
public long getLastActiveTime()
public void refreshLastActiveTime()
public java.net.SocketAddress getRemoteAddress()
getRemoteAddress in interface MessageContextpublic SMTPServer getSMTPServer()
getSMTPServer in interface MessageContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||