public class JAPMinVersion extends AbstractDistributableDatabaseEntry
AbstractDistributableDatabaseEntry.SerialDBEntry, AbstractDistributableDatabaseEntry.Serials| Modifier and Type | Field and Description |
|---|---|
private static long |
DATABASE_TIMEOUT
The timeout for minimum JAP version information in the database.
|
static java.lang.String |
DEFAULT_ID |
private byte[] |
m_bytesPostData
The same as above as byte[]
|
private ServiceSoftware |
m_japSoftware
Stores the included ServiceSoftware information.
|
private long |
m_lastUpdate
Time (see System.currentTimeMillis()) when the root-of-update information infoservice has
propagated this minimum version info.
|
private org.w3c.dom.Element |
m_xmlStructure
Stores the XML structure of this JAPVersionInfo.
|
XML_ATTR_LAST_UPDATE, XML_ATTR_SERIAL, XML_ATTR_VALID, XML_ATTR_VERIFIEDXML_LAST_UPDATEFIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRINGFIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION| Constructor and Description |
|---|
JAPMinVersion(org.w3c.dom.Element a_japRootNode)
Creates a new JAPMinVersion from XML description received from remote infoservice or local
filesystem.
|
JAPMinVersion(java.io.File a_fileRootNode)
Creates a new JAPMinVersion from XML description load from local filesystem.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns the ID for this JAPMinVersion instance.
|
ServiceSoftware |
getJapSoftware()
Returns the included ServiceSoftware information about the minimum required JAP software
version.
|
long |
getLastUpdate()
Returns the time in milliseconds when this db entry was created from the origin instance.
|
byte[] |
getPostData()
This returns the data, which are posted to other InfoServices.
|
java.lang.String |
getPostFile()
This returns the filename (InfoService command), where this JAP minimum required version
information is posted at other InfoServices, It's always '/currentjapversion'.
|
long |
getVersionNumber()
Returns the time when this mimimum 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 of this minimum version info entry.
|
getHttpRequestString, getHttpSerialsRequestString, getPostEncoding, toXmlElementdeletePersistence, getCreationTime, getExpireTime, isNewerThan, isPersistanceDeletionAllowed, isUserDefined, resetCreationTime, setExpireTimepublic static final java.lang.String DEFAULT_ID
private static final long DATABASE_TIMEOUT
private ServiceSoftware m_japSoftware
private long m_lastUpdate
private org.w3c.dom.Element m_xmlStructure
private byte[] m_bytesPostData
public JAPMinVersion(java.io.File a_fileRootNode)
throws java.lang.Exception
a_fileJapMinVersion - The XML file containing the root node of the XML structure of this JAPMinVersion ('Jap' node).java.lang.Exceptionpublic JAPMinVersion(org.w3c.dom.Element a_japRootNode)
throws java.lang.Exception
a_japRootNode - The root node of the XML structure of this JAPMinVersion ('Jap' node).java.lang.Exceptionpublic static java.lang.String getXmlElementName()
public java.lang.String getId()
getId in interface IDistributablegetId in class AbstractDatabaseEntrypublic long getLastUpdate()
AbstractDatabaseEntrygetLastUpdate in class AbstractDatabaseEntrypublic long getVersionNumber()
getVersionNumber in class AbstractDatabaseEntrypublic ServiceSoftware getJapSoftware()
public java.lang.String getPostFile()
public org.w3c.dom.Element getXmlStructure()
getXmlStructure in class AbstractDistributableDatabaseEntrypublic byte[] getPostData()
AbstractDistributableDatabaseEntrygetPostData in interface IDistributablegetPostData in class AbstractDistributableDatabaseEntryCopyright © 2023. All rights reserved.