Yes. I think simply being able to specify "index.html" instead of "index" and turn off content negotiation is what I want here. So, if I set negotiateContent to false and indexName to "index.html," that should do the trick already, or do I need to do some surgery first?
----- Original Message ----- From: "Jerome Louvel" <[EMAIL PROTECTED]> To: [email protected] Sent: Tuesday, October 9, 2007 3:27:42 PM (GMT-0500) America/New_York Subject: RE: Index files don't work with Directory and clap:// Hi Rob, > Objet : Index files don't work with Directory and clap:// > ... but I'd like them to. > > I assume the trouble is that you can't really get listings > from the classpath, so the content negotiation behavior is broken. Exactly, we don't have this information available. The content negotiation is just ignored in this case. > Do you think there is a way I could add workarounds to the > existing Directory/DirectoryResource implementation, or do I > just need a custom Directory version that does not attempt > content negotiation to find index files (or attempts it in a > different way)? It should already be working with a Directory (set the "negotiateContent" property to false) and a CLAP connector. Are you looking for directory listing with CLAP or the ability to specify an "indexName" with a specific extension, like "index.html" ? Best regards, Jerome

