restlet / restlet-framework-java

The first REST API framework for Java
https://restlet.talend.com
645 stars 284 forks source link

Devise meaningful implementation of Directory#setIndexName method when the protocol is CLAP #708

Open apius opened 11 years ago

apius commented 11 years ago

CLAP does not allow for listing the directory contents and cannot do content negotiation. So for example if we try to set the Directory indexName property with "index" we get a 404 if the protocol is CLAP. Perhaps the Directory class could simply append the value of indexName to the reference when the protocol is CLAP and log an info message if the indexName value does not appear to contain a file extension.

jlouvel commented 11 years ago

The "problem" is that Directory is a separate piece from the CLAP connector, so we need to think more about your suggestion.

If you set index.html for example, were you able to display the index via CLAP?

jlouvel commented 9 years ago

Set milestone to 2.3 M4 and assigned to @stoffeg who has developed a patch