public class UpdateSite extends Object implements Cloneable, Comparable<UpdateSite>
An update site is a set of files served by a web server that conforms to a certain set of rules defined by the ImageJ updater: a db.xml.gz file in the root directory contains detailed information about available file versions, past file versions, descriptions, authors, links, etc.
Constructor and Description |
---|
UpdateSite(String name,
String url,
String sshHost,
String uploadDirectory,
String description,
String maintainer,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
compareTo(UpdateSite other) |
boolean |
equals(Object other) |
static String |
format(String url) |
String |
getDescription() |
String |
getHost() |
String |
getMaintainer() |
String |
getName() |
int |
getRank() |
long |
getTimestamp() |
String |
getUploadDirectory() |
String |
getUploadProtocol() |
String |
getURL() |
int |
hashCode() |
boolean |
isActive() |
boolean |
isLastModified(long lastModified) |
boolean |
isOfficial()
Gets whether the site is one of those listed on the canonical list of update
sites.
|
boolean |
isUploadable() |
void |
setActive(boolean active) |
void |
setDescription(String description) |
void |
setHost(String host) |
void |
setKeepURL(boolean keepURL) |
void |
setLastModified(long lastModified) |
void |
setMaintainer(String maintainer) |
void |
setName(String name) |
void |
setOfficial(boolean official)
Sets the flag indicating whether the site is listed on the canonical list of update
sites.
|
void |
setTimestamp(long timestamp) |
void |
setUploadDirectory(String uploadDirectory) |
void |
setURL(String url) |
boolean |
shouldKeepURL() |
String |
toString() |
public boolean isActive()
public void setActive(boolean active)
public boolean isOfficial()
public void setOfficial(boolean official)
public String getName()
public void setName(String name)
public String getURL()
public void setURL(String url)
public String getHost()
public void setHost(String host)
public String getUploadDirectory()
public void setUploadDirectory(String uploadDirectory)
public String getDescription()
public void setDescription(String description)
public String getMaintainer()
public void setMaintainer(String maintainer)
public long getTimestamp()
public void setTimestamp(long timestamp)
public int getRank()
public boolean isLastModified(long lastModified)
public void setLastModified(long lastModified)
public boolean isUploadable()
public int compareTo(UpdateSite other)
compareTo
in interface Comparable<UpdateSite>
public String getUploadProtocol()
public boolean shouldKeepURL()
public void setKeepURL(boolean keepURL)
Copyright © 2014–2022 ImageJ. All rights reserved.