public class HttpConnectionManager
extends java.lang.Object
Constructor and Description |
---|
HttpConnectionManager()
Create a new connection manager.
|
Modifier and Type | Method and Description |
---|---|
static void |
closeConnection(java.net.HttpURLConnection con)
Close a connection
|
void |
dispose()
Dispose the connection manager and close all open connections.
|
java.net.HttpURLConnection |
openConnection(java.lang.String address)
Open a receiving connection.
|
void |
remove(java.net.HttpURLConnection con)
Remove a connection.
|
public HttpConnectionManager()
public void dispose()
public java.net.HttpURLConnection openConnection(java.lang.String address) throws java.io.IOException
address
- The address to connect to.java.io.IOException
- on connection failurespublic void remove(java.net.HttpURLConnection con)
con
- The previously opened connection.public static void closeConnection(java.net.HttpURLConnection con)