Hi
On 10/12/11 18:13, eswarup wrote:
Hi,
I didn't want to treat it as JSON returned for all requests with
{entity}.json

If that's not possible, I would atleast like to know how I can identify
that  contains .json in:
RequestHandler.handleRequest(Message m, ClassResourceInfo resourceClass)

Since when I use message.get(Message.REQUEST_URI) it returns as
/getProfile/madonna (without .json)

I need to differentiate requests between /getProfile/madonna vs
/getProfile/madonna.json

In the latter case Accept will be set to application/json; you can also get HttpServletRequest injected and check the actual request URI

HTH
Sergey


Thanks,

Swarup

Reply via email to