|
|||||||||
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, clone, 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 |
---|
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 ConnectionContext
public ConnectionHandler getConnection()
getConnection
in interface ConnectionContext
public SMTPServer getServer()
getServer
in interface ConnectionContext
public void timeout() throws java.io.IOException
java.io.IOException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void setSocket(java.net.Socket socket) throws java.io.IOException
java.io.IOException
public java.net.Socket getSocket()
getSocket
in interface ConnectionContext
public java.io.InputStream getInput()
public java.io.OutputStream getOutput()
public void sendResponse(java.lang.String response) throws java.io.IOException
sendResponse
in interface ConnectionContext
java.io.IOException
public long getStartTime()
public long getLastActiveTime()
public void refreshLastActiveTime()
public java.net.SocketAddress getRemoteAddress()
getRemoteAddress
in interface MessageContext
public SMTPServer getSMTPServer()
getSMTPServer
in interface MessageContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |