Mail sent on the 08/22 and apparently lost.
---

Hi Carlos,

That's a good remark since you point a bug.
That's a very good remark because I just wonder if this feature has already been implemented...
I'll fix it asap.

Best regards,
Thierry Boileau
--
Restlet ~ Core developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

Hi,

I want to restrict access to the nested directories inside the root
directory but I don't know how to accomplish this. I tried to set
deepaccessible property to false but doesn't work because I'm still
getting access to the directories within the  ROOT_DIR.

Here's what I'm trying to do (using restlet-1.1m4):

  @Override
  public synchronized Restlet createRoot() {
         Directory directory = new Directory(getContext(), "file:///"
+ ROOT_DIR);
         directory.setDeeplyAccessible(false);

     Router router = new Router(getContext());
     router.attach("site",
Site.class).getTemplate().setMatchingMode(Template.MODE_EQUALS);
     router.attach("files", directory);
     return router;
  }


Can anybody help me with this?

  

Reply via email to