Class InterruptibleSocketFactory.SocketCreateThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.manifoldcf.connectorcommon.common.InterruptibleSocketFactory.SocketCreateThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- InterruptibleSocketFactory
protected static class InterruptibleSocketFactory.SocketCreateThread extends java.lang.Thread
Create a secure socket in a thread, so that we can "give up" after a while if the socket fails to connect.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.net.InetAddress
clientHost
protected int
clientPort
protected java.net.InetAddress
host
protected int
port
protected java.net.Socket
rval
protected javax.net.ssl.SSLSocketFactory
socketFactory
protected java.lang.Throwable
throwable
-
Constructor Summary
Constructors Constructor Description SocketCreateThread(javax.net.ssl.SSLSocketFactory socketFactory, java.net.InetAddress host, int port, java.net.InetAddress clientHost, int clientPort)
Create the thread
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getException()
java.net.Socket
getResult()
void
run()
-
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
-
socketFactory
protected javax.net.ssl.SSLSocketFactory socketFactory
-
host
protected java.net.InetAddress host
-
port
protected int port
-
clientHost
protected java.net.InetAddress clientHost
-
clientPort
protected int clientPort
-
rval
protected java.net.Socket rval
-
throwable
protected java.lang.Throwable throwable
-
-