Sha256: 68b8ad302b5670b05ce353471162467c318eb6285c10762bd9e26c7f2ff48c05

Contents?: true

Size: 1.57 KB

Versions: 7

Compression:

Stored size: 1.57 KB

Contents

package com.treasuredata.api;

import com.google.common.base.Optional;

public class TdApiClientConfig
{
    public static class HttpProxyConfig
    {
        private String host;
        private int port;
        private boolean secure;

        public HttpProxyConfig(String host, int port, boolean secure)
        {
            this.host = host;
            this.port = port;
            this.secure = secure;
        }

        public String getHost()
        {
            return host;
        }

        public int getPort()
        {
            return port;
        }

        public boolean isSecure()
        {
            return secure;
        }
    }

    private String endpoint;
    private boolean useSsl;
    private Optional<HttpProxyConfig> httpProxyConfig;

    // TODO Builder
    // TODO clone

    public TdApiClientConfig(String endpoint, boolean useSsl)
    {
        this(endpoint, useSsl, Optional.<HttpProxyConfig>absent());
    }

    public TdApiClientConfig(String endpoint, boolean useSsl, Optional<HttpProxyConfig> httpProxyConfig)
    {
        this.endpoint = endpoint;
        this.useSsl = useSsl;
        this.httpProxyConfig = httpProxyConfig;
    }

    public String getEndpoint()
    {
        return endpoint;
    }

    public void setEndpoint(String endpoint)
    {
        this.endpoint = endpoint;
    }

    public boolean getUseSsl()
    {
        return useSsl;
    }

    public Optional<HttpProxyConfig> getHttpProxyConfig()
    {
        return httpProxyConfig;
    }

    public String getAgentName()
    {
        return TdApiConstants.AGENT_NAME;
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
embulk-output-td-0.2.2 src/main/java/com/treasuredata/api/TdApiClientConfig.java
embulk-output-td-0.2.1 src/main/java/com/treasuredata/api/TdApiClientConfig.java
embulk-output-td-0.2.0 src/main/java/com/treasuredata/api/TdApiClientConfig.java
embulk-output-td-0.1.8 src/main/java/com/treasuredata/api/TdApiClientConfig.java
embulk-output-td-0.1.7 src/main/java/com/treasuredata/api/TdApiClientConfig.java
embulk-output-td-0.1.6 src/main/java/com/treasuredata/api/TdApiClientConfig.java
embulk-output-td-0.1.5 src/main/java/com/treasuredata/api/TdApiClientConfig.java