public class HttpResourceAccessor extends Object implements ExternalResourceAccessor
| Constructor and Description |
|---|
HttpResourceAccessor(HttpClientHelper http) |
| Modifier and Type | Method and Description |
|---|---|
ExternalResourceMetaData |
getMetaData(String location)
Obtains only the metadata about the resource.
|
ExternalResource |
getResource(String location)
Obtain the resource at the given location.
|
HashValue |
getResourceSha1(String location)
Obtain the SHA-1 checksum for the resource at the given location.
|
public HttpResourceAccessor(HttpClientHelper http)
public ExternalResource getResource(String location) throws IOException
ExternalResourceAccessorIOException to indicate a fatal condition.getResource in interface ExternalResourceAccessorlocation - The address of the resource to obtainIOException - If the resource may exist, but not could be obtained for some reasonpublic ExternalResourceMetaData getMetaData(String location)
ExternalResourceAccessorIOException to indicate a fatal condition.getMetaData in interface ExternalResourceAccessorlocation - The location of the resource to obtain the metadata forpublic HashValue getResourceSha1(String location)
ExternalResourceAccessorgetResourceSha1 in interface ExternalResourceAccessorlocation - The address of the resource to obtain the sha-1 ofCopyright © 2013. All rights reserved