Re: [Restlet Android] Object representation selection (application/x-java-serialized-object vs. application/json)
On Mon, Oct 10, 2011 at 11:05, Thilo-Alexander Ginkel <[hidden email]> wrote:
> I have registered the Jackson extension with Restlet:
> -- 8< --
> Engine.getInstance().getRegisteredConverters().add(new JacksonConverter());
> -- 8< --
Just a brief follow-up question: Is there a way to influence the
Jackson configuration through the Restlet extension? Specifically, I
would like to set the SerializationConfig.Feature.WRAP_ROOT_VALUE
configuration option on the converter.
Sorry for resurrecting this old thread, but I was wondering if you found a better solution than:
My post(someObj) were working fine - being handled by the @Post("json") method in the interface (using Restlet 2.2 GAE edition on the server, Restlet 2.2 Android on the client).
Then for Android reasons I had to change SomeObj to implement Serializable. This seemed to change the media type to application/x-java-serialized-object which caused my post(someObj) to return a 415 error.
Clearing the converters fixed the problem, but I was just curious if you found a better solution.