IRestApiHelper

public interface IRestApiHelper

com.android.tradefed.util.IRestApiHelper


REST API 呼び出しを行うヘルパー インターフェース。

概要

パブリック メソッド

abstract HttpResponse execute(String method, String[] uriParts, options, JSONObject data)

API リクエストを実行します。

パブリック メソッド

execute

public abstract HttpResponse execute (String method, 
                String[] uriParts, 
                 options, 
                JSONObject data)

API リクエストを実行します。

パラメータ
method String: リクエストの HTTP メソッド

uriParts String: リクエスト URI の作成に使用される URL エンコードされた URI 部分。

options : クエリ文字列の作成に使用されるエンコードされていないパラメータ名と値

data JSONObject: リクエストとともに送信されるデータ

戻り値
HttpResponse HttpResponse オブジェクト

例外
IOException