1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sourceforge.statelessfilter.session;
17
18 import java.io.Serializable;
19 import java.util.Map;
20 import java.util.concurrent.ConcurrentHashMap;
21
22 import net.sourceforge.statelessfilter.backend.ISessionData;
23
24
25
26
27
28
29
30 public class SessionData implements ISessionData, Serializable {
31 private static final long serialVersionUID = -8150387390531508793L;
32 Map<String, Object> content = new ConcurrentHashMap<String, Object>();
33 long creationTime;
34 String id;
35 long requestId;
36 boolean valid;
37
38
39
40
41 public SessionData() {
42
43 }
44
45
46
47
48 public Map<String, Object> getContent() {
49 return content;
50 }
51
52
53
54
55 public long getCreationTime() {
56 return creationTime;
57 }
58
59
60
61
62 public String getId() {
63 return id;
64 }
65
66
67
68
69 public long getRequestId() {
70 return requestId;
71 }
72
73
74
75
76 public boolean isValid() {
77 return valid;
78 }
79
80
81
82
83
84
85 public void setContent(Map<String, Object> content) {
86 this.content = new ConcurrentHashMap<String, Object>(content);
87 }
88
89
90
91
92
93
94 public void setCreationTime(long creationTime) {
95 this.creationTime = creationTime;
96 }
97
98
99
100
101
102
103 public void setId(String id) {
104 this.id = id;
105 }
106
107
108
109
110
111
112
113 public void setRequestId(long requestId) {
114 this.requestId = requestId;
115 }
116
117
118
119
120
121
122 public void setValid(boolean valid) {
123 this.valid = valid;
124 }
125 }