Class RestStorageService

    • Constructor Detail

      • RestStorageService

        public RestStorageService​(ProviderCredentials credentials)
        Constructs the service and initialises the properties.
        Parameters:
        credentials - the user credentials to use when communicating with S3, may be null in which case the communication is done as an anonymous user.
      • RestStorageService

        public RestStorageService​(ProviderCredentials credentials,
                                  String invokingApplicationDescription,
                                  org.apache.commons.httpclient.auth.CredentialsProvider credentialsProvider)
        Constructs the service and initialises the properties.
        Parameters:
        credentials - the S3 user credentials to use when communicating with S3, may be null in which case the communication is done as an anonymous user.
        invokingApplicationDescription - a short description of the application using the service, suitable for inclusion in a user agent string for REST/HTTP requests. Ideally this would include the application's version number, for example: Cockpit/0.7.3 or My App Name/1.0
        credentialsProvider - an implementation of the HttpClient CredentialsProvider interface, to provide a means for prompting for credentials when necessary.
      • RestStorageService

        public RestStorageService​(ProviderCredentials credentials,
                                  String invokingApplicationDescription,
                                  org.apache.commons.httpclient.auth.CredentialsProvider credentialsProvider,
                                  Jets3tProperties jets3tProperties)
        Constructs the service and initialises the properties.
        Parameters:
        credentials - the S3 user credentials to use when communicating with S3, may be null in which case the communication is done as an anonymous user.
        invokingApplicationDescription - a short description of the application using the service, suitable for inclusion in a user agent string for REST/HTTP requests. Ideally this would include the application's version number, for example: Cockpit/0.7.3 or My App Name/1.0
        credentialsProvider - an implementation of the HttpClient CredentialsProvider interface, to provide a means for prompting for credentials when necessary.
        jets3tProperties - JetS3t properties that will be applied within this service.
      • RestStorageService

        public RestStorageService​(ProviderCredentials credentials,
                                  String invokingApplicationDescription,
                                  org.apache.commons.httpclient.auth.CredentialsProvider credentialsProvider,
                                  Jets3tProperties jets3tProperties,
                                  org.apache.commons.httpclient.HostConfiguration hostConfig)
        Constructs the service and initialises the properties.
        Parameters:
        credentials - the S3 user credentials to use when communicating with S3, may be null in which case the communication is done as an anonymous user.
        invokingApplicationDescription - a short description of the application using the service, suitable for inclusion in a user agent string for REST/HTTP requests. Ideally this would include the application's version number, for example: Cockpit/0.7.3 or My App Name/1.0
        credentialsProvider - an implementation of the HttpClient CredentialsProvider interface, to provide a means for prompting for credentials when necessary.
        jets3tProperties - JetS3t properties that will be applied within this service.
        hostConfig - Custom HTTP host configuration; e.g to register a custom Protocol Socket Factory