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

Thanks,

Swarup

On 12/10/11 12:20 PM, Sergey Beryozkin-5 [via CXF] wrote:
> Hi
> On 09/12/11 22:01, eswarup wrote:
>
> > Hi,
> > We've case where .json is getting considered as JSON output which 
> either I
> > would like to restrict it or be able to identify it using one of 
>  Message
> > properties
> >
> > for e.g.
> >   @Path("/getProfile/{guid}/")
> >
> > /getProfile/madonna.json treats it as JSON output and sets 
> guid=madonna.
> >
> > I would prefer to use _type=json for json output formats.
> > Is there a way I can restrict this or ignore .json as special syntax 
> and
> > treat guid=madonna.json
> >
>
> I'm sorry but I've got a bit confused.
> Are you saying that you do not need JSON returned when querying
>
> /getProfile/madonna.json
>
> but do need JSON in all other cases ?
>
> Do you expect /getProfile/bar.json return JSON, where bar is some other
> profile id ?
>
> Cheers, Sergey
>
>
> > Thanks,
> >
> > Swarup
> >
> >
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the 
> discussion below:
> http://cxf.547215.n5.nabble.com/json-restriction-or-identify-tp5063130p5064687.html
>  
>
> To unsubscribe from .json restriction or identify, click here 
> <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5063130&code=c3dhcnVwLmVkYUB0ZWFtYW9sLmNvbXw1MDYzMTMwfDY0MTQwNTc2NA==>.
> NAML 
> <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>  
>



--
View this message in context: 
http://cxf.547215.n5.nabble.com/json-restriction-or-identify-tp5063130p5064756.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to