LocalFileResolver

public class LocalFileResolver
extends Object implements IRemoteFileResolver

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


Implementation of IRemoteFileResolver that allows linking local files

Summary

Fields

public static final String PROTOCOL

Public constructors

LocalFileResolver()

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

Fields

PROTOCOL

public static final String PROTOCOL

Public constructors

LocalFileResolver

public LocalFileResolver ()

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