Hello Mike,

I think you can provide your own FileClientHelper by extending the
current FileClientHelper class and override the "getTimeToLive"
method.
As your class is a connector, it will be automatically discovered by
the Engine class (see the constructor of com.noelios.restlet.Engine
class) and will handle all "file://" requests, assuming that the
classpath of your application references your class before the current
FileClientHelper class. (see
http://www.restlet.org/documentation/1.0/connectors)

best regards,
Thierry Boileau



On Dec 5, 2007 11:30 PM, Mike Brzozowski <[EMAIL PROTECTED]> wrote:
> 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 not, what would be the
> best way to subclass Directory to gain this functionality?
>
> Thanks in advance,
> Mike
>

Reply via email to