public class MQTTUtil extends Object
Constructor and Description |
---|
MQTTUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.http.client.HttpClient |
getHttpClient(String protocol)
Return a http client instance
|
static String |
getResponseString(org.apache.http.HttpResponse httpResponse) |
public static org.apache.http.client.HttpClient getHttpClient(String protocol) throws IOException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException
protocol-
- service endpoint protocol http/httpsIOException
KeyStoreException
NoSuchAlgorithmException
KeyManagementException
public static String getResponseString(org.apache.http.HttpResponse httpResponse) throws IOException
IOException
Copyright © 2017 WSO2. All rights reserved.