diff options
author | Endi S. Dewata <edewata@redhat.com> | 2014-02-07 13:44:34 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2014-02-10 12:15:47 -0500 |
commit | 064fa79e9e7d7e23b1846d3d332814dcd9ed445e (patch) | |
tree | 9d96c80c9ae9bbb9f91b402f346245c8c20d2592 /base/common/src/com/netscape/certsrv/logging | |
parent | 9b92336bb63f7a4376e5a3915fc16026d3e4256a (diff) | |
download | pki-064fa79e9e7d7e23b1846d3d332814dcd9ed445e.tar.gz pki-064fa79e9e7d7e23b1846d3d332814dcd9ed445e.tar.xz pki-064fa79e9e7d7e23b1846d3d332814dcd9ed445e.zip |
Replaced deprecated ClientResponse class.
The ClientResponse class has been deprecated in RESTEasy 3.0, so most
of the code using the class has been modified to use the Response class
instead. There are a few remaining references to ClientResponse. They
will be removed separately later.
Diffstat (limited to 'base/common/src/com/netscape/certsrv/logging')
-rw-r--r-- | base/common/src/com/netscape/certsrv/logging/AuditClient.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/base/common/src/com/netscape/certsrv/logging/AuditClient.java b/base/common/src/com/netscape/certsrv/logging/AuditClient.java index 5892a20cb..959304d92 100644 --- a/base/common/src/com/netscape/certsrv/logging/AuditClient.java +++ b/base/common/src/com/netscape/certsrv/logging/AuditClient.java @@ -19,7 +19,7 @@ package com.netscape.certsrv.logging; import java.net.URISyntaxException; -import org.jboss.resteasy.client.ClientResponse; +import javax.ws.rs.core.Response; import com.netscape.certsrv.client.Client; import com.netscape.certsrv.client.PKIClient; @@ -45,8 +45,7 @@ public class AuditClient extends Client { } public AuditConfig updateAuditConfig(AuditConfig auditConfig) { - @SuppressWarnings("unchecked") - ClientResponse<AuditConfig> response = (ClientResponse<AuditConfig>)resource.updateAuditConfig(auditConfig); - return client.getEntity(response); + Response response = resource.updateAuditConfig(auditConfig); + return client.getEntity(response, AuditConfig.class); } } |