Hello Tim,

you can call the Resource#getPreferredVariant method.

Best regards,
Thierry Boileau

> Would anyone be able to recommend the correct way to determine what the 
> preferred Variant was for the requested Resource from the 
> StatusService.getRepresentation() method?
>
> I would like to return different representations of error messages based on 
> the Variant requested for the original resource.
>
> I am currently using Restlet 1.1.3. 
>
> Thanks,
> Tim
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1277561
>
>

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

Reply via email to