jetbrains.buildServer.artifacts
Class DependencyResolverContext

java.lang.Object
  extended by jetbrains.buildServer.artifacts.DependencyResolverContext

public class DependencyResolverContext
extends java.lang.Object

Storage for dependency resolver context


Constructor Summary
DependencyResolverContext()
           
 
Method Summary
 void checkConfigured()
           
 int getConnectionTimeout()
           
 DependencyResolverListener getListener()
           
 java.lang.String getPassword()
           
 java.net.URL getServerUrl()
           
 java.lang.String getUsername()
           
 void setConnectionTimeout(int connectionTimeout)
          Sets server connection timeout in seconds
 void setCredentials(java.lang.String username, java.lang.String password)
          Sets credentials to use for artifacts downloading
 void setListener(DependencyResolverListener listener)
           
 void setServerUrl(java.lang.String serverUrl)
          Sets server URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyResolverContext

public DependencyResolverContext()
Method Detail

setListener

public void setListener(@NotNull
                        DependencyResolverListener listener)

setServerUrl

public void setServerUrl(@NotNull
                         java.lang.String serverUrl)
                  throws java.net.MalformedURLException
Sets server URL

Parameters:
serverUrl - server URL
Throws:
java.net.MalformedURLException - if server URL is not valid

setCredentials

public void setCredentials(@NotNull
                           java.lang.String username,
                           @NotNull
                           java.lang.String password)
Sets credentials to use for artifacts downloading

Parameters:
username - username
password - password

setConnectionTimeout

public void setConnectionTimeout(int connectionTimeout)
Sets server connection timeout in seconds

Parameters:
connectionTimeout - - server connection timeout in seconds

checkConfigured

public void checkConfigured()
                     throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getListener

public DependencyResolverListener getListener()

getServerUrl

public java.net.URL getServerUrl()

getPassword

public java.lang.String getPassword()

getUsername

public java.lang.String getUsername()

getConnectionTimeout

public int getConnectionTimeout()