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/httpsIOExceptionKeyStoreExceptionNoSuchAlgorithmExceptionKeyManagementExceptionpublic static String getResponseString(org.apache.http.HttpResponse httpResponse) throws IOException
IOExceptionCopyright © 2017 WSO2. All rights reserved.