public class ApiExplorerRequest extends Object
| Constructor and Description |
|---|
ApiExplorerRequest(com.baidubce.http.HttpMethodName httpMethodName,
String path)
Constructs a new ApiExplorerRequest
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHeaderParameter(String key,
String value) |
void |
addQueryParameter(String key,
String value) |
com.baidubce.internal.InternalRequest |
getInternalRequest() |
void |
setCredentials(String accessKey,
String secretKey)
Create the BCE credentials and set into internalRequest
|
void |
setInternalRequest(com.baidubce.internal.InternalRequest internalRequest) |
void |
setJsonBody(String jsonBody)
The method to fill the internalRequest's content field with bceRequest.
|
public ApiExplorerRequest(com.baidubce.http.HttpMethodName httpMethodName,
String path)
httpMethodName - The HTTP method to use when sending the request.path - A complete request url without path variablespublic com.baidubce.internal.InternalRequest getInternalRequest()
public void setInternalRequest(com.baidubce.internal.InternalRequest internalRequest)
public void setCredentials(String accessKey, String secretKey)
accessKey - The BCE secret access key for this credentials object.secretKey - The BCE secret access key for this credentials object.public void setJsonBody(String jsonBody)
jsonBody - The jsonBody content of requestCopyright © 2022. All rights reserved.