public class GitLabFileSystem extends WebFileSystem
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GitLabFileSystem.GitLabNode |
protected static class |
GitLabFileSystem.ParsedGitLabRoot |
FileSystem.DirectoryEntry, FileSystem.FileSystemOfflineException| Modifier and Type | Field and Description |
|---|---|
protected GitLabFileSystem.ParsedGitLabRoot |
parsedRoot |
HTTP_CHECK_TIMESTAMP_LIMIT_MS, id, LISTING_TIMEOUT_MS, localRoot, logger, MEMORY_LISTING_TIMEOUT_MS, offline, offlineMessage, offlineResponseCode, PROP_OFFLINE, PROP_READ_ONLY_CACHE, protocolloggerUrl, NULL, PROP_CASE_INSENSITIVE, properties| Modifier | Constructor and Description |
|---|---|
protected |
GitLabFileSystem(java.net.URI rootUri) |
protected |
GitLabFileSystem(java.net.URI rootUri,
java.io.File localRoot,
java.lang.String branch,
int baseOffset,
java.lang.String token) |
| Modifier and Type | Method and Description |
|---|---|
static GitLabFileSystem |
createGitLabFileSystem(java.net.URI rootUri) |
protected java.util.Map<java.lang.String,java.lang.String> |
downloadFile(java.lang.String filename,
java.io.File f,
java.io.File partfile,
ProgressMonitor monitor)
Transfers the file from the remote store to a local copy f.
|
FileObject |
getFileObject(java.lang.String filename)
Return the handle for this file.
|
protected java.lang.String |
getResolvedRef() |
java.net.URI |
getRootURI()
Optional convenience.
|
long |
getSize(java.lang.String filename)
Optional convenience method if Das2 FileSystem has a method like this.
|
boolean |
isDirectory(java.lang.String filename)
return true if the name refers to a directory, not a file.
|
java.lang.String[] |
listDirectory(java.lang.String directory)
return the directory listing for the name.
|
protected java.lang.String |
normalizeRepoPath(java.lang.String p) |
protected java.net.HttpURLConnection |
open(java.lang.String surl) |
protected GitLabFileSystem.GitLabNode |
stat(java.lang.String repoPath) |
protected static java.lang.String |
urlEncodePathSegmentwise(java.lang.String path)
Encode each path segment but preserve slashes.
|
addPropertyChangeListener, addRoCacheEntries, cacheListing, consumeStream, copyStream, getDownloadDirectory, getDownloadLock, getLastAccessed, getLocalName, getLocalName, getLocalRoot, getLocalRootAbsPath, getOfflineMessage, getOfflineResponseCode, getPartFile, getProtocol, getReadOnlyCache, getRootURL, getURI, getURL, isAppletMode, isGitClone, isListingCached, isOffline, listDirectory, listDirectoryFromMemory, listingFile, localRoot, maybeUpdateDirectoryEntry, removePropertyChangeListener, resetListCache, resetListingCache, setAppletMode, setOffline, setReadOnlyCache, toStringcreate, create, create, create, create, create, createFileSystem, getExceptionHandler, getListing, getListing, getProperty, listDirectory, listDirectory, listDirectoryDeep, peek, peekInstances, recreate, recreate, registerFileSystemFactory, reset, reset, setExceptionHandler, settings, splitUrl, toCanonicalFilename, toCanonicalFolderName, toCanonicalFolderName, toCanonicalFolderNameStringprotected final GitLabFileSystem.ParsedGitLabRoot parsedRoot
protected GitLabFileSystem(java.net.URI rootUri)
throws java.io.IOException
java.io.IOExceptionprotected GitLabFileSystem(java.net.URI rootUri,
java.io.File localRoot,
java.lang.String branch,
int baseOffset,
java.lang.String token)
throws java.io.IOException
java.io.IOExceptionpublic static GitLabFileSystem createGitLabFileSystem(java.net.URI rootUri) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String[] listDirectory(java.lang.String directory)
throws java.io.IOException
WebFileSystemlistDirectory in class WebFileSystemdirectory - the directory name within the filesystem.java.io.IOExceptionfor listings constrained by regular expressions.public boolean isDirectory(java.lang.String filename)
throws java.io.IOException
WebFileSystemisDirectory in class WebFileSystemfilename - the namejava.io.IOExceptionpublic long getSize(java.lang.String filename)
throws java.io.IOException
java.io.IOExceptionpublic java.net.URI getRootURI()
getRootURI in class FileSystemprotected GitLabFileSystem.GitLabNode stat(java.lang.String repoPath) throws java.io.IOException
java.io.IOExceptionprotected java.lang.String getResolvedRef()
throws java.io.IOException
java.io.IOExceptionprotected java.net.HttpURLConnection open(java.lang.String surl)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String normalizeRepoPath(java.lang.String p)
protected static java.lang.String urlEncodePathSegmentwise(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic FileObject getFileObject(java.lang.String filename)
WebFileSystemgetFileObject in class WebFileSystemfilename - the name of the file within the filesystem.protected java.util.Map<java.lang.String,java.lang.String> downloadFile(java.lang.String filename,
java.io.File f,
java.io.File partfile,
ProgressMonitor monitor)
throws java.io.IOException
WebFileSystemdownloadFile in class WebFileSystemfilename - the name of the file, relative to the filesystem.f - the file to where the file is downloaded.partfile - the temporary file during download.monitor - progress monitorjava.io.IOExceptionWebProtocol.getMetadata(org.das2.util.filesystem.WebFileObject)