|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.infoservice.AbstractDatabaseEntry anon.infoservice.AbstractDistributableDatabaseEntry anon.infoservice.JAPVersionInfo
public class JAPVersionInfo
This stores the version information about the current JAP release or development version.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class anon.infoservice.AbstractDistributableDatabaseEntry |
---|
AbstractDistributableDatabaseEntry.SerialDBEntry, AbstractDistributableDatabaseEntry.Serials |
Field Summary | |
---|---|
private static long |
DATABASE_TIMEOUT
The timeout for JAP version information in the database. |
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. |
private java.net.URL |
m_codeBase
Stores the URL of the server, where the corresponding JAP software can be downloaded from. |
private java.lang.String |
m_jarFileName
Stores the filename of the where the corresponding JAP software is available on the server. |
private java.lang.String |
m_lastSupportedJavaVersion
|
private long |
m_lastUpdate
Time (see System.currentTimeMillis()) when the root-of-update information infoservice has propagated this version info. |
private java.util.Date |
m_releaseDate
Stores release date of the described JAP version. |
private java.lang.String |
m_version
Stores the version number of the described JAP version. |
private int |
m_versionInfoType
Stores whether this is the version info for the development version or the release version. |
private org.w3c.dom.Element |
m_xmlStructure
Stores the XML structure of this JAPVersionInfo. |
Fields inherited from class anon.infoservice.AbstractDistributableDatabaseEntry |
---|
XML_ATTR_LAST_UPDATE, XML_ATTR_SERIAL, XML_ATTR_VALID, XML_ATTR_VERIFIED |
Fields inherited from class anon.infoservice.AbstractDatabaseEntry |
---|
XML_LAST_UPDATE |
Fields inherited from interface anon.infoservice.IDistributable |
---|
FIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRING |
Fields inherited from interface anon.util.IXMLEncodable |
---|
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION |
Constructor Summary | |
---|---|
JAPVersionInfo(org.w3c.dom.Element a_jnlpRootNode,
int a_versionInfoType)
Creates a new JAP version info out of a JNLP file. |
Method Summary | |
---|---|
java.net.URL |
getCodeBase()
Returns the URL of the server, 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 |
isJavaVersionStillSupported()
|
Methods inherited from class anon.infoservice.AbstractDistributableDatabaseEntry |
---|
getHttpRequestString, getHttpSerialsRequestString, getPostData, getPostEncoding, toXmlElement |
Methods inherited from class anon.infoservice.AbstractDatabaseEntry |
---|
deletePersistence, getCreationTime, getExpireTime, isNewerThan, isPersistanceDeletionAllowed, isUserDefined, resetCreationTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
private static final long DATABASE_TIMEOUT
private int m_versionInfoType
private java.lang.String m_version
private java.util.Date m_releaseDate
private java.lang.String m_jarFileName
private java.net.URL m_codeBase
private java.lang.String m_lastSupportedJavaVersion
private long m_lastUpdate
private org.w3c.dom.Element m_xmlStructure
Constructor Detail |
---|
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
Method Detail |
---|
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 java.lang.String getJAPJarFileName()
public java.lang.String getPostFile()
public org.w3c.dom.Element getXmlStructure()
getXmlStructure
in class AbstractDistributableDatabaseEntry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |