public class BasicOsgiBundleWithUrl extends java.lang.Object implements CatalogItem.CatalogBundle, OsgiBundleWithUrl
Constructor and Description |
---|
BasicOsgiBundleWithUrl(OsgiBundleWithUrl b) |
BasicOsgiBundleWithUrl(java.lang.String name,
java.lang.String version,
java.lang.String url) |
BasicOsgiBundleWithUrl(java.lang.String name,
java.lang.String version,
java.lang.String url,
Credentials cred) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getOsgiVersionString()
guaranteed to be in OSGi syntax, or null if name+version not available
|
java.lang.String |
getSuppliedVersionString()
string as defined by caller; not necessarily in OSGi syntax
|
java.lang.String |
getSymbolicName() |
java.lang.String |
getUrl()
where this bundle can be downloaded; typically required unless we are guaranteed the bundle will be manually installed or handled by persistence
|
Credentials |
getUrlCredential() |
VersionedName |
getVersionedName() |
int |
hashCode() |
boolean |
isNameResolved() |
java.lang.String |
toString() |
public BasicOsgiBundleWithUrl(java.lang.String name, java.lang.String version, java.lang.String url)
public BasicOsgiBundleWithUrl(java.lang.String name, java.lang.String version, java.lang.String url, @Nullable Credentials cred)
public BasicOsgiBundleWithUrl(OsgiBundleWithUrl b)
public boolean isNameResolved()
isNameResolved
in interface OsgiBundleWithUrl
public java.lang.String getSymbolicName()
getSymbolicName
in interface OsgiBundleWithUrl
public java.lang.String getSuppliedVersionString()
OsgiBundleWithUrl
getSuppliedVersionString
in interface OsgiBundleWithUrl
public java.lang.String getOsgiVersionString()
OsgiBundleWithUrl
getOsgiVersionString
in interface OsgiBundleWithUrl
public VersionedName getVersionedName()
getVersionedName
in interface OsgiBundleWithUrl
VersionedName
for this bundle, or null if not availablepublic java.lang.String getUrl()
OsgiBundleWithUrl
getUrl
in interface OsgiBundleWithUrl
public Credentials getUrlCredential()
getUrlCredential
in interface OsgiBundleWithUrl
OsgiBundleWithUrl.getUrl()
.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object