转发: restlet support ssl

2014-06-05 Thread june
发件人: 陈军 [mailto:chen...@eetop.com] 发送时间: 2014年6月5日 23:40 收件人: discuss@restlet.tigris.org 抄送: cont...@restlet.com; jlou...@restlet.com 主题: restlet support ssl Hello, I have a question, I configure the restlet, through the HTTP access can be a successful visit, but access through the HTTPS return

Restlet API evolution - Conversion between Throwable HTTP status+body

2014-06-05 Thread Jerome Louvel
Hi all, In V2.3 of Restlet API, we would like to introduce automatic conversion between Java throwable and HTTP status+body, working both ways (client and server sides). The goal is to be able to write annotated Java interfaces including methods such as: @Get public MyBean represent() throws

Re: Restlet API evolution - Conversion between Throwable HTTP status+body

2014-06-05 Thread Fabian Mandelbaum
I like the idea. Some comments: 1) There's some statuses that do not allow for a response body, IIRC HTTP 204. How would you handle that? Compile-time error? Other checks? 2) If for any reason, my server resource class redefines one of those exceptions, how would this be handled? I'd expect the

Re: Restlet API evolution - Conversion between Throwable HTTP status+body

2014-06-05 Thread Jerome Louvel
Thanks Fabian for the feed-back. 1) We would not set the response entity in this case, only the HTTP status would be set on the response based on the annotation value. 2) I'm not 100% clear about the scenario. Let me try some replies: a) if you do not throw any exception and manually set an

Re: restlet support ssl

2014-06-05 Thread Jerome Louvel
Hi, Restlet 1.1.1 is a pretty old version :) If you have any chance, I strongly suggest that you upgrade to version 2.2 Otherwise, HTTPS should work in your case if you configure properly your Servlet container as it will be responsible for the HTTPS server connector in your case. Thanks,