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