Class HttpClientFactory


  • public final class HttpClientFactory
    extends java.lang.Object
    Create a HttpClient instance.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.commons.httpclient.HttpClient createConnection​(java.lang.String scheme, java.lang.String hostname, int port, java.lang.String username, java.lang.String password, FileSystemOptions fileSystemOptions)  
      static org.apache.commons.httpclient.HttpClient createConnection​(HttpFileSystemConfigBuilder builder, java.lang.String scheme, java.lang.String hostname, int port, java.lang.String username, java.lang.String password, FileSystemOptions fileSystemOptions)
      Creates a new connection to the server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createConnection

        public static org.apache.commons.httpclient.HttpClient createConnection​(HttpFileSystemConfigBuilder builder,
                                                                                java.lang.String scheme,
                                                                                java.lang.String hostname,
                                                                                int port,
                                                                                java.lang.String username,
                                                                                java.lang.String password,
                                                                                FileSystemOptions fileSystemOptions)
                                                                         throws FileSystemException
        Creates a new connection to the server.
        Parameters:
        builder - The HttpFileSystemConfigBuilder.
        scheme - The protocol.
        hostname - The hostname.
        port - The port number.
        username - The username.
        password - The password
        fileSystemOptions - The file system options.
        Returns:
        a new HttpClient connection.
        Throws:
        FileSystemException - if an error occurs.
        Since:
        2.0