01: /**
02: *
03: */package clime.messadmin.clickstream;
04:
05: import java.io.Serializable;
06: import java.util.Date;
07:
08: import clime.messadmin.model.ErrorData;
09:
10: /**
11: * @author Cédrik LIME
12: */
13: public class HttpRequestInfo implements Serializable {
14: public String url;
15: public long requestDate = -1;// java.util.Date;
16: public int usedTime = -1;//milliseconds
17: public ErrorData error;
18:
19: /**
20: *
21: */
22: public HttpRequestInfo(String url) {
23: super ();
24: this .url = url;
25: }
26:
27: /**
28: * {@inheritDoc}
29: */
30: public String getURL() {
31: return url;
32: }
33:
34: /**
35: * {@inheritDoc}
36: */
37: public ErrorData getError() {
38: return error;
39: }
40:
41: /**
42: * {@inheritDoc}
43: */
44: public Date getRequestDate() {
45: return new Date(requestDate);
46: }
47:
48: /**
49: * {@inheritDoc}
50: */
51: public int getUsedTime() {
52: return usedTime;
53: }
54:
55: }
|