2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
IRestApiHelper
public
interface
IRestApiHelper
com.android.tradefed.util.IRestApiHelper
|
REST API 호출을 실행하기 위한 도우미 인터페이스입니다.
요약
공개 메서드 |
abstract
HttpResponse
|
execute(String method, String[] uriParts, options, JSONObject data)
API 요청을 실행합니다.
|
공개 메서드
실행
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 객체 |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 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 |"]]