public class ProjectInfoReportUtils extends Object
Constructor and Description |
---|
ProjectInfoReportUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getArchiveServer(String uri)
Convenience method to return the name of a web-based mailing list archive server.
|
static String |
getArtifactIdCell(String artifactId,
String link) |
static String |
getArtifactUrl(RepositorySystem repositorySystem,
Artifact artifact,
ProjectBuilder projectBuilder,
ProjectBuildingRequest buildingRequest) |
static String |
getContent(URL url,
MavenProject project,
Settings settings,
String encoding)
Get the input stream from a URL.
|
static String |
getContent(URL url,
Settings settings)
Get the input stream using UTF-8 as character encoding from a URL.
|
static String |
getContent(URL url,
Settings settings,
String encoding)
Get the input stream from a URL.
|
static boolean |
isArtifactUrlValid(String url) |
public static String getContent(URL url, Settings settings) throws IOException
url
- not nullsettings
- not null to handle proxy settingsIOException
- 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 URL input stream. If null, UTF-8 will be used.IOException
- if anypublic 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 URL input stream. If null, UTF-8 will be used.IOException
- if anypublic static String getArtifactUrl(RepositorySystem repositorySystem, Artifact artifact, ProjectBuilder projectBuilder, ProjectBuildingRequest buildingRequest)
repositorySystem
- not nullartifact
- not nullprojectBuilder
- not nullbuildingRequest
- not nullpublic static String getArtifactIdCell(String artifactId, String link)
artifactId
- not nulllink
- could be nullAbstractMavenReportRenderer.linkPatternedText(String)
public static boolean isArtifactUrlValid(String url)
url
- not nulltrue
if the url is valid, false
otherwise.public static String getArchiveServer(String uri)
http://www.mail-archive.com/dev@maven.apache.org
, this
method returns www.mail-archive.com
uri
- the URI parseCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.