public class UpdateResult extends Object
UpdateHandler
if
a resource could be persisted by the handler.
The update result always contains the complete url where the
resource has been persisted.
If this url is different from the previous location of this
resource, the getResourceIsMoved()
flag tells the
installer whether the resource has moved to a new location
or if the resource has been additionally added to a new
location (old location contains the old version of
the resource).Constructor and Description |
---|
UpdateResult(String url)
Create an update result
|
Modifier and Type | Method and Description |
---|---|
String |
getDigest()
Return this resource's digest.
|
int |
getPriority()
Return the priority of this resource.
|
String |
getResourceId()
Return just the resource id (everything in the url
after the colon)
|
boolean |
getResourceIsMoved()
Has this resource been moved or added?
|
String |
getScheme()
Return the scheme of the provider.
|
String |
getURL()
Return this data's url.
|
void |
setDigest(String digest)
Set the digest.
|
void |
setPriority(Integer prio)
Set the priority.
|
void |
setResourceIsMoved(boolean flag)
Set whether this resource has been moved or added.
|
String |
toString() |
public UpdateResult(String url)
url
- Unique url for the resource. This should include the scheme!public String getURL()
OsgiInstaller
but should uniquely identify the resource within the namespace of
the used installation mechanism.
The url includes the scheme followed by a colon followed by the unique id.public String getScheme()
public String getResourceId()
public String getDigest()
null
.public int getPriority()
public void setPriority(Integer prio)
prio
- The new priority or null
for the default priority.public void setDigest(String digest)
digest
- The new digest.public void setResourceIsMoved(boolean flag)
flag
- Flag indicating that this is a movepublic boolean getResourceIsMoved()
true
if it has been movedCopyright © 2017 The Apache Software Foundation. All rights reserved.