01: package de.schlund.pfixxml.perflogging;
02:
03: import java.util.LinkedHashMap;
04:
05: import de.schlund.pfixxml.AbstractXMLServlet;
06: import de.schlund.pfixxml.PfixServletRequest;
07:
08: public class DefaultAdditionalTrailInfoImpl implements
09: AdditionalTrailInfo {
10:
11: public LinkedHashMap<String, Object> getData(PfixServletRequest preq) {
12: Object pptime = preq.getRequest().getAttribute(
13: AbstractXMLServlet.PREPROCTIME);
14: Object doctime = preq.getRequest().getAttribute(
15: AbstractXMLServlet.GETDOMTIME);
16: Object trafotime = preq.getRequest().getAttribute(
17: AbstractXMLServlet.TRAFOTIME);
18:
19: LinkedHashMap<String, Object> retval = new LinkedHashMap<String, Object>();
20: retval.put("GET_DOM", "" + doctime);
21: retval.put("HDL_DOC", "" + trafotime);
22: retval.put("PRE_PROC", "" + pptime);
23: return retval;
24: }
25:
26: public void reset() {
27: // Nothing to do in default impl
28: }
29: }
|