Hi Brian,

I've been adding the FILE client connector by creating a new component
and feeding that to the restlet that requires it.  Like so:

        Component component = new Component();
        component.getClients().add(Protocol.FILE);
        Directory directory = new
Directory(component.getContext().createChildContext(),
                        "file:///c:/");
        directory.setListingAllowed(true);
        router.attach("/files", directory);

BTW the createChildContext() is in 1.1 so if you are using 1.0 just
remove it.  There's also no need for the inner Application containing
the Directory.

Regards,
Michael.

Reply via email to