cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graeme Dougal <gra...@tiderian.com>
Subject Passing Enum in JSON Body
Date Wed, 08 Jan 2014 16:28:45 GMT
Hi

I have a rest service with the following path

/element/{id}/elementStatus

I'm calling PUT on this URI in order to change the elementStatus of the
element with the supplied {id}

I have a java Enum ElementStatus that I want to pass in the request body as
JSON, {"elementStatus":"ACTIVE"}

But cant get this to work... using the JacksonJSONProvider and annotating a
factory method with @JSONProducer the String it gets in that method is
simply {    (one single open brace)

Any ideas ?

Cheers
Graeme

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message