pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.service.request
Class MetaData

java.lang.Object
  extended by org.torweg.pulse.service.request.MetaData
All Implemented Interfaces:
JDOMable

public class MetaData
extends java.lang.Object
implements JDOMable

a container for per request meta-data.

Version:
$Revision: 1953 $
Author:
Thomas Weber

Constructor Summary
MetaData(ServiceRequest req)
          creates a new MetaData based on the given ServiceRequest.
MetaData(ServiceRequest req, java.lang.Throwable e, java.lang.String msg)
          creates a new MetaData based on the given ServiceRequest and Exception.
 
Method Summary
 void addException(java.lang.Throwable e, java.lang.String msg)
          adds an Exception to the meta-data.
 org.jdom.Element deserializeToJDOM()
          this will deserialize the state of the JDOMable as a JDOM Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaData

public MetaData(ServiceRequest req)
creates a new MetaData based on the given ServiceRequest.

Parameters:
req - the ServiceRequest whose meta-data is collected

MetaData

public MetaData(ServiceRequest req,
                java.lang.Throwable e,
                java.lang.String msg)
creates a new MetaData based on the given ServiceRequest and Exception.

Parameters:
req - the ServiceRequest whose meta-data is collected
e - the Exception
msg - the exception message
Method Detail

addException

public final void addException(java.lang.Throwable e,
                               java.lang.String msg)
adds an Exception to the meta-data.

Parameters:
e - the exception
msg - the exception message

deserializeToJDOM

public final org.jdom.Element deserializeToJDOM()
Description copied from interface: JDOMable
this will deserialize the state of the JDOMable as a JDOM Element.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
the meta-data collected as an Element.
See Also:
JDOMable.deserializeToJDOM()