public abstract class LicasHttpConnection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ConnectionInfo |
connInfo
The connection info
|
Constructor and Description |
---|
LicasHttpConnection(ConnectionInfo theConnInfo)
Create a new instance of LicasHttpConnection.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
connect()
Make the connection.
|
abstract void |
disconnect()
Disconnect the connection.
|
abstract java.lang.Object |
getConn()
Get the created connection.
|
abstract boolean |
isBound()
Return true if bound to an address.
|
abstract boolean |
isConnected()
Return true if connected to the source.
|
boolean |
isSocketConnection()
Return true if the connection is an http socket connection.
|
boolean |
isUrlConnection()
Return true if the connection is an url connection.
|
protected ConnectionInfo connInfo
public LicasHttpConnection(ConnectionInfo theConnInfo)
theConnInfo
- the full connection info.public abstract boolean isConnected()
public abstract boolean isBound()
public abstract void connect() throws java.lang.Exception
java.lang.Exception
- any error.public abstract void disconnect()
public abstract java.lang.Object getConn()
public boolean isSocketConnection()
public boolean isUrlConnection()