[Simpleweb-Support] FileContext
Brought to you by:
niallg
From: Brian D. <wic...@gm...> - 2005-12-16 20:45:31
|
Hi I have the following code.. the File dir =3D root.getFile(req.getURI()); li= ne throws a nullpointerexception when the req.getURI() =3D=3D /../../ for example... am i using the api incorrectly? Iterator it =3D _context.getHost(req).roots(); while (it.hasNext()) { FileContext root =3D (FileContext) it.next(); File dir =3D root.getFile(req.getURI()); if (dir.isDirectory() && dir.canRead()) { /cheers! |