Hello Bhallamudi,

For this magic to work, your client needs to include the HTTP header
"Accept" in its requests to this resource. For example:

GET /path/to/your/resource
Accept: text/xml

will invoke the method annotated with @Get("xml"), while

GET /path/to/your/resource
Accept: application/json

will invoke the method annotated with @Get("json") on the same resource.

On Fri, Mar 12, 2010 at 5:56 AM, Bhallamudi Venkata Siva Kamesh
<[email protected]> wrote:
> Hi
>  I have built one application in server side like this
>
> @GET("json")
>  void methodname(){---}
> @GET("xml")
>  void methodname(){---}
>
> From client side how to invoke @GET("json") and @GET("xml") so the 
> corresponding representation client receives.
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2458555
>



-- 
Fabián Mandelbaum
IS Engineer

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2458787

Reply via email to