public class LicasWebConnection extends LicasHttpConnection implements java.lang.AutoCloseable
connInfo
Constructor and Description |
---|
LicasWebConnection(ConnectionInfo theConnInfo)
Create a new instance of LicasWebConnection.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Do some tidy-up
|
void |
connect()
Make the connection.
|
void |
connect(java.util.HashMap<java.lang.String,java.lang.String> rProperties)
Make a GET or POST connection and send the message.
|
void |
disconnect()
Disconnect the connection.
|
java.lang.Object |
getConn()
Get the created connection.
|
int |
getResponseCode()
Get the response code to the request.
|
boolean |
isBound()
Return true if bound to an address.
|
boolean |
isConnected()
Return true if connected to the source.
|
isSocketConnection, isUrlConnection
public LicasWebConnection(ConnectionInfo theConnInfo) throws java.lang.Exception
theConnInfo
- the full connection info.java.lang.Exception
- any error.public boolean isConnected()
isConnected
in class LicasHttpConnection
public boolean isBound()
isBound
in class LicasHttpConnection
public int getResponseCode()
getResponseCode
on the connection.public void connect() throws java.lang.Exception
connect
in class LicasHttpConnection
java.lang.Exception
- any error.public void connect(java.util.HashMap<java.lang.String,java.lang.String> rProperties) throws java.lang.Exception
rProperties
- a list of additional request properties to add, as in key-value
.
Can be empty or null.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