|
||||||||||
| 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 String |
getArtifactIdCell(String artifactId,
String link)
|
static String |
getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory,
Artifact artifact,
MavenProjectBuilder mavenProjectBuilder,
List<ArtifactRepository> remoteRepositories,
ArtifactRepository localRepository)
|
static String |
getContent(URL url,
MavenProject project,
Settings settings,
String encoding)
Get the input stream from an URL. |
static String |
getContent(URL url,
Settings settings)
Get the input stream using ISO-8859-1 as charset from an URL. |
static String |
getContent(URL url,
Settings settings,
String encoding)
Get the input stream from an URL. |
static boolean |
isArtifactUrlValid(String url)
|
static boolean |
isNumber(String str)
|
static float |
toFloat(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 String getContent(URL url,
Settings settings)
throws IOException
url - not nullsettings - not null to handle proxy settings
IOException - if anygetContent(URL, Settings, String)
public static String getContent(URL url,
Settings settings,
String encoding)
throws IOException
url - not nullsettings - not null to handle proxy settingsencoding - the wanted encoding for the inputstream. If null, encoding will be "ISO-8859-1".
IOException - if any
public static String getContent(URL url,
MavenProject project,
Settings settings,
String encoding)
throws 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".
IOException - if any
public static String getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory,
Artifact artifact,
MavenProjectBuilder mavenProjectBuilder,
List<ArtifactRepository> remoteRepositories,
ArtifactRepository localRepository)
factory - not nullartifact - not nullmavenProjectBuilder - not nullremoteRepositories - not nulllocalRepository - not null
public static String getArtifactIdCell(String artifactId,
String link)
artifactId - not nulllink - could be null
AbstractMavenReportRenderer.linkPatternedText(String)public static boolean isArtifactUrlValid(String url)
url - not null
true if the url is valid, false otherwise.public static boolean isNumber(String str)
public static float toFloat(String str,
float defaultValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||