com.baidubce.services.dugo.core.protocol.http
Class BceIotHttpClient

java.lang.Object
  extended by 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.


Constructor Summary
BceIotHttpClient()
           
 
Method Summary
 void addHeader(String key, String value)
           
 void addParams(String key, String value)
           
<T extends AbstractBceResponse>
T
exec(Class<T> responseClass)
           
<T extends AbstractBceResponse>
T
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BceIotHttpClient

public BceIotHttpClient()
Method Detail

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.