abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edoardo Comar <ECO...@uk.ibm.com>
Subject Re: Abdera Servlet handling either JSON and XML
Date Thu, 24 Nov 2011 18:43:02 GMT
adding support for *returning* JSON to HTTP requests was easy after all :-)

provider.addFilter(new JSONFilter());

however I am now looking at accepting JSON entries in HTTP POST/PUT

I was naively expecting to find a Parser with a JSON-2-Abdera object model
implementation like the one mentioned in

 *   Parser parser = abdera.getParserFactory().getParser("json");

I can't find any ...
is this a case of implementing one own's ?


> From: Edoardo Comar/UK/IBM@IBMGB
> To: user@abdera.apache.org,
> Date: 24/11/2011 17:12
> Subject: Abdera Servlet handling either JSON and XML
> I have been looking at a sample on how to put together a simple Abdera
> webservice where the servlet
> accepts both json and xml
> and returns its responses formatted according to the client accept
> It'd be very nice to see what needs to be changed in the example Employee
> servlet to get this behavior.
> thanks,
> Edoardo Comar
> IBM SWG UK - Hursley JTC

View raw message