org.sonar.commons
Class ServerHttpClient

java.lang.Object
  extended by org.sonar.commons.ServerHttpClient

public class ServerHttpClient
extends java.lang.Object


Field Summary
protected static java.lang.String BATCH_PATH
           
protected static java.lang.String MAVEN_PATH
           
protected static java.lang.String SERVER_API_PATH
           
 
Constructor Summary
ServerHttpClient(org.apache.commons.configuration.Configuration configuration)
           
ServerHttpClient(java.lang.String remoteServerUrl)
           
 
Method Summary
 void checkUp()
          Throws a runtime ServerConnectionException if it fails to connect Sonar server
protected  java.lang.String executeAction(java.lang.String action)
           
 java.lang.String getId()
           
 java.lang.String getMavenRepositoryUrl()
           
protected  java.lang.String getRemoteContent(java.lang.String url)
           
protected  java.lang.String getUrl()
           
 java.lang.String getVersion()
           
 void launchBatch(java.lang.Integer snapshotId)
           
protected  void postRemoteContent(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_API_PATH

protected static final java.lang.String SERVER_API_PATH
See Also:
Constant Field Values

BATCH_PATH

protected static final java.lang.String BATCH_PATH
See Also:
Constant Field Values

MAVEN_PATH

protected static final java.lang.String MAVEN_PATH
See Also:
Constant Field Values
Constructor Detail

ServerHttpClient

public ServerHttpClient(java.lang.String remoteServerUrl)

ServerHttpClient

public ServerHttpClient(org.apache.commons.configuration.Configuration configuration)
Method Detail

checkUp

public void checkUp()
Throws a runtime ServerConnectionException if it fails to connect Sonar server


getId

public java.lang.String getId()
                       throws java.io.IOException
Throws:
java.io.IOException

getVersion

public java.lang.String getVersion()
                            throws java.io.IOException
Throws:
java.io.IOException

launchBatch

public void launchBatch(java.lang.Integer snapshotId)

getMavenRepositoryUrl

public java.lang.String getMavenRepositoryUrl()

executeAction

protected java.lang.String executeAction(java.lang.String action)
                                  throws java.io.IOException
Throws:
java.io.IOException

getRemoteContent

protected java.lang.String getRemoteContent(java.lang.String url)
                                     throws java.io.IOException
Throws:
java.io.IOException

postRemoteContent

protected void postRemoteContent(java.lang.String url)
                          throws java.io.IOException
Throws:
java.io.IOException

getUrl

protected java.lang.String getUrl()


Copyright © 2009 SonarSource SA. All Rights Reserved.