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(java.lang.String remoteServerUrl)
           
 
Method Summary
protected  java.lang.String getAction(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

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

SERVER_API_PATH

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

ServerHttpClient

public ServerHttpClient(java.lang.String remoteServerUrl)
Method Detail

getAction

protected java.lang.String getAction(java.lang.String action)
                              throws ServerApiEmptyContentException,
                                     java.io.IOException
Throws:
ServerApiEmptyContentException
java.io.IOException

getId

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

getMavenRepositoryUrl

public java.lang.String getMavenRepositoryUrl()

getRemoteContent

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

getUrl

protected java.lang.String getUrl()

getVersion

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

launchBatch

public void launchBatch(java.lang.Integer snapshotId)

postRemoteContent

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


Copyright © 2008-2009 SonarSource SA. All Rights Reserved.