| Package | Description |
|---|---|
| com.baidubce | |
| com.baidubce.auth | |
| com.baidubce.common | |
| com.baidubce.http | |
| com.baidubce.internal | |
| com.baidubce.util |
| Modifier and Type | Method and Description |
|---|---|
protected InternalRequest |
AbstractBceClient.createRequest(AbstractBceRequest bceRequest,
HttpMethodName httpMethod,
SignOptions signOptions,
String... pathVariables)
创建内部请求对象,自动处理 @Host 注解,并支持自定义签名选项
|
protected InternalRequest |
AbstractBceClient.createRequest(AbstractBceRequest bceRequest,
HttpMethodName httpMethod,
String... pathVariables)
创建内部请求对象,自动处理 @Host 注解
|
| Modifier and Type | Method and Description |
|---|---|
protected <T extends AbstractBceResponse> |
AbstractBceClient.invokeHttpClient(InternalRequest request,
Class<T> responseClass)
Subclasses should invoke this method for sending request to the target service.
|
protected <T extends AbstractBceResponse> |
AbstractBceClient.invokeHttpClient(InternalRequest request,
Class<T> responseClass,
HttpResponseHandler[] customHandlers)
Subclasses should invoke this method for sending request to the target service with custom handlers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Signer.sign(InternalRequest request,
BceCredentials credentials)
Equivalent to sign(request, credentials, SignOptions.DEFAULT).
|
void |
BceV1Signer.sign(InternalRequest request,
BceCredentials credentials) |
void |
Signer.sign(InternalRequest request,
BceCredentials credentials,
SignOptions options)
Sign the given request with the given set of credentials.
|
void |
BceV1Signer.sign(InternalRequest request,
BceCredentials credentials,
SignOptions options)
Sign the given request with the given set of credentials.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
HttpRequestHandler.handle(InternalRequest internalRequest,
BaseBceRequest bceRequest) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.client.protocol.HttpClientContext |
BceHttpClient.createHttpContext(InternalRequest request)
Creates HttpClient Context object based on the internal request.
|
protected org.apache.http.client.methods.HttpRequestBase |
BceHttpClient.createHttpRequest(InternalRequest request)
Creates HttpClient method object based on the specified request and
populates any parameters, headers, etc.
|
<T extends AbstractBceResponse> |
BceHttpClient.execute(InternalRequest request,
Class<T> responseClass,
HttpResponseHandler[] responseHandlers)
Executes the request and returns the result.
|
| Modifier and Type | Method and Description |
|---|---|
static InternalRequest |
BaseRequest.toInternalRequest(BaseRequest request)
transfer from base request to internal request
|
| Modifier and Type | Method and Description |
|---|---|
static void |
RequestBodyUtils.fillPayload(InternalRequest internalRequest,
AbstractBceRequest bceRequest,
BodyType bodyType)
使用指定的 BodyType 填充请求体
|
static void |
RequestBodyUtils.fillPayload(InternalRequest internalRequest,
AbstractBceRequest bceRequest,
BodyType bodyType,
String customContentType)
使用指定的 BodyType 填充请求体,支持自定义 contentType
|
static void |
RequestBodyUtils.fillPayloadAsByteArray(InternalRequest internalRequest,
byte[] data,
BodyType bodyType)
使用字节数组填充请求体(自动计算 contentLength)
|
static void |
RequestBodyUtils.fillPayloadAsByteArray(InternalRequest internalRequest,
byte[] data,
BodyType bodyType,
String customContentType)
使用字节数组填充请求体(支持自定义 contentType)
|
static void |
RequestBodyUtils.fillPayloadAsByteArray(InternalRequest internalRequest,
byte[] data,
String contentType)
使用字节数组填充请求体(自定义 Content-Type字符串)
|
static void |
RequestBodyUtils.fillPayloadAsForm(InternalRequest internalRequest,
AbstractBceRequest bceRequest)
使用表单格式填充请求体(向后兼容的便捷方法)
|
static void |
RequestBodyUtils.fillPayloadAsForm(InternalRequest internalRequest,
AbstractBceRequest bceRequest,
String contentType)
使用表单格式填充请求体(自定义 Content-Type)
|
static void |
RequestBodyUtils.fillPayloadAsJson(InternalRequest internalRequest,
AbstractBceRequest bceRequest)
使用 JSON 格式填充请求体(向后兼容的便捷方法)
|
static void |
RequestBodyUtils.fillPayloadAsJson(InternalRequest internalRequest,
AbstractBceRequest bceRequest,
String contentType)
使用 JSON 格式填充请求体(自定义 Content-Type)
|
static void |
RequestBodyUtils.fillPayloadAsStream(InternalRequest internalRequest,
InputStream inputStream)
使用二进制流格式填充请求体(使用默认 BodyType.BINARY)
|
static void |
RequestBodyUtils.fillPayloadAsStream(InternalRequest internalRequest,
InputStream inputStream,
BodyType bodyType)
使用二进制流格式填充请求体(指定 BodyType)
|
static void |
RequestBodyUtils.fillPayloadAsStream(InternalRequest internalRequest,
InputStream inputStream,
Long contentLength,
BodyType bodyType)
使用二进制流格式填充请求体(显式传递 contentLength,指定 BodyType)
|
static void |
RequestBodyUtils.fillPayloadAsStream(InternalRequest internalRequest,
InputStream inputStream,
Long contentLength,
BodyType bodyType,
String customContentType)
使用二进制流格式填充请求体(完整参数版本,支持自定义 contentType)
|
static void |
RequestBodyUtils.fillPayloadAsStream(InternalRequest internalRequest,
InputStream inputStream,
String contentType)
使用二进制流格式填充请求体(自定义 Content-Type)
|
Copyright © 2026. All rights reserved.