HttpClient Extension

2007-12-05 Thread John R. Fallows
Folks, In the HttpClient extension on trunk, HttpMethodCall.getResponseStream() should return null when the underlying response body stream is null. However, as currently written, this method will return a non-null FilterInputStream wrapper, even when the underlying response body stream is null.

Setting Expires headers for static Directory Restlets

2007-12-05 Thread Mike Brzozowski
Hi, The Directory Restlet is a really convenient way to serve an entire directory of static content. But by default it all expires within 10 minutes. Is there a way to change a Directory so that it returns files with a custom time to live (the way FileRepresentation does for individual files)? If

application/xml in MetadataService

2007-12-05 Thread Alex Milowski
I've noted that I can't get an extension for application/xml from the metadata service. In looking into this, the implementation (specifically, in addCommonExtensions) does not have a mapping for application/xml. Any reason? Also, maybe this could be externalized to an XML document (or whatever)

HTTP Headers missing from Request to Response

2007-12-05 Thread Ben
I'm writing a small REST client to use for testing my REST server app. The relevant code looks something like this: Client client = new Client(Protocol.HTTP); Request request = new Request(); // build request from UI input // ... // add any header fields defined by user // one of these is "X-Targ

Re: A Restlet interface to Subversion?

2007-12-05 Thread Ben
Hello Jerome, thank you for your reply. [...] > > limited to individual files: add (POST), replace (PUT), > > delete (DELETE) > > IMO, the PUT should be mapped to both "replace" and "create", unless you > want the server to control the URI of the created resources (via a POST to a > list resou

Re: Lightweight alternative to Reference

2007-12-05 Thread Stephan Koops
I think, this is a good idea. The methods "public String getMatrix()", "public Form getMatrixAsForm()", "public Form getMatrixAsForm(CharacterSet)" and "setMatrix(String)" are nice, too. And setQuery(Form) and setMatrix(Form) are other good ideas, I think. In this case, wouldn't it be suff

Restlet and Flickr

2007-12-05 Thread Paul J. Lucas
Has anybody done a Flickr client using Restlet? If so, details appreciated. Or, failing that, being pointed in the right direction on how to do it (what classes to derive from) would be good. I've been looking at the Restlet code and the thing that strikes me as wrong is that the core cla

Re: Exceptions in general

2007-12-05 Thread Paul J. Lucas
On Dec 5, 2007, at 9:14 AM, Paul J. Lucas wrote: On Dec 4, 2007, at 3:03 AM, Stian Soiland wrote: On 12/3/07, Paul J. Lucas <[EMAIL PROTECTED]> wrote: Funny, because java.io.FileNotFoundException is derived from IOException. So clearly there's precedent. Did you notice the "io" package na

Re: WADL tutorial ?

2007-12-05 Thread Jean-Yves Cronier
Is there any sample pieces of working example code? Jerome Louvel a écrit : Hi Jean-Yves, We have started building support for WADL in Restlet SVN trunk (1.1 snapshot). You should have a look at the org.restlet.ext.wadl extension Javadocs to see how we have this support for now. For more detai

Re: Exceptions in general

2007-12-05 Thread Paul J. Lucas
On Dec 4, 2007, at 3:03 AM, Stian Soiland wrote: On 12/3/07, Paul J. Lucas <[EMAIL PROTECTED]> wrote: Funny, because java.io.FileNotFoundException is derived from IOException. So clearly there's precedent. Did you notice the "io" package name? :-) The exceptions here are about resources, no

Re: WADL tutorial ?

2007-12-05 Thread Jean-Yves Cronier
Is there any sample pieces of working example code? Jerome Louvel a écrit : Hi Jean-Yves, We have started building support for WADL in Restlet SVN trunk (1.1 snapshot). You should have a look at the org.restlet.ext.wadl extension Javadocs to see how we have this support for now. For more det

Re: Lightweight alternative to Reference

2007-12-05 Thread Thierry Boileau
Hi all, > Except it's not "append": it's "insert into the right place" or "set". It reminds me the 'PUT' semantic... best regards, Thierry Boileau

Re: Exceptions in general

2007-12-05 Thread Toby Thain
On 4-Dec-07, at 9:03 AM, Stian Soiland wrote: On 12/3/07, Paul J. Lucas <[EMAIL PROTECTED]> wrote: Funny, because java.io.FileNotFoundException is derived from IOException. So clearly there's precedent. Did you notice the "io" package name? :-) The exceptions here are about resources, not

Re: various xslt related remarks

2007-12-05 Thread Marc Portier
Jerome Louvel wrote: Hi Marc and Joe, I've extracted some of your writings into the existing RFE: "Refactor TransformRepresentation" http://restlet.tigris.org/issues/show_bug.cgi?id=377 and into a new RFE: "Support DomSource, SaxSource and StreamSource" http://restlet.tigris.org/issues/sh