27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main
yerine android-latest-release
kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
IRestApiHelper
public
interface
IRestApiHelper
com.android.tradefed.util.IRestApiHelper
|
Bilinen dolaylı alt sınıflar
RestApiHelper |
REST API çağrıları yapmak için kullanılan bir yardımcı sınıf.
|
|
REST API çağrıları gerçekleştirmek için yardımcı arayüz.
Özet
Herkese açık yöntemler |
abstract
HttpResponse
|
execute(String method, String[] uriParts, options, JSONObject data)
Bir API isteğini yürütür.
|
Herkese açık yöntemler
execute
public abstract HttpResponse execute (String method,
String[] uriParts,
options,
JSONObject data)
Bir API isteğini yürütür.
Parametreler |
method |
String : İsteğin HTTP yöntemi |
uriParts |
String : İstek URI'sini oluşturmak için kullanılacak URL kodlu URI parçaları. |
options |
: sorgu dizesini oluşturmak için kullanılan kodlanmamış parametre adları ve değerleri |
data |
JSONObject : istekle birlikte gönderilecek veriler |
İlerlemeler |
HttpResponse |
HttpResponse nesnesi |
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# IRestApiHelper\n==============\n\n\n`\npublic\n\n\ninterface\nIRestApiHelper\n`\n\n\n`\n\n\n`\n\n|------------------------------------------|\n| com.android.tradefed.util.IRestApiHelper |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [RestApiHelper](../../../../../../reference/tradefed/com/android/tradefed/util/RestApiHelper.html) |----------------------------------------------------------------------------------------------------|-----------------------------------------------| | [RestApiHelper](../../../../../../reference/tradefed/com/android/tradefed/util/RestApiHelper.html) | A helper class for performing REST API calls. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA helper interface for performing REST API calls.\n\nSummary\n-------\n\n| ### Public methods ||\n|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract HttpResponse` | ` `[execute](../../../../../../reference/tradefed/com/android/tradefed/util/IRestApiHelper.html#execute(java.lang.String,%20java.lang.String[],%20\u003cany\u003e,%20org.json.JSONObject))`(String method, String[] uriParts, ` options, JSONObject data) Executes an API request. |\n\nPublic methods\n--------------\n\n### execute\n\n```\npublic abstract HttpResponse execute (String method, \n String[] uriParts, \n options, \n JSONObject data)\n```\n\nExecutes an API request.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|----------------------------------------------------------------------------------|\n| `method` | `String`: a HTTP method of the request \u003cbr /\u003e |\n| `uriParts` | `String`: URL encoded URI parts to be used to construct the request URI. \u003cbr /\u003e |\n| `options` | : unencoded parameter names and values used to construct the query string \u003cbr /\u003e |\n| `data` | `JSONObject`: data to be sent with the request \u003cbr /\u003e |\n\n| Returns ||\n|----------------|------------------------------|\n| `HttpResponse` | a HttpResponse object \u003cbr /\u003e |\n\n| Throws ||\n|---|-------------|\n| | IOException |"]]