Package no.maddin.niofs.webdav
Class WebdavFileSystemProvider
java.lang.Object
java.nio.file.spi.FileSystemProvider
no.maddin.niofs.webdav.WebdavFileSystemProvider
- Direct Known Subclasses:
WebdavsFileSystemProvider
The WebDAV FileSystemProvider based on Sardine.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAccess
(Path path, AccessMode... modes) void
copy
(Path fileFrom, Path fileTo, CopyOption... options) void
createDirectory
(Path dir, FileAttribute<?>... attrs) void
boolean
deleteIfExists
(Path path) The default implementation in FileSystemProvider will simply call delete() in deleteIfExists() and silently ignore any NoSuchFileException.<V extends FileAttributeView>
VgetFileAttributeView
(Path path, Class<V> type, LinkOption... options) UnsupportedgetFileStore
(Path path) UnsupportedgetFileSystem
(URI uri) boolean
Unsupportedboolean
isSameFile
(Path path, Path path2) Unsupportedvoid
move
(Path source, Path target, CopyOption... options) UnsupportednewByteChannel
(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) newDirectoryStream
(Path path, DirectoryStream.Filter<? super Path> filter) newFileSystem
(URI uri, Map<String, ?> env) <A extends BasicFileAttributes>
AreadAttributes
(Path path, Class<A> type, LinkOption... options) readAttributes
(Path path, String attributes, LinkOption... arg2) void
setAttribute
(Path arg0, String arg1, Object arg2, LinkOption... arg3) UnsupportedMethods inherited from class java.nio.file.spi.FileSystemProvider
createLink, createSymbolicLink, exists, installedProviders, newAsynchronousFileChannel, newFileChannel, newFileSystem, newInputStream, newOutputStream, readAttributesIfExists, readSymbolicLink
-
Field Details
-
log
Logger log
-
-
Constructor Details
-
WebdavFileSystemProvider
public WebdavFileSystemProvider()
-
-
Method Details
-
copy
- Specified by:
copy
in classFileSystemProvider
- Throws:
IOException
-
createDirectory
- Specified by:
createDirectory
in classFileSystemProvider
- Throws:
IOException
-
delete
- Specified by:
delete
in classFileSystemProvider
- Throws:
IOException
-
deleteIfExists
The default implementation in FileSystemProvider will simply call delete() in deleteIfExists() and silently ignore any NoSuchFileException. In case of Nexus, trying to delete() will result in 503 (Not allowed) even if the path points to nowhere.- Overrides:
deleteIfExists
in classFileSystemProvider
- Throws:
IOException
-
getFileSystem
- Specified by:
getFileSystem
in classFileSystemProvider
-
getPath
- Specified by:
getPath
in classFileSystemProvider
-
getScheme
- Specified by:
getScheme
in classFileSystemProvider
-
getFileAttributeView
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) Unsupported- Specified by:
getFileAttributeView
in classFileSystemProvider
-
getFileStore
Unsupported- Specified by:
getFileStore
in classFileSystemProvider
-
checkAccess
- Specified by:
checkAccess
in classFileSystemProvider
- Throws:
IOException
-
isHidden
Unsupported- Specified by:
isHidden
in classFileSystemProvider
-
isSameFile
Unsupported- Specified by:
isSameFile
in classFileSystemProvider
-
move
Unsupported- Specified by:
move
in classFileSystemProvider
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException - Specified by:
newByteChannel
in classFileSystemProvider
- Throws:
IOException
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path path, DirectoryStream.Filter<? super Path> filter) throws IOException - Specified by:
newDirectoryStream
in classFileSystemProvider
- Throws:
IOException
-
newFileSystem
- Specified by:
newFileSystem
in classFileSystemProvider
- Throws:
IOException
-
readAttributes
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException - Specified by:
readAttributes
in classFileSystemProvider
- Throws:
IOException
-
readAttributes
public Map<String,Object> readAttributes(Path path, String attributes, LinkOption... arg2) throws IOException - Specified by:
readAttributes
in classFileSystemProvider
- Throws:
IOException
-
setAttribute
Unsupported- Specified by:
setAttribute
in classFileSystemProvider
-