public class ProjectInfoReportUtils
extends java.lang.Object
Constructor | Description |
---|---|
ProjectInfoReportUtils() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
getArtifactIdCell(java.lang.String artifactId,
java.lang.String link) |
|
static java.lang.String |
getArtifactUrl(RepositorySystem repositorySystem,
Artifact artifact,
ProjectBuilder projectBuilder,
ProjectBuildingRequest buildingRequest) |
|
static java.lang.String |
getContent(java.net.URL url,
MavenProject project,
Settings settings,
java.lang.String encoding) |
Get the input stream from a URL.
|
static java.lang.String |
getContent(java.net.URL url,
Settings settings) |
Get the input stream using UTF-8 as character encoding from a URL.
|
static java.lang.String |
getContent(java.net.URL url,
Settings settings,
java.lang.String encoding) |
Get the input stream from a URL.
|
static boolean |
isArtifactUrlValid(java.lang.String url) |
public static java.lang.String getContent(java.net.URL url, Settings settings) throws java.io.IOException
url
- not nullsettings
- not null to handle proxy settingsjava.io.IOException
- if anygetContent(URL, Settings, String)
public static java.lang.String getContent(java.net.URL url, Settings settings, java.lang.String encoding) throws java.io.IOException
url
- not nullsettings
- not null to handle proxy settingsencoding
- the wanted encoding for the URL input stream. If null, UTF-8 will be used.java.io.IOException
- if anypublic static java.lang.String getContent(java.net.URL url, MavenProject project, 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 URL input stream. If null, UTF-8 will be used.java.io.IOException
- if anypublic static java.lang.String getArtifactUrl(RepositorySystem repositorySystem, Artifact artifact, ProjectBuilder projectBuilder, ProjectBuildingRequest buildingRequest)
repositorySystem
- not nullartifact
- not nullprojectBuilder
- not nullbuildingRequest
- not nullpublic static java.lang.String getArtifactIdCell(java.lang.String artifactId, java.lang.String link)
artifactId
- not nulllink
- could be nullAbstractMavenReportRenderer.linkPatternedText(String)
public static boolean isArtifactUrlValid(java.lang.String url)
url
- not nulltrue
if the url is valid, false
otherwise.Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.