public class HttpConnectionManager extends Object
Constructor and Description |
---|
HttpConnectionManager()
Create a new connection manager.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the connection manager and close all open connections.
|
HttpURLConnection |
openConnection(String address)
Open a receiving connection.
|
void |
remove(HttpURLConnection con)
Remove a connection.
|
public HttpConnectionManager()
public void dispose()
public HttpURLConnection openConnection(String address) throws IOException
address
- The address to connect to.IOException
- on connection failurespublic void remove(HttpURLConnection con)
con
- The previously opened connection.Copyright © 2012. All Rights Reserved.