Class EmailConnector.ConnectThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.manifoldcf.crawler.connectors.email.EmailConnector.ConnectThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- EmailConnector
protected static class EmailConnector.ConnectThread extends java.lang.ThreadClass to set up connection.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Throwableexceptionprotected java.lang.Stringpasswordprotected intportprotected java.util.Propertiespropertiesprotected java.lang.Stringprotocolprotected java.lang.Stringserverprotected EmailSessionsessionprotected java.lang.Stringusername
-
Constructor Summary
Constructors Constructor Description ConnectThread(java.lang.String server, int port, java.lang.String username, java.lang.String password, java.lang.String protocol, java.util.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmailSessionfinishUp()voidrun()-
Methods 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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
server
protected final java.lang.String server
-
port
protected final int port
-
username
protected final java.lang.String username
-
password
protected final java.lang.String password
-
protocol
protected final java.lang.String protocol
-
properties
protected final java.util.Properties properties
-
session
protected EmailSession session
-
exception
protected java.lang.Throwable exception
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
finishUp
public EmailSession finishUp() throws javax.mail.MessagingException, java.lang.InterruptedException
- Throws:
javax.mail.MessagingExceptionjava.lang.InterruptedException
-
-