public class BceIotHttpClient extends Object
| Constructor and Description |
|---|
BceIotHttpClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String key,
String value) |
void |
addParams(String key,
String value) |
<T extends AbstractBceResponse> |
exec(Class<T> responseClass) |
<T extends AbstractBceResponse> |
exec(Class<T> responseClass,
HttpResponseHandler[] hadlers) |
String |
getHost() |
InternalRequest |
getInternalRequest() |
URI |
getUri() |
BceIotHttpClient |
withAuth(String ak,
String sk) |
BceIotHttpClient |
withMethod(HttpMethodName methodName,
URI uri) |
BceIotHttpClient |
withPayload(byte[] payload) |
public URI getUri()
public BceIotHttpClient withAuth(String ak, String sk)
public String getHost()
public BceIotHttpClient withMethod(HttpMethodName methodName, URI uri)
public InternalRequest getInternalRequest()
public BceIotHttpClient withPayload(byte[] payload)
public <T extends AbstractBceResponse> T exec(Class<T> responseClass, HttpResponseHandler[] hadlers)
public <T extends AbstractBceResponse> T exec(Class<T> responseClass)
Copyright © 2021. All rights reserved.