Re: Returning HTTP error 500 from the constructor of a Resource

2009-05-04 Thread Stephane Nicoll
Have a look to the StatusService, it provides a way to translate an exception into a status code and it also allows you to generate a custom representation. The status service is available on your application instance. HTH, S. On Thu, Apr 30, 2009 at 6:10 PM, Fabian Mandelbaum

Re: output UTF-8 encoding

2009-05-04 Thread Thierry Boileau
Hello Soonho, by default StringRepresentation are built using the ISO_8859_1 character set. Did you try the following constructor: StringRepresentation(CharSequence, MediaType, Language, CharacterSet)? best regards, Thierry Boileau Dear all; How are you? I am a beginer for restlet. I

Re: UnsupportedOperationException in DomRepresentation constructor

2009-05-04 Thread Thierry Boileau
Hello Mikis, could you provide some sample code? I send you mine which works well with the org.restlet.jar of the 1.2M2 release (no other dependency in the classpath). best regards, Thierry Boileau Hi I'm try to create a DomRepresentation with the new DomRepresentation(MediaType)

Re: Returning HTTP error 500 from the constructor of a Resource

2009-05-04 Thread Fabian Mandelbaum
Thanks! I guess this still holds true for Restlet 1.2.x, right? On Mon, May 4, 2009 at 8:41 AM, Thierry Boileau thierry.boil...@noelios.com wrote: Hello Fabian, your approach looks fine to me. best regards, Thierry Boileau Hello there, I'm starting to learn and use Restlets (1.1.x) and I

RE: Authorization issue

2009-05-04 Thread webpost
My bad, I did not read carefully the docs. My problem is that I do not pass any Enroller instance to the application. Gabi -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2055713

Case-insensitive version of Series.getValuesArray(...)

2009-05-04 Thread Arjohn Kampman
Hi all, I've just started working with the restlet framework, so please excuse me if I'm overlooking something. In Restlet 1.1.4 the Series class offers various utility methods for getting parameter values, often with a variant allowing you to control the case-sensitivity. This variant is

Re: Returning HTTP error 500 from the constructor of a Resource

2009-05-04 Thread Fabian Mandelbaum
OK. Thank you both for your answers! On Mon, May 4, 2009 at 11:54 AM, Thierry Boileau thierry.boil...@noelios.com wrote: Hello Fabian, the 1.2 release introduces the ServerResource class (and deprecates the Resource class). All your initialization code should be located in the doInit method