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, isUrlConnectionpublic LicasWebConnection(ConnectionInfo theConnInfo) throws java.lang.Exception
theConnInfo - the full connection info.java.lang.Exception - any error.public boolean isConnected()
isConnected in class LicasHttpConnectionpublic boolean isBound()
isBound in class LicasHttpConnectionpublic int getResponseCode()
getResponseCode on the connection.public void connect()
throws java.lang.Exception
connect in class LicasHttpConnectionjava.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 LicasHttpConnectionpublic java.lang.Object getConn()
getConn in class LicasHttpConnectionpublic void close()
close in interface java.lang.AutoCloseable