summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/profile
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/profile
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/profile')
-rw-r--r--base/common/src/com/netscape/certsrv/profile/ProfileResource.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/base/common/src/com/netscape/certsrv/profile/ProfileResource.java b/base/common/src/com/netscape/certsrv/profile/ProfileResource.java
index 28b173bd4..87449b27e 100644
--- a/base/common/src/com/netscape/certsrv/profile/ProfileResource.java
+++ b/base/common/src/com/netscape/certsrv/profile/ProfileResource.java
@@ -1,15 +1,12 @@
package com.netscape.certsrv.profile;
-import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
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;
@@ -24,7 +21,6 @@ public interface ProfileResource {
@GET
@ClientResponseType(entityType=ProfileDataInfos.class)
@ACLMapping("profiles.list")
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response listProfiles(
@QueryParam("start") Integer start,
@QueryParam("size") Integer size);
@@ -33,36 +29,28 @@ public interface ProfileResource {
@Path("{id}")
@ClientResponseType(entityType=ProfileData.class)
@ACLMapping("profiles.read")
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response retrieveProfile(@PathParam("id") String id);
@POST
@ClientResponseType(entityType=ProfileData.class)
@ACLMapping("profiles.create")
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
- @Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response createProfile(ProfileData data);
@POST
@Path("{id}")
@ClientResponseType(entityType=Void.class)
@ACLMapping("profiles.approve")
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response modifyProfileState(@PathParam("id") String id, @QueryParam("action") String action);
@PUT
@Path("{id}")
@ClientResponseType(entityType=ProfileData.class)
@ACLMapping("profiles.modify")
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
- @Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response modifyProfile(@PathParam("id") String id, ProfileData data);
@DELETE
@Path("{id}")
@ClientResponseType(entityType=Void.class)
@ACLMapping("profiles.delete")
- @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response deleteProfile(@PathParam("id") String id);
-
} \ No newline at end of file