HttpRemoteFileResolver

public class HttpRemoteFileResolver
extends Object implements IRemoteFileResolver

java.lang.Object
   ↳ com.android.tradefed.config.remote.HttpRemoteFileResolver


Implementation of IRemoteFileResolver that allows downloading remote file via http

Summary

Fields

public static final String PROTOCOL_HTTP

Public constructors

HttpRemoteFileResolver()

Public methods

String getSupportedProtocol()

Returns the associated protocol supported for download.

IRemoteFileResolver.ResolvedFile resolveRemoteFile(IRemoteFileResolver.RemoteFileResolverArgs args)

Resolve the remote file in a future-proof interface

Protected methods

IHttpHelper getDownloader()

Fields

PROTOCOL_HTTP

public static final String PROTOCOL_HTTP

Public constructors

HttpRemoteFileResolver

public HttpRemoteFileResolver ()

Public methods

getSupportedProtocol

public String getSupportedProtocol ()

Returns the associated protocol supported for download.

Returns
String

resolveRemoteFile

public IRemoteFileResolver.ResolvedFile resolveRemoteFile (IRemoteFileResolver.RemoteFileResolverArgs args)

Resolve the remote file in a future-proof interface

Parameters
args IRemoteFileResolver.RemoteFileResolverArgs: RemoteFileResolverArgs describing the remote to download and how.

Returns
IRemoteFileResolver.ResolvedFile The resolved local file representation.

Throws
BuildRetrievalError

Protected methods

getDownloader

protected IHttpHelper getDownloader ()

Returns
IHttpHelper