org.lastbamboo.common.download
Interface UriResolver


public interface UriResolver

Interface for classes that can resolve URIs to download sources for that URI.


Method Summary
 URI getSha1()
          Accesses the SHA-1 for the resource this resolved just looked up.
 Collection<URI> resolve(URI uri)
          Accesses the available sources for a single URI.
 

Method Detail

resolve

Collection<URI> resolve(URI uri)
                        throws IOException
Accesses the available sources for a single URI. The returned collection contains resolvable URIs we can download different parts of the file from.

Parameters:
uri - The URI to resolve.
Returns:
The collection of URI sources we can download the URI from.
Throws:
IOException - If we could not access the resolution service.

getSha1

URI getSha1()
Accesses the SHA-1 for the resource this resolved just looked up.

Returns:
The SHA-1 for the resource.


Copyright © 2013 LittleShoot. All Rights Reserved.