|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.iscream.cms.server.dbinterface.XMLPacketWrapper
Wraps an XMLPacket, an XML String, and a time in a single Object.
Field Summary | |
private String |
_name
This is the friendly identifier of the component this class is running in. |
private XMLPacket |
_packet
The XMLPacket version of the _xml String. |
private long |
_timestamp
A timestamp at which the XML data was received by the DBInterface section of the server. |
private String |
_xml
The String of XML date this object represents. |
private static XMLCache |
_xmlCache
A reference to the XMLCache in use |
static String |
REVISION
The current CVS revision of this class |
Constructor Summary | |
XMLPacketWrapper(String xml)
Constructs an XMLPacketWrapper on the given XML data. |
Method Summary | |
long |
getTimestamp()
Returns the timestamp of when this XML was received. |
String |
getXML()
Returns the XML data as a raw String. |
XMLPacket |
getXMLPacket()
Returns the XML data as an XMLPacket Object. |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String REVISION
private XMLPacket _packet
private String _xml
private long _timestamp
private String _name
private static XMLCache _xmlCache
Constructor Detail |
public XMLPacketWrapper(String xml) throws InvalidXMLException
InvalidXMLException
- if the xml is not validMethod Detail |
public String toString()
Object.toString()
method to provide clean logging (every class should have this).
This uses the uk.ac.ukc.iscream.util.FormatName class
to format the toString()
toString
in class Object
public XMLPacket getXMLPacket()
public String getXML()
public long getTimestamp()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |