Re: Restlet-GWT HTTP authentication example

2008-10-07 Thread Thierry Boileau
Hi all, I'm working on this (http://wiki.restlet.org/docs_1.1/13-restlet/28-restlet/144-restlet.html)! I have to complete the existing sample basic application with authentication. I hope to finish it today or tomorrow. I'll keep you informed. Best regards, Thierry Boileau -- Restlet ~ Core

Placing an index.html file in the root directory of an application

2008-10-07 Thread Christian Kšoerner
Hi everyone, I was wondering how to place a simple html file in the root directory of my application which is quite similar to the First Resource example. If I use this code router.attach(/, new Directory(getContext(), docDir)); where docDir refers to the location of the documentation

Re: about FileUpload

2008-10-07 Thread Xavier Spengler
Hi, Thanks for your reply. I've used the following page to implement my java client (SendFileClient ) : http://restlet.tigris.org/servlets/ReadMsg?listName=discussmsgNo=5074attachId=2 And it works well with Nuxeo Restlet runtime (on server) Thanks for all. Regards, Xavier. On Tue, Oct 7, 2008

about FileUpload

2008-10-07 Thread Xavier Spengler
Hi all, I'm new with Restlet... I've read the following web page: http://wiki.restlet.org/docs_1.1/13-restlet/98-restlet/41-restlet.html which explains the Usage example of FileUpload extension I would like to know if the MyResource object is a server side object or a client side object ? because

Re: Placing an index.html file in the root directory of an application

2008-10-07 Thread Thierry Boileau
Hello Christian, I suspect that the docDir reference is not absolute (i.e. does not beginwith file:///, or clap:/// etc.) Is it true? Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com Hi everyone,

Re: about FileUpload

2008-10-07 Thread Thierry Boileau
Hello Xavier, a resource answers to requests and therefore is located on server side. MyResource answers to GET requests (made from an Internet browser) by producing its representation, in this case a simple web form that will finally be displayed by your Internet browser. Then it answers to

serving static files from servlet WAR with Directory class: index.html not served automatically

2008-10-07 Thread Luis Saenz
I'm using restlet 1.1-RC2 with the ServerServlet extension on Oracle AS 10.1.3 with the web.xml configuration method, as follows: ?xml version=1.0 encoding=UTF-8? web-app id=WebApp_ID version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;

Is ByteUtils.toString(Reader) needlessly slow?

2008-10-07 Thread Aaron
Hi Restlet Community, We've been doing some performance profiling of our system, which uses Restlet 1.1-M4 to handle resquests. We noticed that org.restlet.util.ByteUtils.toString(Reader) is costing us about 40% of our runtime. We took a peek at the source code and realized this method is

Re: Is ByteUtils.toString(Reader) needlessly slow?

2008-10-07 Thread Kevin Conaway
I don't know of a reason why it doesn't do buffered reads. I do know that the Reader interface is designed for working with characters whereas the InputStream interface is designed for working with bytes. Can you recompile with an implementation that does buffered reads and see if that solves

serving static files from servlet WAR with Directory class: index.html not served automatically

2008-10-07 Thread lsaenz
(Apologies for my previous non-text email; trying again.) I’m using restlet 1.1-RC2 with the ServerServlet extension on Oracle AS 10.1.3 with the web.xml configuration method. I was able to successfully serve static files (included in the 'webapp/doc' directory within the WAR) using an instance

Re: Is ByteUtils.toString(Reader) needlessly slow?

2008-10-07 Thread Aaron
Kevin Conaway kevin.conaway at gmail.com writes: I don't know of a reason why it doesn't do buffered reads.  I do know that the Reader interface is designed for working with characters whereas the InputStream interface is designed for working with bytes.Can you recompile with an implementation