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?

-- 
Carlos Alexandre Moscoso

Reply via email to