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. |
File
|
resolveRemoteFiles(File consideredFile,
Resolve the remote file. |
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 |
resolveRemoteFiles
public File resolveRemoteFiles (File consideredFile,queryArgs)
Resolve the remote file.
Parameters | |
---|---|
consideredFile |
File : ERROR(/File) evaluated as remote. |
queryArgs |
: The arguments passed as a query to the URL. |
Returns | |
---|---|
File |
The resolved local file. |
Throws | |
---|---|
BuildRetrievalError |
Protected methods
getDownloader
protected IHttpHelper getDownloader ()
Returns | |
---|---|
IHttpHelper |