Hi,

Now it seems to work for me, thanks.

2008/9/11 Thierry Boileau <[EMAIL PROTECTED]>:
> Mail sent on the 08/22 and apparently lost.
> ---
>
> Hi Carlos,
>
> thanks again for your report, I've upated the svn repository. A new snapshot
> (called "unstable" in the following page http://www.restlet.org/downloads/)
> will be available tomorow morning.
>
> 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?
>
>



-- 
Carlos Alexandre Moscoso

Reply via email to