From 56b9ead088c59ea76d796002e74d42d7e31eac44 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 10 Feb 2014 13:56:15 -0500 Subject: Added CLI parameter to select message format. A new CLI parameter has been added to allow the user select the REST message format. This is done by setting the default consumes and produces when creating the client proxy. For this to work the hard-coded @Consumes and @Produces annotations need to be removed from the interface definition. A new interceptor has been added to validate the message format before executing the operation. Ticket #554 --- base/kra/src/org/dogtagpki/server/kra/rest/KRAApplication.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'base/kra/src') diff --git a/base/kra/src/org/dogtagpki/server/kra/rest/KRAApplication.java b/base/kra/src/org/dogtagpki/server/kra/rest/KRAApplication.java index ea8a6c038..c8dc553e2 100644 --- a/base/kra/src/org/dogtagpki/server/kra/rest/KRAApplication.java +++ b/base/kra/src/org/dogtagpki/server/kra/rest/KRAApplication.java @@ -10,6 +10,7 @@ import org.dogtagpki.server.rest.AccountService; import org.dogtagpki.server.rest.AuditService; import org.dogtagpki.server.rest.AuthMethodInterceptor; import org.dogtagpki.server.rest.GroupService; +import org.dogtagpki.server.rest.MessageFormatInterceptor; import org.dogtagpki.server.rest.SecurityDomainService; import org.dogtagpki.server.rest.SelfTestService; import org.dogtagpki.server.rest.SystemCertService; @@ -69,6 +70,7 @@ public class KRAApplication extends Application { // interceptors singletons.add(new AuthMethodInterceptor()); singletons.add(new ACLInterceptor()); + singletons.add(new MessageFormatInterceptor()); } public Set> getClasses() { -- cgit