org.sonar.commons
Class ServerHttpClient
java.lang.Object
org.sonar.commons.ServerHttpClient
public class ServerHttpClient
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ServerHttpClient
public ServerHttpClient(java.lang.String remoteServerUrl)
ServerHttpClient
public ServerHttpClient(org.apache.commons.configuration.Configuration configuration)
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.