@Deprecated public class HttpResourceExchange extends Object implements ResourceExchange
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpResourceExchange.Properties
Deprecated.
Exchange properties
|
| Constructor and Description |
|---|
HttpResourceExchange()
Deprecated.
Default constructor: setups a default http client object and uses system
proxy information if available
|
HttpResourceExchange(HashMap<String,Object> connectionProperties)
Deprecated.
Constructor using connection properties (at the moment, it supports only
unauthenticated proxies).
|
| Modifier and Type | Method and Description |
|---|---|
Resource<InputStream> |
get(URI uri)
Deprecated.
Gets the resource pointed by an URL into file
|
ResourceInfo |
info(URI uri)
Deprecated.
Gets the resource information pointed by an URL into file
|
void |
release()
Deprecated.
Releases any open resources used by the exchange
|
public HttpResourceExchange()
public HttpResourceExchange(HashMap<String,Object> connectionProperties)
connectionProperties - A hash map of connection properties to use to
setup the connection (ex.: proxy)public ResourceInfo info(URI uri) throws ResourceExchangeException
ResourceExchangeinfo in interface ResourceExchangeuri - the resource location/addressResourceExchangeException - if unable to obtain the resource. Check the root cause for details.public Resource<InputStream> get(URI uri) throws ResourceExchangeException
ResourceExchangeget in interface ResourceExchangeuri - the resource location/addressResourceExchangeException - if unable to obtain the resource. Check the root cause for details.public void release()
ResourceExchangerelease in interface ResourceExchangeThis documentation was released into the public domain.