Class HttpFileSystem
java.lang.Object
java.nio.file.FileSystem
org.broadinstitute.http.nio.HttpFileSystem
- All Implemented Interfaces:
Closeable, AutoCloseable
Read-only HTTP/S FileSystem.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final org.slf4j.Loggerprivate final HttpAbstractFileSystemProvider -
Constructor Summary
ConstructorsConstructorDescriptionHttpFileSystem(HttpAbstractFileSystemProvider provider, String authority) Construct a new FileSystem. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is a no-op, becauseHttpFileSystemis always open.booleanGets the authority for this File System.(package private) HttpPathgetPathMatcher(String syntaxAndPattern) inthashCode()booleanisOpen()HttpFileSystemis always open.booleanprovider()toString()
-
Field Details
-
logger
private final org.slf4j.Logger logger -
provider
-
authority
-
-
Constructor Details
-
HttpFileSystem
HttpFileSystem(HttpAbstractFileSystemProvider provider, String authority) Construct a new FileSystem.- Parameters:
provider- nonnullprovider that generated this HTTP/S File System.authority- nonnullauthority for this HTTP/S File System.
-
-
Method Details
-
provider
- Specified by:
providerin classFileSystem
-
getAuthority
Gets the authority for this File System.- Returns:
- the authority for this File System.
-
close
public void close()This is a no-op, becauseHttpFileSystemis always open.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFileSystem
-
isOpen
public boolean isOpen()HttpFileSystemis always open.- Specified by:
isOpenin classFileSystem- Returns:
true
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classFileSystem- Returns:
true.
-
getSeparator
- Specified by:
getSeparatorin classFileSystem- Returns:
HttpUtils.HTTP_PATH_SEPARATOR_STRING.
-
getRootDirectories
- Specified by:
getRootDirectoriesin classFileSystem
-
getFileStores
- Specified by:
getFileStoresin classFileSystem
-
supportedFileAttributeViews
- Specified by:
supportedFileAttributeViewsin classFileSystem
-
getPath
- Specified by:
getPathin classFileSystem
-
getPath
-
getPathMatcher
- Specified by:
getPathMatcherin classFileSystem
-
getUserPrincipalLookupService
- Specified by:
getUserPrincipalLookupServicein classFileSystem
-
newWatchService
- Specified by:
newWatchServicein classFileSystem
-
toString
-
equals
-
hashCode
-