Dear all,

In the AS docs, JAX-RS Content Negotiation sample (
https://docs.wso2.org/display/AS521/JAX-RS+Sample+on+Content+Negotiation),
an HTTP GET request is being sent to the service with an ACCEPT header set
to 'application/xml' or 'application/json', and the response is given in
the format specified.

I wonder how this 'accept header' is processed? I couldn't find any
reference to the accept header in the CustomerService.java file. if it is
not handled from the service, how is this processed? (there is some
reference to CXF, and I wonder how CXF come into the picture here?)

Thank you in advance.

Rgds

--
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 <https://twitter.com/N1R44>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to