diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-06-07 03:16:37 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-06-27 17:25:10 -0500 |
commit | 1eba8264adbe42115caac4db655d450a99791ceb (patch) | |
tree | b7c564a54e5235affadf55c233afc52f6e17fa5a /base/kra/functional | |
parent | 4ccfcebe532b97607cfab406a1fa900070573f24 (diff) | |
download | pki-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.java | 2 |
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; } |