public class JAPVersionInfo extends AbstractDistributableDatabaseEntry
AbstractDistributableDatabaseEntry.SerialDBEntry, AbstractDistributableDatabaseEntry.Serials
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_BETA |
static java.lang.String |
ID_STABLE |
static int |
JAP_DEVELOPMENT_VERSION
Describes a JAP development version.
|
static int |
JAP_RELEASE_VERSION
Describes a JAP release version.
|
XML_ATTR_LAST_UPDATE, XML_ATTR_SERIAL, XML_ATTR_VALID, XML_ATTR_VERIFIED
XML_LAST_UPDATE
FIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRING
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Constructor and Description |
---|
JAPVersionInfo(org.w3c.dom.Element a_jnlpRootNode,
int a_versionInfoType)
Creates a new JAP version info out of a JNLP file.
|
Modifier and Type | Method and Description |
---|---|
java.net.URL[] |
getCodeBase()
Returns the URLs of the servers, where the corresponding JAP software can
be downloaded from.
|
java.util.Date |
getDate()
Returns the release date of the JAP software described in this version
info structure.
|
java.lang.String |
getId()
Returns the ID of this version information.
|
java.lang.String |
getJAPJarFileName()
Returns the filename of the JAP file on the download server.
|
java.lang.String |
getJapVersion()
Returns the JAP software version described by this version info
structure.
|
long |
getLastUpdate()
Returns the time in milliseconds when this db entry was created from the origin instance.
|
java.lang.String |
getPostFile()
This returns the filename (InfoService command), where this
JAPVersionInfo entry is posted at other InfoServices.
|
static JAPVersionInfo |
getRecommendedUpdate(java.lang.String a_currentVersion,
boolean a_bStable) |
java.lang.String |
getSupportedJavaVersion() |
long |
getVersionNumber()
Returns the time when this version information was created by the
root-of-update-information infoservice.
|
static java.lang.String |
getXmlElementName()
Returns the name of the XML root element used by this class.
|
org.w3c.dom.Element |
getXmlStructure()
Returns the XML structure for this version info entry.
|
boolean |
isIncrementalAllowed(int a_source) |
boolean |
isJavaVersionStillSupported() |
getHttpRequestString, getHttpSerialsRequestString, getPostData, getPostEncoding, toXmlElement
deletePersistence, getCreationTime, getExpireTime, isNewerThan, isPersistanceDeletionAllowed, isUserDefined, resetCreationTime, setExpireTime
public static final java.lang.String ID_BETA
public static final java.lang.String ID_STABLE
public static final int JAP_RELEASE_VERSION
public static final int JAP_DEVELOPMENT_VERSION
public JAPVersionInfo(org.w3c.dom.Element a_jnlpRootNode, int a_versionInfoType) throws java.lang.Exception
a_jnlpRootNode
- The root node of the JNLP document.a_versionInfoType
- The type of the JAPVersionInfo (release / development), see the
constants in this class.java.lang.Exception
public static java.lang.String getXmlElementName()
public static JAPVersionInfo getRecommendedUpdate(java.lang.String a_currentVersion, boolean a_bStable)
public boolean isJavaVersionStillSupported()
public java.lang.String getSupportedJavaVersion()
public java.lang.String getId()
getId
in interface IDistributable
getId
in class AbstractDatabaseEntry
public long getVersionNumber()
getVersionNumber
in class AbstractDatabaseEntry
public long getLastUpdate()
AbstractDatabaseEntry
getLastUpdate
in class AbstractDatabaseEntry
public java.lang.String getJapVersion()
public java.util.Date getDate()
public java.net.URL[] getCodeBase()
public boolean isIncrementalAllowed(int a_source)
public java.lang.String getJAPJarFileName()
public java.lang.String getPostFile()
public org.w3c.dom.Element getXmlStructure()
getXmlStructure
in class AbstractDistributableDatabaseEntry
Copyright © 2023. All rights reserved.