369370371372373374375
*/ public void addJunction(final String junctionPoint, final FileObject targetFile) throws FileSystemException { throw new FileSystemException("vfs.provider/junctions-not-supported.error", rootName); }
377378379380381382383
/** * Removes a junction from this file system. */ public void removeJunction(final String junctionPoint) throws FileSystemException { throw new FileSystemException("vfs.provider/junctions-not-supported.error", rootName); }
78798081828384858687
client = resource.retrieveSessionInstance(); client.setHttpConnectionManager(new WebdavConnectionManager()); } catch (final IOException e) { throw new FileSystemException("vfs.provider.webdav/connect.error", hostname, e); } return client; }
5152535455565758596061
{ name = parseUri(baseFile!=null?baseFile.getName():null, uri); } catch (FileSystemException exc) { throw new FileSystemException("vfs.provider/invalid-absolute-uri.error", uri, exc); } // Locate the file return findFile(name, fileSystemOptions); }
179180181182183184185186187188189
{ resource.setProperties(WebdavResource.DEFAULT, 1); } catch (IOException e) { throw new FileSystemException(e); } } finally { optionsMethod.releaseConnection();
259260261262263264265266
// after this our resource should be reset parent.doListChildrenResolved(); } catch (Exception e) { throw new FileSystemException(e); } }
309310311312313314315316317318319
} } if (children == null) { throw new FileSystemException("vfs.provider.webdav/list-children.error", resource.getStatusMessage()); } List vfs = new ArrayList(children.length); // WebdavFileObject[] vfs = new WebdavFileObject[children.length]; for (int i = 0; i < children.length; i++)
351352353354355356357358359360361
//// resource.getHttpURL().setEscapedPath(getName().getPath() + '/'); resource.getHttpURL().setPath(getName().getPathDecoded() + '/'); final boolean ok = resource.mkcolMethod(); if (!ok) { throw new FileSystemException("vfs.provider.webdav/create-collection.error", resource.getStatusMessage()); } // reread allowed methods reattach(); }
505152535455565758
{ final int b1 = is.read(); final int b2 = is.read(); if (b1 != 'B' || b2 != 'Z') { throw new FileSystemException("vfs.provider.compressedFile/not-a-compressedFile-file.error", name); } return new CBZip2InputStream(is); }
368369370371372373374375376377378
resolveRedirection(); // final boolean ok = resource.deleteMethod(getName().getPathDecoded() /*url.getPath()*/); final boolean ok = resource.deleteMethod(); if (!ok) { throw new FileSystemException("vfs.provider.webdav/delete-file.error", resource.getStatusMessage()); } // reread allowed methods reattach(); }