org.jfrog.build.extractor.clientConfiguration.client
Class ArtifactoryBaseClient

java.lang.Object
  extended by org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBaseClient
Direct Known Subclasses:
ArtifactoryBuildInfoClient, ArtifactoryDependenciesClient

public abstract class ArtifactoryBaseClient
extends java.lang.Object

Created by Tamirh on 21/04/2016.


Field Summary
protected  java.lang.String artifactoryUrl
           
protected  org.jfrog.build.client.ArtifactoryHttpClient httpClient
           
protected  org.jfrog.build.api.util.Log log
           
 
Constructor Summary
ArtifactoryBaseClient(java.lang.String artifactoryUrl, java.lang.String username, java.lang.String password, org.jfrog.build.api.util.Log logger)
           
 
Method Summary
 void setConnectionTimeout(int connectionTimeout)
          Network timeout in seconds to use both for connection establishment and for unanswered requests.
 void setProxyConfiguration(org.jfrog.build.client.ProxyConfiguration proxy)
          Sets full proxy details.
 void setProxyConfiguration(java.lang.String host, int port)
          Sets the proxy host and port.
 void setProxyConfiguration(java.lang.String host, int port, java.lang.String username, java.lang.String password)
          Sets the proxy details.
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

artifactoryUrl

protected java.lang.String artifactoryUrl

httpClient

protected org.jfrog.build.client.ArtifactoryHttpClient httpClient

log

protected final org.jfrog.build.api.util.Log log
Constructor Detail

ArtifactoryBaseClient

public ArtifactoryBaseClient(java.lang.String artifactoryUrl,
                             java.lang.String username,
                             java.lang.String password,
                             org.jfrog.build.api.util.Log logger)
Method Detail

shutdown

public void shutdown()

setConnectionTimeout

public void setConnectionTimeout(int connectionTimeout)
Network timeout in seconds to use both for connection establishment and for unanswered requests.

Parameters:
connectionTimeout - Timeout in seconds.

setProxyConfiguration

public void setProxyConfiguration(java.lang.String host,
                                  int port)
Sets the proxy host and port.

Parameters:
host - Proxy host
port - Proxy port

setProxyConfiguration

public void setProxyConfiguration(java.lang.String host,
                                  int port,
                                  java.lang.String username,
                                  java.lang.String password)
Sets the proxy details.

Parameters:
host - Proxy host
port - Proxy port
username - Username to authenticate with the proxy
password - Password to authenticate with the proxy

setProxyConfiguration

public void setProxyConfiguration(org.jfrog.build.client.ProxyConfiguration proxy)
Sets full proxy details.

Parameters:
proxy - Proxy instance ProxyConfiguration