org.codehaus.mojo.sonar
Class ServerMetadata

java.lang.Object
  extended by org.codehaus.mojo.sonar.ServerMetadata

public class ServerMetadata
extends Object


Field Summary
static int CONNECT_TIMEOUT_MILLISECONDS
           
static String MAVEN_PATH
           
static int READ_TIMEOUT_MILLISECONDS
           
 
Constructor Summary
ServerMetadata(String url)
           
 
Method Summary
 void connect()
           
protected  HttpURLConnection getConnection(String url, String method)
           
 String getKey()
           
 String getMavenRepositoryUrl()
           
 String getUrl()
           
 String getVersion()
           
 void logSettings(Log log)
           
 boolean needsSonarInternalRepository()
           
protected  String remoteContent(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECT_TIMEOUT_MILLISECONDS

public static final int CONNECT_TIMEOUT_MILLISECONDS
See Also:
Constant Field Values

READ_TIMEOUT_MILLISECONDS

public static final int READ_TIMEOUT_MILLISECONDS
See Also:
Constant Field Values

MAVEN_PATH

public static final String MAVEN_PATH
See Also:
Constant Field Values
Constructor Detail

ServerMetadata

public ServerMetadata(String url)
Method Detail

connect

public void connect()
             throws MojoExecutionException
Throws:
MojoExecutionException

getVersion

public String getVersion()

getKey

public String getKey()

getMavenRepositoryUrl

public String getMavenRepositoryUrl()

getUrl

public String getUrl()

needsSonarInternalRepository

public boolean needsSonarInternalRepository()

logSettings

public void logSettings(Log log)

remoteContent

protected String remoteContent(String path)
                        throws IOException
Throws:
IOException

getConnection

protected HttpURLConnection getConnection(String url,
                                          String method)
                                   throws IOException
Throws:
IOException


Copyright © 2009-2011 Codehaus. All Rights Reserved.