public class SocketThread
extends java.lang.Object
implements java.lang.Runnable, java.lang.AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected LicasHttpConnection |
conn
The connection to the web page
|
protected boolean |
isDone
True when finished
|
| Constructor and Description |
|---|
SocketThread(ConnectionInfo theConnInfo)
Creates a new instance of SocketThread.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close open sockets during shutdown.
|
LicasHttpConnection |
getConn()
Return the actual internet connector.
|
boolean |
getIsDone()
Return true if the connection attempt has been tried.
|
void |
run()
Enable the socket and create a connection of the appropriate type.
|
protected boolean isDone
protected LicasHttpConnection conn
public SocketThread(ConnectionInfo theConnInfo)
theConnInfo - the connection info.public void run()
run in interface java.lang.Runnablepublic boolean getIsDone()
public LicasHttpConnection getConn()
public void close()
close in interface java.lang.AutoCloseable