|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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,
org.apache.maven.artifact.Artifact artifact,
org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.apache.maven.artifact.repository.ArtifactRepository localRepository)
|
static String |
getContent(URL url,
org.apache.maven.project.MavenProject project,
org.apache.maven.settings.Settings settings,
String encoding)
Get the input stream from an URL. |
static String |
getContent(URL url,
org.apache.maven.settings.Settings settings)
Get the input stream using ISO-8859-1 as charset from an URL. |
static String |
getContent(URL url,
org.apache.maven.settings.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, org.apache.maven.settings.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, org.apache.maven.settings.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 anypublic static String getContent(URL url, org.apache.maven.project.MavenProject project, org.apache.maven.settings.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 anypublic static String getArtifactUrl(org.apache.maven.artifact.factory.ArtifactFactory factory, org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder, 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 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 |