summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/att
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/att')
-rw-r--r--src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java b/src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java
index 0cffa7d..b526fed 100644
--- a/src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java
+++ b/src/main/java/com/att/nsa/mr/client/impl/MRBaseClient.java
@@ -122,7 +122,7 @@ public class MRBaseClient extends HttpClient implements MRClient {
response = DmaapClientUtil.getResponsewtBasicAuth(target, encoding);
- responseData = (String)response.getEntity();
+ responseData = (String)response.readEntity(String.class);
return responseData;
} else {
throw new HttpException(
@@ -154,7 +154,7 @@ public class MRBaseClient extends HttpClient implements MRClient {
Response response=null;
target = DmaapClientUtil.getTarget(path, username, password);
response = DmaapClientUtil.postResponsewtCambriaAuth(target, authKey, authDate, data, contentType);
- responseData = (String)response.getEntity();
+ responseData = (String)response.readEntity(String.class);
return responseData;
} else {
@@ -208,7 +208,7 @@ public class MRBaseClient extends HttpClient implements MRClient {
fLog.info("TransactionId : " + transactionid);
}
- responseData = (String)response.getEntity();
+ responseData = (String)response.readEntity(String.class);
return responseData;
} else {
throw new HttpException(
@@ -262,7 +262,7 @@ public class MRBaseClient extends HttpClient implements MRClient {
fLog.info("TransactionId : " + transactionid);
}
- responseData = (String)response.getEntity();
+ responseData = (String)response.readEntity(String.class);
return responseData;
} else {
throw new HttpException(
@@ -285,7 +285,7 @@ public class MRBaseClient extends HttpClient implements MRClient {
fLog.info("TransactionId : " + transactionid);
}
- responseData = (String)response.getEntity();
+ responseData = (String)response.readEntity(String.class);
return responseData;
}
@@ -325,7 +325,7 @@ public class MRBaseClient extends HttpClient implements MRClient {
jsonObject.put("status", response.getStatus());
return jsonObject;
}
- String responseData = (String)response.getEntity();
+ String responseData = (String)response.readEntity(String.class);
JSONTokener jsonTokener = new JSONTokener(responseData);
JSONObject jsonObject = null;