Class Http4FileSystem

    • Field Detail

      • internalBaseURI

        private final java.net.URI internalBaseURI
        Internal base URI of this file system.
      • httpClient

        private final org.apache.http.client.HttpClient httpClient
        Internal HttpClient instance of this file system.
      • httpClientContext

        private final org.apache.http.client.protocol.HttpClientContext httpClientContext
        Internal HttpClientContext instance of this file system.
    • Constructor Detail

      • Http4FileSystem

        protected Http4FileSystem​(FileName rootName,
                                  FileSystemOptions fileSystemOptions,
                                  org.apache.http.client.HttpClient httpClient,
                                  org.apache.http.client.protocol.HttpClientContext httpClientContext)
        Construct Http4FileSystem.
        Parameters:
        rootName - root base name
        fileSystemOptions - file system options
        httpClient - HttpClient instance
        httpClientContext - HttpClientContext instance
    • Method Detail

      • addCapabilities

        protected void addCapabilities​(java.util.Collection<Capability> caps)
        Description copied from class: AbstractFileSystem
        Adds the capabilities of this file system.
        Specified by:
        addCapabilities in class AbstractFileSystem
        Parameters:
        caps - collections of Capabilities, can be immutable.
      • createFile

        protected FileObject createFile​(AbstractFileName name)
                                 throws java.lang.Exception
        Description copied from class: AbstractFileSystem
        Creates a file object.

        This method is called only if the requested file is not cached.

        Specified by:
        createFile in class AbstractFileSystem
        Parameters:
        name - name referencing the new file.
        Returns:
        new created FileObject.
        Throws:
        java.lang.Exception - might throw an Exception, which is then wrapped in FileSystemException.
      • getHttpClient

        protected org.apache.http.client.HttpClient getHttpClient()
        Return the internal HttpClient instance.
        Returns:
        the internal HttpClient instance
      • getHttpClientContext

        protected org.apache.http.client.protocol.HttpClientContext getHttpClientContext()
        Return the internal HttpClientContext instance.
        Returns:
        the internal HttpClientContext instance
      • getInternalBaseURI

        protected java.net.URI getInternalBaseURI()
        Return the internal base URI instance.
        Returns:
        the internal base URI instance