org.sonar.mojo.bootstrap
Class ServerMetadata

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

public class ServerMetadata
extends java.lang.Object


Field Summary
static int CONNECT_TIMEOUT_MILLISECONDS
           
static java.lang.String MAVEN_PATH
           
static int READ_TIMEOUT_MILLISECONDS
           
 
Constructor Summary
ServerMetadata(java.lang.String url)
           
 
Method Summary
protected  java.net.HttpURLConnection getConnection(java.lang.String url, java.lang.String method)
           
 java.lang.String getKey()
           
 java.lang.String getMavenRepositoryUrl()
           
 java.lang.String getUrl()
           
 java.lang.String getVersion()
           
 void logSettings(org.apache.maven.plugin.logging.Log log)
           
protected  java.lang.String remoteContent(java.lang.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 java.lang.String MAVEN_PATH
See Also:
Constant Field Values
Constructor Detail

ServerMetadata

public ServerMetadata(java.lang.String url)
Method Detail

getVersion

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

getKey

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

getMavenRepositoryUrl

public java.lang.String getMavenRepositoryUrl()

getUrl

public java.lang.String getUrl()

logSettings

public void logSettings(org.apache.maven.plugin.logging.Log log)
                 throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

remoteContent

protected java.lang.String remoteContent(java.lang.String path)
                                  throws java.io.IOException
Throws:
java.io.IOException

getConnection

protected java.net.HttpURLConnection getConnection(java.lang.String url,
                                                   java.lang.String method)
                                            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009 SonarSource SA. All Rights Reserved.