IRestApiHelper

public interface IRestApiHelper

com.android.tradefed.util.IRestApiHelper


REST API 呼び出しを実行するためのヘルパー インターフェース。

概要

パブリック メソッド

abstract HttpResponse execute(String method, String[] uriParts, Map<String, Object> options, JSONObject data)

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

パブリック メソッド

実行

public abstract HttpResponse execute (String method, 
                String[] uriParts, 
                Map<String, Object> options, 
                JSONObject data)

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

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

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

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

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

戻り値
HttpResponse HttpResponse オブジェクト

例外
java.io.IOException
IOException