summaryrefslogtreecommitdiffstats
path: root/base/kra/functional
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-06-07 03:16:37 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-06-27 17:25:10 -0500
commit1eba8264adbe42115caac4db655d450a99791ceb (patch)
treeb7c564a54e5235affadf55c233afc52f6e17fa5a /base/kra/functional
parent4ccfcebe532b97607cfab406a1fa900070573f24 (diff)
downloadpki-1eba8264adbe42115caac4db655d450a99791ceb.tar.gz
pki-1eba8264adbe42115caac4db655d450a99791ceb.tar.xz
pki-1eba8264adbe42115caac4db655d450a99791ceb.zip
Added REST error handler.
A new getEntity() method has been added to obtain the entity from a Response object and also map HTTP errors into exceptions. Ticket #161
Diffstat (limited to 'base/kra/functional')
-rw-r--r--base/kra/functional/src/com/netscape/cms/servlet/test/DRMRestClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/kra/functional/src/com/netscape/cms/servlet/test/DRMRestClient.java b/base/kra/functional/src/com/netscape/cms/servlet/test/DRMRestClient.java
index 772612bf4..82d246e04 100644
--- a/base/kra/functional/src/com/netscape/cms/servlet/test/DRMRestClient.java
+++ b/base/kra/functional/src/com/netscape/cms/servlet/test/DRMRestClient.java
@@ -48,7 +48,7 @@ public class DRMRestClient extends CMSRestClient {
@SuppressWarnings("unchecked")
ClientResponse<CertificateData> response = (ClientResponse<CertificateData>) systemCertClient
.getTransportCert();
- CertificateData certData = response.getEntity();
+ CertificateData certData = getEntity(response);
String transportCert = certData.getB64();
return transportCert;
}