com.baidubce.services.dugo.core.protocol.http
Class BceIotHttpClient
java.lang.Object
com.baidubce.services.dugo.core.protocol.http.BceIotHttpClient
public class BceIotHttpClient
- extends Object
the http client for dugo and build the internalRequest
Created by liuzhenxing01 on 2018/10/12.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BceIotHttpClient
public BceIotHttpClient()
getUri
public URI getUri()
withAuth
public BceIotHttpClient withAuth(String ak,
String sk)
getHost
public String getHost()
withMethod
public BceIotHttpClient withMethod(HttpMethodName methodName,
URI uri)
getInternalRequest
public InternalRequest getInternalRequest()
addParams
public void addParams(String key,
String value)
addHeader
public void addHeader(String key,
String value)
withPayload
public BceIotHttpClient withPayload(byte[] payload)
exec
public <T extends AbstractBceResponse> T exec(Class<T> responseClass,
HttpResponseHandler[] hadlers)
exec
public <T extends AbstractBceResponse> T exec(Class<T> responseClass)
Copyright © 2018. All rights reserved.