users@jersey.java.net

Differentiating content

From: emile <shrrrine_at_gmail.com>
Date: Fri, 5 Mar 2010 02:33:48 -0800 (PST)

Hi,

A newbie question - I have a resource that consumes both JSON and XML, how i
differentiate the content passed?

    @POST
    @Consumes({"application/xml", "application/json"})
     public String getObjectAsXML(Document doc)

Thanks in Advance!
-- 
View this message in context: http://n2.nabble.com/Differentiating-content-tp4680061p4680061.html
Sent from the Jersey mailing list archive at Nabble.com.