org.sonar.server.plugins
Class UpdateCenterClient

java.lang.Object
  extended by org.sonar.server.plugins.UpdateCenterClient
All Implemented Interfaces:
ServerComponent

public class UpdateCenterClient
extends Object
implements ServerComponent

HTTP client to load data from the remote update center hosted at http://update.sonarsource.org.

Since:
2.4

Field Summary
static int PERIOD_IN_MILLISECONDS
           
static String URL_PROPERTY
           
 
Constructor Summary
UpdateCenterClient(HttpDownloader downloader, Settings configuration)
           
 
Method Summary
 org.sonar.updatecenter.common.UpdateCenter getCenter()
           
 org.sonar.updatecenter.common.UpdateCenter getCenter(boolean forceRefresh)
           
 Date getLastRefreshDate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_PROPERTY

public static final String URL_PROPERTY
See Also:
Constant Field Values

PERIOD_IN_MILLISECONDS

public static final int PERIOD_IN_MILLISECONDS
See Also:
Constant Field Values
Constructor Detail

UpdateCenterClient

public UpdateCenterClient(HttpDownloader downloader,
                          Settings configuration)
                   throws URISyntaxException
Throws:
URISyntaxException
Method Detail

getCenter

public org.sonar.updatecenter.common.UpdateCenter getCenter()

getCenter

public org.sonar.updatecenter.common.UpdateCenter getCenter(boolean forceRefresh)

getLastRefreshDate

public Date getLastRefreshDate()


Copyright © 2009-2011 SonarSource. All Rights Reserved.