anon.infoservice
Class MessageDBEntry
java.lang.Object
anon.infoservice.AbstractDatabaseEntry
anon.infoservice.AbstractDistributableDatabaseEntry
anon.infoservice.MessageDBEntry
- All Implemented Interfaces:
- IDistributable, anon.util.IXMLEncodable
public class MessageDBEntry
- extends AbstractDistributableDatabaseEntry
- implements IDistributable
Used to send messages to JAP.
- Author:
- Rolf Wendolsky
| Fields inherited from interface anon.util.IXMLEncodable |
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_VERSION |
|
Method Summary |
int |
getExternalIdentifier()
|
java.lang.String |
getId()
Returns a unique ID for a database entry. |
long |
getLastUpdate()
Returns the time in milliseconds when this db entry was created from the origin instance. |
java.lang.String |
getPopupText(java.util.Locale a_locale)
|
java.lang.String |
getPostFile()
Returns the filename (InfoService command) to which the data of this entry is posted at the
other infoservice. |
java.lang.String |
getText(java.util.Locale a_locale)
|
java.net.URL |
getURL(java.util.Locale a_locale)
|
long |
getVersionNumber()
Returns version number which is used to determine the more recent infoservice entry, if two
entries are compared (higher version number -> more recent entry). |
org.w3c.dom.Element |
getXmlStructure()
Returns the XML structure for this db entry. |
boolean |
isDummy()
|
boolean |
isForFreeCascadesOnly()
|
boolean |
isPopupShown()
|
void |
setExternalIdentifier(int a_identifier)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_ELEMENT_CONTAINER_NAME
public static final java.lang.String XML_ELEMENT_CONTAINER_NAME
- See Also:
- Constant Field Values
XML_ELEMENT_NAME
public static final java.lang.String XML_ELEMENT_NAME
- See Also:
- Constant Field Values
HTTP_REQUEST_STRING
public static final java.lang.String HTTP_REQUEST_STRING
- See Also:
- Constant Field Values
HTTP_SERIALS_REQUEST_STRING
public static final java.lang.String HTTP_SERIALS_REQUEST_STRING
- See Also:
- Constant Field Values
PROPERTY_NAME
public static final java.lang.String PROPERTY_NAME
- See Also:
- Constant Field Values
POST_FILE
public static final java.lang.String POST_FILE
- See Also:
- Constant Field Values
MessageDBEntry
public MessageDBEntry(org.w3c.dom.Element a_xmlElement)
throws anon.util.XMLParseException,
java.security.SignatureException
- Throws:
anon.util.XMLParseException
java.security.SignatureException
getURL
public java.net.URL getURL(java.util.Locale a_locale)
getText
public java.lang.String getText(java.util.Locale a_locale)
getPopupText
public java.lang.String getPopupText(java.util.Locale a_locale)
getExternalIdentifier
public int getExternalIdentifier()
setExternalIdentifier
public void setExternalIdentifier(int a_identifier)
isPopupShown
public boolean isPopupShown()
isForFreeCascadesOnly
public boolean isForFreeCascadesOnly()
isDummy
public boolean isDummy()
getVersionNumber
public long getVersionNumber()
- Description copied from class:
AbstractDatabaseEntry
- Returns version number which is used to determine the more recent infoservice entry, if two
entries are compared (higher version number -> more recent entry).
Never (!) insert the local creation time here, as this will DoS the InfoServices in an endless loop.
- Specified by:
getVersionNumber in class AbstractDatabaseEntry
- Returns:
- The version number for this entry.
getId
public java.lang.String getId()
- Description copied from class:
AbstractDatabaseEntry
- Returns a unique ID for a database entry.
- Specified by:
getId in interface IDistributable- Specified by:
getId in class AbstractDatabaseEntry
- Returns:
- The ID of this database entry.
getPostFile
public java.lang.String getPostFile()
- Description copied from interface:
IDistributable
- Returns the filename (InfoService command) to which the data of this entry is posted at the
other infoservice.
- Specified by:
getPostFile in interface IDistributable
- Returns:
- The filename, where the data is posted when this entry is forwarded.
getLastUpdate
public long getLastUpdate()
- Description copied from class:
AbstractDatabaseEntry
- Returns the time in milliseconds when this db entry was created from the origin instance.
Never (!) insert the local creation time here, as this will DoS the InfoServices in an endless loop.
- Specified by:
getLastUpdate in class AbstractDatabaseEntry
- Returns:
- the time in milliseconds when this db entry was created from the origin instance
getXmlStructure
public org.w3c.dom.Element getXmlStructure()
- Description copied from class:
AbstractDistributableDatabaseEntry
- Returns the XML structure for this db entry.
- Specified by:
getXmlStructure in class AbstractDistributableDatabaseEntry
- Returns:
- The XML node of this db entry