|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.report.projectinfo.ProjectInfoReportUtils
public class ProjectInfoReportUtils
Utilities methods.
Constructor Summary | |
---|---|
ProjectInfoReportUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getArtifactIdCell(java.lang.String artifactId,
java.lang.String link)
|
static java.lang.String |
getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory,
org.apache.maven.artifact.Artifact artifact,
org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder,
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.apache.maven.artifact.repository.ArtifactRepository localRepository)
|
static java.lang.String |
getContent(java.net.URL url,
org.apache.maven.project.MavenProject project,
org.apache.maven.settings.Settings settings,
java.lang.String encoding)
Get the input stream from an URL. |
static java.lang.String |
getContent(java.net.URL url,
org.apache.maven.settings.Settings settings)
Get the input stream using ISO-8859-1 as charset from an URL. |
static java.lang.String |
getContent(java.net.URL url,
org.apache.maven.settings.Settings settings,
java.lang.String encoding)
Get the input stream from an URL. |
static boolean |
isArtifactUrlValid(java.lang.String url)
|
static boolean |
isNumber(java.lang.String str)
|
static float |
toFloat(java.lang.String str,
float defaultValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectInfoReportUtils()
Method Detail |
---|
public static java.lang.String getContent(java.net.URL url, org.apache.maven.settings.Settings settings) throws java.io.IOException
url
- not nullsettings
- not null to handle proxy settings
java.io.IOException
- if anygetContent(URL, Settings, String)
public static java.lang.String getContent(java.net.URL url, org.apache.maven.settings.Settings settings, java.lang.String encoding) throws java.io.IOException
url
- not nullsettings
- not null to handle proxy settingsencoding
- the wanted encoding for the inputstream. If null, encoding will be "ISO-8859-1".
java.io.IOException
- if anypublic static java.lang.String getContent(java.net.URL url, org.apache.maven.project.MavenProject project, org.apache.maven.settings.Settings settings, java.lang.String encoding) throws java.io.IOException
url
- not nullproject
- could be nullsettings
- not null to handle proxy settingsencoding
- the wanted encoding for the inputstream. If empty, encoding will be "ISO-8859-1".
java.io.IOException
- if anypublic static java.lang.String getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory, org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, org.apache.maven.artifact.repository.ArtifactRepository localRepository)
factory
- not nullartifact
- not nullmavenProjectBuilder
- not nullremoteRepositories
- not nulllocalRepository
- not null
public static java.lang.String getArtifactIdCell(java.lang.String artifactId, java.lang.String link)
artifactId
- not nulllink
- could be null
AbstractMavenReportRenderer.linkPatternedText(String)
public static boolean isArtifactUrlValid(java.lang.String url)
url
- not null
true
if the url is valid, false
otherwise.public static boolean isNumber(java.lang.String str)
public static float toFloat(java.lang.String str, float defaultValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |