Class ReadEnabledBucket.Builder<T extends ReadEnabledBucket.Builder<T>>

    • Method Detail

      • self

        protected T self()
        Get self.
        Returns:
        self
      • serviceName

        public T serviceName​(String serviceName)
        Set the service name.
        Parameters:
        serviceName - name of the BucketFS service
        Returns:
        Builder instance for fluent programming
      • name

        public T name​(String bucketName)
        Set the bucket name.
        Parameters:
        bucketName - name of the bucket
        Returns:
        Builder instance for fluent programming
      • useTls

        public T useTls​(boolean useTls)
        Define if you want to use TLS/HTTPS for connecting to the server. Defaults to plain text HTTP.
        Parameters:
        useTls - true to use the TLS/HTTPS protocol, false to use plain text HTTP (default)
        Returns:
        Builder instance for fluent programming
      • host

        public T host​(String host)
        Set the host of the BucketFS service.
        Parameters:
        host - host of the BucketFS service
        Returns:
        Builder instance for fluent programming
      • port

        public T port​(int port)
        Set the port the BucketFS service listens on. Make sure to also call useTls(boolean) with argument false if this is an HTTP port or true if this is an HTTPS port.
        Parameters:
        port - HTTP or HTTPS port the BucketFS service listens on
        Returns:
        Builder instance for fluent programming
      • httpPort

        @Deprecated
        public T httpPort​(int port)
        Deprecated.
        use port(int) instead.
        Set the port the BucketFS service listens on. Make sure to also call useTls(boolean) with argument false if this is an HTTP port or true if this is an HTTPS port.
        Parameters:
        port - HTTP or HTTPS port the BucketFS service listens on
        Returns:
        Builder instance for fluent programming
      • readPassword

        public T readPassword​(String readPassword)
        Set the read password.
        Parameters:
        readPassword - read password to set
        Returns:
        Builder instance for fluent programming
      • raiseTlsErrors

        public T raiseTlsErrors​(boolean raise)
        Define if TLS errors should raise an error when executing requests or if they should be ignored. Setting this to false is required as the docker-db uses a self-signed certificate.

        Defaults to raise TLS errors.

        Mutually exclusive with setting raiseTlsErrors(boolean) to false.

        Parameters:
        raise - true if the CommandFactory should fail for TLS errors, false if it should ignore TLS errors.
        Returns:
        Builder instance for fluent programming
      • certificate

        public T certificate​(X509Certificate certificate)
        Use the given certificate for TLS connections.

        Defaults to using the certificates from the JVMs default key store.

        Mutually exclusive with setting raiseTlsErrors(boolean) to false.

        Parameters:
        certificate - certificate to use
        Returns:
        Builder instance for fluent programming