anon.infoservice
Class AbstractDistributableDatabaseEntry
java.lang.Object
anon.infoservice.AbstractDatabaseEntry
anon.infoservice.AbstractDistributableDatabaseEntry
- All Implemented Interfaces:
- IDistributable, IXMLEncodable
- Direct Known Subclasses:
- AbstractDistributableCertifiedDatabaseEntry, JAPMinVersion, JAPVersionInfo, JavaVersionDBEntry, MessageDBEntry
public abstract class AbstractDistributableDatabaseEntry
- extends AbstractDatabaseEntry
- implements IDistributable, IXMLEncodable
This class implements common methods that may be used by distributabe database entries.
- Author:
- Rolf Wendolsky
Method Summary |
static java.lang.String |
getHttpRequestString(java.lang.Class a_xmlEncodableClass)
|
static java.lang.String |
getHttpSerialsRequestString(java.lang.Class a_xmlEncodableClass)
|
byte[] |
getPostData()
This returns the data, which are posted to other InfoServices. |
int |
getPostEncoding()
Returns the content encoding of the post data. |
abstract org.w3c.dom.Element |
getXmlStructure()
Returns the XML structure for this db entry. |
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Creates an XML node for this db entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_ATTR_SERIAL
public static final java.lang.String XML_ATTR_SERIAL
- See Also:
- Constant Field Values
XML_ATTR_VERIFIED
public static final java.lang.String XML_ATTR_VERIFIED
- See Also:
- Constant Field Values
XML_ATTR_VALID
public static final java.lang.String XML_ATTR_VALID
- See Also:
- Constant Field Values
XML_ATTR_LAST_UPDATE
public static final java.lang.String XML_ATTR_LAST_UPDATE
- See Also:
- Constant Field Values
AbstractDistributableDatabaseEntry
public AbstractDistributableDatabaseEntry(long a_expireTime)
getHttpRequestString
public static java.lang.String getHttpRequestString(java.lang.Class a_xmlEncodableClass)
getHttpSerialsRequestString
public static java.lang.String getHttpSerialsRequestString(java.lang.Class a_xmlEncodableClass)
getXmlStructure
public abstract org.w3c.dom.Element getXmlStructure()
- Returns the XML structure for this db entry.
- Returns:
- The XML node of this db entry
getPostData
public byte[] getPostData()
- This returns the data, which are posted to other InfoServices. It's the whole XML structure
of this DBEntry by default but may be overwritten
- Specified by:
getPostData
in interface IDistributable
- Returns:
- The data, which are posted to other InfoServices when this entry is forwarded.
getPostEncoding
public int getPostEncoding()
- Returns the content encoding of the post data.
- Specified by:
getPostEncoding
in interface IDistributable
- Returns:
- the content encoding of the post data
toXmlElement
public final org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
- Creates an XML node for this db entry.
- Specified by:
toXmlElement
in interface IXMLEncodable
- Parameters:
a_doc
- The XML document, which is the environment for the created XML node.
- Returns:
- The db entry XML node or null if an error occured