RE: Wrong @Get method is called after negotiation

2010-08-30 Thread Björn Harrtell
I can confirm that too.

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


RE: Wrong @Get method is called after negotiation

2010-08-27 Thread Björn Harrtell
I did further digging into this issue in a new thread (since I'm now registered 
here) here: 
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2651378 
but have still not been able to resolve it.

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


RE: Re: Wrong @Get method is called after negotiation

2010-08-27 Thread Thierry Boileau
Hello,

this is not a correct behaviour. I check that.

Best regards,
Thierry Boileau

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


Re: Wrong @Get method is called after negotiation

2010-08-26 Thread Nicolas Rinaudo
I've had the same issue. The only workaround I've found is a bit cumbersome but 
works:

@Get(json|html)
public Representation getRepresentation(Variant variant) {
if(variant.getMediaType().equals(MediaType.APPLICATION_JSON)

}

I'm not sure whether that's a regression or the intended behaviour...

Nicolas

On 24 Aug 2010, at 08:41, webp...@tigris.org wrote:

 In my ServerResource impl (on official restlet 2.0.0 GAE edition) I've got 
 two annotated methods:
 
 @Get(json)
 public Representation getJson() { ...
 
 and
 
 @Get(html)
 public Representation getHtml()  { ...
 
 When testing the resource with:
 
 curl -v -H 'Accept: application/json'
 
 the result is that getHtml is called returning text/plain
 
 So it seems the annotaion/negotiation isn't working... what could be causing 
 this?
 
 --
 http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2650559

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


Wrong @Get method is called after negotiation

2010-08-24 Thread webpost
In my ServerResource impl (on official restlet 2.0.0 GAE edition) I've got two 
annotated methods:

@Get(json)
public Representation getJson() { ...

and

@Get(html)
public Representation getHtml()  { ...

When testing the resource with:

curl -v -H 'Accept: application/json'

the result is that getHtml is called returning text/plain

So it seems the annotaion/negotiation isn't working... what could be causing 
this?

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