public class LicasSocketConnection extends LicasHttpConnection implements java.lang.AutoCloseable
connInfo| Constructor and Description |
|---|
LicasSocketConnection(ConnectionInfo theConnInfo)
Create a new instance of LicasSocketConnection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Do some tidy-up
|
void |
connect()
Make the connection.
|
void |
disconnect()
Disconnect the connection.
|
java.lang.Object |
getConn()
Get the created connection.
|
boolean |
isBound()
Return true if bound to an address.
|
boolean |
isConnected()
Return true if connected to the source.
|
isSocketConnection, isUrlConnectionpublic LicasSocketConnection(ConnectionInfo theConnInfo)
theConnInfo - the full connection info.public boolean isConnected()
isConnected in class LicasHttpConnectionpublic boolean isBound()
isBound in class LicasHttpConnectionpublic void connect()
throws java.lang.Exception
connect in class LicasHttpConnectionjava.lang.Exception - any error.public void disconnect()
disconnect in class LicasHttpConnectionpublic java.lang.Object getConn()
getConn in class LicasHttpConnectionpublic void close()
close in interface java.lang.AutoCloseable