summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/logging
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2014-01-30 05:23:17 -0500
committerEndi S. Dewata <edewata@redhat.com>2014-03-04 22:49:04 -0500
commit316e66bf974eaaa576336e45670b6aaf90ba476c (patch)
tree9dc124f602ca5c746d58529a6073b6f6794d10e6 /base/common/src/com/netscape/certsrv/logging
parent56b9ead088c59ea76d796002e74d42d7e31eac44 (diff)
downloadpki-316e66bf974eaaa576336e45670b6aaf90ba476c.tar.gz
pki-316e66bf974eaaa576336e45670b6aaf90ba476c.tar.xz
pki-316e66bf974eaaa576336e45670b6aaf90ba476c.zip
Removed @Consumes and @Provides.
The @Consumes and @Provides annotations have been removed from all methods (except from methods that consume forms) to allow client to use the default consumes and provides specified in the proxy. Ticket #554
Diffstat (limited to 'base/common/src/com/netscape/certsrv/logging')
-rw-r--r--base/common/src/com/netscape/certsrv/logging/ActivityResource.java4
-rw-r--r--base/common/src/com/netscape/certsrv/logging/AuditResource.java6
2 files changed, 0 insertions, 10 deletions
diff --git a/base/common/src/com/netscape/certsrv/logging/ActivityResource.java b/base/common/src/com/netscape/certsrv/logging/ActivityResource.java
index 715233e63..bc6d375ca 100644
--- a/base/common/src/com/netscape/certsrv/logging/ActivityResource.java
+++ b/base/common/src/com/netscape/certsrv/logging/ActivityResource.java
@@ -20,9 +20,7 @@ package com.netscape.certsrv.logging;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
-import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
-import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.jboss.resteasy.annotations.ClientResponseType;
@@ -36,7 +34,6 @@ public interface ActivityResource {
@GET
@ClientResponseType(entityType=ActivityCollection.class)
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response findActivities(
@QueryParam("start") Integer start,
@QueryParam("size") Integer size);
@@ -44,6 +41,5 @@ public interface ActivityResource {
@GET
@Path("{activityID}")
@ClientResponseType(entityType=ActivityData.class)
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response getActivity(@PathParam("activityID") String activityID);
}
diff --git a/base/common/src/com/netscape/certsrv/logging/AuditResource.java b/base/common/src/com/netscape/certsrv/logging/AuditResource.java
index 1220b89bc..13be4d827 100644
--- a/base/common/src/com/netscape/certsrv/logging/AuditResource.java
+++ b/base/common/src/com/netscape/certsrv/logging/AuditResource.java
@@ -17,12 +17,9 @@
// --- END COPYRIGHT BLOCK ---
package com.netscape.certsrv.logging;
-import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.jboss.resteasy.annotations.ClientResponseType;
@@ -36,12 +33,9 @@ public interface AuditResource {
@GET
@ClientResponseType(entityType=AuditConfig.class)
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response getAuditConfig();
@PUT
@ClientResponseType(entityType=AuditConfig.class)
- @Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response updateAuditConfig(AuditConfig configData);
}