Glossary. Application. Understanding.

2006-11-09 Thread Dave Pawson
Application. Defined as Restlet deployable into containers. Applications are guaranteed to receive calls with their base reference set relatively to the virtual host that served them. This class is both a descriptor able to create the root Restlet and the actual Restlet that can be attached to one

Tutorial. Diagram

2006-11-09 Thread Dave Pawson
Diagram at the bottom of the page has Holder, scorer is-a Filter. I can find no definition (in the javadocs/glossary) for Holder. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk

Re: Safari/Mac Issues

2006-11-09 Thread Evan DiBiase
On 2006-10-26 18:29:11 -0400, Justin C. van Vorst <[EMAIL PROTECTED]> said: This is, for me, 100% reproducible, and the cycle occurs anytime I close/reopen Safari. I've never seen this behavior with any other website. This does not occur when I use Firefox on my Mac. It also doesn't happen

Keeping a client connection open

2006-11-09 Thread Sean Landis
I noticed that using a Client, that the connection is opened and closed for every call. I have a web service client that would like to hold the connection open across a series of requests. I can't see how to do that. I'm using the ServerServlet, in case that matters. Thanks, Sean

Servlet Context Parameter Access

2006-11-09 Thread Evan DiBiase
Hello! I'm working to upgrade our Tomcat servlet-based Restlet code to 1.0B20, from 1.0B18. I think I have almost everything done, but one thing that's proving a bit difficult is getting access to the servlet parameters inside of my Application. I'm using a stock ServerServlet, the documenta

REST design question

2006-11-09 Thread Chris Grindstaff
Hello all, I'm working on a sample app with restlets. It's going well so far. I have a design question for those who are more familiar with the REST style. Resources: person location A person has a location. How should you move an existing person to an existing location? Originally I did a POST

RE: mina

2006-11-09 Thread Jerome Louvel
Hi all, We indeed have this dependency on AsyncWeb, but they seems to be working on updating it for MINA 1.0: http://jira.safehaus.org/browse/ASYNCWEB-22 Best regards, Jerome > -Message d'origine- > De : Lars Heuer [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 9 novembre 2006 20:13 > À

Re: mina

2006-11-09 Thread Lars Heuer
Hi Piyush, > Any plans to upgrade to the latest mina release (1.0 released in > October)? Since AsyncWeb still uses Mina 0.8 and Mina 1.0 contains compatibility breaks, we have to wait for AsyncWeb (or write our own HTTP server). Best regards, Lars -- http://www.semagia.com

mina

2006-11-09 Thread Piyush Purang
Hi Jerome, Any plans to upgrade to the latest mina release (1.0 released in October)? Cheers Piyush

Re: POST?

2006-11-09 Thread Dave Pawson
On 09/11/06, Jerome Louvel <[EMAIL PROTECTED]> wrote: In order to process a POSTed form, just do a request.getEntityAsForm() in the "handlePost()" method of your Handler subclass. Of course you need to route your "/upload" URI to your Handler. Thanks Jerome. I think this sums up my lack of un

RE: POST?

2006-11-09 Thread Jerome Louvel
Hi Dave, In order to process a POSTed form, just do a request.getEntityAsForm() in the "handlePost()" method of your Handler subclass. Of course you need to route your "/upload" URI to your Handler. Best regards, Jerome > -Message d'origine- > De : Dave Pawson [mailto:[EMAIL PROTECTED

RE: NRE HttpServerCall

2006-11-09 Thread Jerome Louvel
Hi Lars, I've reversed the tests to prefer the channel when available. Note that for now, no connector is able to exploit the channel's aspect of a representation. Best regards, Jerome > -Message d'origine- > De : Lars Heuer [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 9 novembre 2006

Re: NRE HttpServerCall

2006-11-09 Thread Lars Heuer
[...] > While thinking about it, I wonder if we need the Input/Outputstream at > all. > Why do we not work with Channels / ByteBuffers only? Naaahh... forget it, keep both! :) Best regards, Lars -- http://www.semagia.com

Re: NRE HttpServerCall

2006-11-09 Thread Lars Heuer
[...] > the method first checks for an ResponseStream and if the stream is > null it checks for an ResponseChannel (line 224). [...] > Shouldn't that be done the other way around? The channel should be > preferred. While thinking about it, I wonder if we need the Input/Outputstream at all. Why do

NRE HttpServerCall

2006-11-09 Thread Lars Heuer
Hi, In HttpServerCall.sendResponse the method first checks for an ResponseStream and if the stream is null it checks for an ResponseChannel (line 224). [...] if (getResponseStream() != null) { entity.write(getResponseStream()); } else if (getResponseChannel() != nu

POST?

2006-11-09 Thread Dave Pawson
I'm now happily serving basic HTML pages. I need to gather information from a user, e.g. a file name(s). Normally I'd use POST and some java/perl to handle the response. How do I do this using restlets please? I.e. I want to put *something* at /upload which can pick up the posted content

netbeans. Minor niggle.

2006-11-09 Thread Dave Pawson
Using netbeans (instead of Eclipse) the javadoc is missing from the context sensitive help. I *think* this can be resolved by zipping up the sources within the jar file. Is this available in Eclipse please regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk

RE: tutorial examples.

2006-11-09 Thread Jerome Louvel
> that's it. Thanks. > Is this 'normal' Jerome? I have always found this when browsing? > Hence it is what I expected. The usage of an index file is no specified in Web standards, but this is a common practice supported by Web servers. In general, if the index file is absent, a listing is display

Re: tutorial examples.

2006-11-09 Thread Dave Pawson
On 09/11/06, Jerome Louvel <[EMAIL PROTECTED]> wrote: > How to change this such that I get either a directory listing > or index.html (or variants) by default please? > Or how to specify an explicit file The Directory Handler disables the content negotiation by default which causes this problem

RE: tutorial examples.

2006-11-09 Thread Jerome Louvel
> Note that no external configuration file is needed. If you want to > customize the mapping between file extensions and metadata (media > type, language or encoding), you can use the Application's > "localService" property. Updated in the latest tutorial version, it's is "metadataService" now.

Re: tutorial examples.

2006-11-09 Thread Dave Pawson
re example 6. Tutorial says Note that no external configuration file is needed. If you want to customize the mapping between file extensions and metadata (media type, language or encoding), you can use the Application's "localService" property. Should this be org/restlet/Application.html#getMeta

Re: tutorial examples.

2006-11-09 Thread Dave Pawson
On 09/11/06, Jerome Louvel <[EMAIL PROTECTED]> wrote: Hi Dave, Updated FAQ and tutorial with additional info. Sample value for ROOT_URI = "file:///D:/Restlet/www/docs/api/". Typo? javadoc for Directory suggests file:// Need to differentiate between file://D:/ and file:/// perhaps? You c

RE: tutorial examples.

2006-11-09 Thread Jerome Louvel
Good point. I've entered an issue to reduce the depth of the stack trace: http://restlet.tigris.org/issues/show_bug.cgi?id=190 Best regards, Jerome > -Message d'origine- > De : Dave Pawson [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 9 novembre 2006 11:11 > À : discuss@restlet.tigris.org

RE: tutorial examples.

2006-11-09 Thread Jerome Louvel
Hi Dave, Updated FAQ and tutorial with additional info. Sample value for ROOT_URI = "file:///D:/Restlet/www/docs/api/". You can also check the complete tutorial source code in the "src\com.noelios.restlet.example\com\noelios\restlet\example\tutorial" directory of the distribution. Best regar

Re: tutorial examples.

2006-11-09 Thread Dave Pawson
On 09/11/06, Dave Pawson <[EMAIL PROTECTED]> wrote: Tutorial, section 6 @Override public Restlet createRoot() { return new Directory(getContext(), ROOT_URI); } }; No mention of ROOT_URI in the text ? Guessing how it should be used I'm ge

Re: tutorial examples.

2006-11-09 Thread Dave Pawson
On 09/11/06, Jerome Louvel <[EMAIL PROTECTED]> wrote: In the "/lib" folder of the distribution, there is a README.txt file folder that attempts the list the main dependencies for each JAR. I've reviewed it again and fully updated it (see attached copy). Thanks. Much clearer Jerome. Could this

RE: tutorial examples.

2006-11-09 Thread Jerome Louvel
Hi all, In the "/lib" folder of the distribution, there is a README.txt file folder that attempts the list the main dependencies for each JAR. I've reviewed it again and fully updated it (see attached copy). I've also fixed all the NPE that can occurs inside the API when a JAR is missing, displa

Re: tutorial examples.

2006-11-09 Thread Dave Pawson
Thanks AJ On 08/11/06, A.J. Barnes <[EMAIL PROTECTED]> wrote: Looks like you're missing the javax jar. In the lib fold, there are two javax.servlet folders. From what I remember you need to include the javax.servlet.jar from one of these, particularly from javax.servlet_2.5 if you are using Jet