public class SessionThread
extends Thread
Constructor and Description |
---|
SessionThread(PopServer server,
mireka.pop.ServerThread serverThread,
java.net.Socket socket) |
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
getOutputStream() |
java.net.Socket |
getSocket()
Returns the current socket.
|
void |
quit()
Triggers the shutdown of the thread and the closing of the connection.
|
void |
run() |
void |
sendResponse(String response)
Sends the response to the client
|
void |
setSocket(java.net.Socket socket)
Initializes our reader, writer, and the i/o filter chains based on the
specified socket.
|
void |
shutdown() |
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
public SessionThread(PopServer server, mireka.pop.ServerThread serverThread, java.net.Socket socket) throws java.io.IOException
java.io.IOException
public void run()
run
in interface Runnable
run
in class Thread
public void sendResponse(String response) throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public void shutdown()
public void quit()
public java.net.Socket getSocket()
public void setSocket(java.net.Socket socket) throws java.io.IOException
java.io.IOException