Package org.broadinstitute.http.nio
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 String
private final org.slf4j.Logger
private final HttpAbstractFileSystemProvider
-
Constructor Summary
ConstructorsConstructorDescriptionHttpFileSystem
(HttpAbstractFileSystemProvider provider, String authority) Construct a new FileSystem. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This is a no-op, becauseHttpFileSystem
is always open.boolean
Gets the authority for this File System.(package private) HttpPath
getPathMatcher
(String syntaxAndPattern) int
hashCode()
boolean
isOpen()
HttpFileSystem
is always open.boolean
provider()
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
- nonnull
provider that generated this HTTP/S File System.authority
- nonnull
authority for this HTTP/S File System.
-
-
Method Details
-
provider
- Specified by:
provider
in 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, becauseHttpFileSystem
is always open.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classFileSystem
-
isOpen
public boolean isOpen()HttpFileSystem
is always open.- Specified by:
isOpen
in classFileSystem
- Returns:
true
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in classFileSystem
- Returns:
true
.
-
getSeparator
- Specified by:
getSeparator
in classFileSystem
- Returns:
HttpUtils.HTTP_PATH_SEPARATOR_STRING
.
-
getRootDirectories
- Specified by:
getRootDirectories
in classFileSystem
-
getFileStores
- Specified by:
getFileStores
in classFileSystem
-
supportedFileAttributeViews
- Specified by:
supportedFileAttributeViews
in classFileSystem
-
getPath
- Specified by:
getPath
in classFileSystem
-
getPath
- Parameters:
uri
- location of the HTTP/S resource.- Returns:
- path representation of the
URI
.
-
getPathMatcher
- Specified by:
getPathMatcher
in classFileSystem
-
getUserPrincipalLookupService
- Specified by:
getUserPrincipalLookupService
in classFileSystem
-
newWatchService
- Specified by:
newWatchService
in classFileSystem
-
toString
-
equals
-
hashCode
public int hashCode()
-