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. I will restored the previous behavior in beta 21. For
now, please use:
public Restlet createRoot()
{
Directory directory = new Directory(getContext(), ROOT_URI);
directory.setNegotiateContent(true);
return directory;
}
that's it. Thanks.
Is this 'normal' Jerome? I have always found this when browsing?
Hence it is what I expected.
Also, you can change the default name via "metadataService.indexName"
property.
Thats it.
(perhaps a good addition to section 6 of the tutorial?)
Thanks for the help.
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk