|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.ericdaugherty.mail.server.services.pop3.Pop3Processor
public class Pop3Processor
Handles an incoming Pop3 connection. See rfc 1939, 1957, 2449 for details.
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 | |
---|---|
Pop3Processor()
|
Method Summary | |
---|---|
boolean |
isUpdatingServerSocket()
|
java.lang.String |
read()
Reads a line from the input stream and returns it. |
void |
run()
Entrypoint for the Thread, this method handles the interaction with the client socket. |
void |
setSocket(java.net.ServerSocket serverSocket)
Sets the socket used to communicate with the client. |
void |
setUpdatingServerSocket(boolean value)
|
void |
shutdown()
Notifies this thread to stop processing and exit. |
void |
write(java.lang.String message,
int errorIncrement)
Writes the specified output message to the client. |
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 Pop3Processor()
Method Detail |
---|
public void setSocket(java.net.ServerSocket serverSocket)
setSocket
in interface ConnectionProcessor
public boolean isUpdatingServerSocket()
public void setUpdatingServerSocket(boolean value)
setUpdatingServerSocket
in interface ConnectionProcessor
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void shutdown()
shutdown
in interface ConnectionProcessor
public java.lang.String read() throws java.net.SocketException, java.net.SocketTimeoutException, java.io.IOException
read
in interface ConnectionProcessor
java.net.SocketException
java.net.SocketTimeoutException
java.io.IOException
public void write(java.lang.String message, int errorIncrement) throws TooManyErrorsException, java.io.IOException
write
in interface ConnectionProcessor
TooManyErrorsException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |