public class SmtpConnection extends AbstractConnection
AbstractConnection.LineReaderInputStream, AbstractConnection.State
Thread.UncaughtExceptionHandler
client, in, os, password, session, state, userName
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
SmtpConnection(Socket clientSocket)
Initialize the streams and start the thread.
|
Modifier and Type | Method and Description |
---|---|
protected void |
authenticate()
Create authenticated session with Exchange server
|
protected void |
decodeCredentials(String encodedCredentials)
Decode SMTP credentials
|
void |
run() |
close, logConnection, readClient, sendClient, sendClient, sendClient, sendClient
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 SmtpConnection(Socket clientSocket)
clientSocket
- SMTP client socketprotected void authenticate() throws IOException
IOException
- on errorprotected void decodeCredentials(String encodedCredentials) throws IOException
encodedCredentials
- smtp encoded credentialsIOException
- if invalid credentialsCopyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.