@Immutable public class PackageUrl extends Object implements Serializable
PackageUrlBuilder,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEME
Standard URI scheme for Package-URL.
|
| Modifier and Type | Method and Description |
|---|---|
PackageUrlBuilder |
asBuilder()
Convert to a builder for mutation.
|
static PackageUrlBuilder |
builder()
Helper to create a builder.
|
boolean |
equals(Object o) |
String |
getName() |
List<String> |
getNamespace() |
String |
getNamespaceAsString()
Return
namespace as a string representation (unencoded segments). |
SortedMap<String,String> |
getQualifiers() |
List<String> |
getSubpath() |
String |
getSubpathAsString()
Return
subpath as a string representation (unencoded segments). |
String |
getType() |
String |
getVersion() |
int |
hashCode() |
static PackageUrl |
parse(String value)
Parse package-url from given value.
|
static PackageUrlParser |
parser()
Helper to create a parser
|
String |
toString()
Convert to canonical string representation with
default flavor. |
String |
toString(RenderFlavor flavor)
Convert to canonical string representation with given rendering flavor.
|
URI |
toUri()
Convert to a URI.
|
public static final String SCHEME
public String getType()
@Nullable public String getNamespaceAsString()
namespace as a string representation (unencoded segments).public String getName()
@Nullable public String getSubpathAsString()
subpath as a string representation (unencoded segments).public PackageUrlBuilder asBuilder()
PackageUrlBuilder.from(PackageUrl)public URI toUri()
public String toString()
default flavor.public String toString(RenderFlavor flavor)
public static PackageUrl parse(String value)
parser().parse(value)public static PackageUrlParser parser()
public static PackageUrlBuilder builder()
Copyright © 2018–2020 Sonatype, Inc.. All rights reserved.