On Fri, Dec 5, 2008 at 11:45 AM, Felix Meschberger <[EMAIL PROTECTED]> wrote:
> The StreamHandlerServlet tries to stream the resource if it adapts to an
> InputStream (as it does now). If the resource does not adapt to a
> stream, the following steps are taken:
>
>  * if the request URL is not terminated with a slash redirect
>    to the same URL with a terminating slash
>  * if the resource has a child resource "index" or "index.html"
>    (configurable) name, that resource is included ensuring an
>    extension is set (defaulting to .html). This would be the
>    analogon to the httpd "DirectoryIndex" directive
>  * finally a child resource list is built similar to the
>    httpd "Options Index" directive.
>
> Likewise, the default renderers for .html and .txt might also be
> modified. Yet, I am not sure, what to do here: On the one hand it is
> very practical to have the resource dump (to help finding errors) and on
> the other hand, this is a very uncool behaviour in a publishing
> environment. What I could imagine would be to have a configuration
> option, which may switch behaviour between "dump the properties" and
> "send 404/NOT FOUND or 403/FORBIDDEN". We might even make the status
> code configurable.

Sounds good to me!

Regards,
Alex

-- 
Alexander Klimetschek
[EMAIL PROTECTED]

Reply via email to