HttpRemoteFileResolver
public class HttpRemoteFileResolver
extends Object
implements IRemoteFileResolver
java.lang.Object | |
↳ | com.android.tradefed.config.remote.HttpRemoteFileResolver |
允許通過 http 下載遠程文件的IRemoteFileResolver
的實現
概括
字段 | |
---|---|
public static final String | PROTOCOL_HTTP
|
公共構造函數 | |
---|---|
HttpRemoteFileResolver () |
公共方法 | |
---|---|
String | getSupportedProtocol () 返回支持下載的關聯協議。 |
IRemoteFileResolver.ResolvedFile | resolveRemoteFile ( IRemoteFileResolver.RemoteFileResolverArgs args) 在面向未來的界面中解析遠程文件 |
受保護的方法 | |
---|---|
IHttpHelper | getDownloader () |
字段
協議_HTTP
public static final String PROTOCOL_HTTP
公共構造函數
HttpRemoteFileResolver
public HttpRemoteFileResolver ()
公共方法
獲取支持協議
public String getSupportedProtocol ()
返回支持下載的關聯協議。
退貨 | |
---|---|
String |
解析遠程文件
public IRemoteFileResolver.ResolvedFile resolveRemoteFile (IRemoteFileResolver.RemoteFileResolverArgs args)
在面向未來的界面中解析遠程文件
參數 | |
---|---|
args | IRemoteFileResolver.RemoteFileResolverArgs : RemoteFileResolverArgs 描述遠程下載以及如何下載。 |
退貨 | |
---|---|
IRemoteFileResolver.ResolvedFile | 已解析的本地文件表示。 |
投擲 | |
---|---|
BuildRetrievalError |