Package davmail.pop
Class PopConnection
java.lang.Object
java.lang.Thread
davmail.AbstractConnection
davmail.pop.PopConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable
Dav Gateway pop connection implementation
-
Nested Class Summary
Nested classes/interfaces inherited from class davmail.AbstractConnection
AbstractConnection.LineReaderInputStream, AbstractConnection.StateNested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class davmail.AbstractConnection
client, in, os, password, session, state, userNameFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionPopConnection(Socket clientSocket) Initialize the streams and start the thread. -
Method Summary
Modifier and TypeMethodDescriptionprotected longprotected voidprotected voidprotected voidvoidrun()protected voidprotected voidprotected voidMethods inherited from class davmail.AbstractConnection
close, logConnection, readClient, sendClient, sendClient, sendClient, sendClientMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
PopConnection
Initialize the streams and start the thread.- Parameters:
clientSocket- POP client socket
-
-
Method Details
-
getTotalMessagesLength
protected long getTotalMessagesLength() -
printCapabilities
- Throws:
IOException
-
printList
- Throws:
IOException
-
printUidList
- Throws:
IOException
-
run
public void run() -
sendOK
- Throws:
IOException
-
sendERR
- Throws:
IOException
-
sendERR
- Throws:
IOException
-