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, isUrlConnection
public LicasSocketConnection(ConnectionInfo theConnInfo)
theConnInfo
- the full connection info.public boolean isConnected()
isConnected
in class LicasHttpConnection
public boolean isBound()
isBound
in class LicasHttpConnection
public void connect() throws java.lang.Exception
connect
in class LicasHttpConnection
java.lang.Exception
- any error.public void disconnect()
disconnect
in class LicasHttpConnection
public java.lang.Object getConn()
getConn
in class LicasHttpConnection
public void close()
close
in interface java.lang.AutoCloseable