blob: e1b2ae0467bb34a385ac617732eb4f56b74183c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
package nginx.unit;
import javax.servlet.SessionCookieConfig;
/*
<session-config>
<session-timeout>60</session-timeout>
<cookie-config></cookie-config>
<tracking-mode></tracking-mode>
</session-config>
*/
public class UnitSessionCookieConfig implements SessionCookieConfig {
private static final String default_name = "JSESSIONID";
private String name = default_name;
private String domain;
private String path;
private String comment;
private boolean httpOnly = true;
private boolean secure = false;
private int maxAge = -1;
@Override
public void setName(String name)
{
this.name = name;
}
@Override
public String getName()
{
return name;
}
@Override
public void setDomain(String domain)
{
this.domain = domain;
}
@Override
public String getDomain()
{
return domain;
}
@Override
public void setPath(String path)
{
this.path = path;
}
@Override
public String getPath()
{
return path;
}
@Override
public void setComment(String comment)
{
this.comment = comment;
}
@Override
public String getComment()
{
return comment;
}
@Override
public void setHttpOnly(boolean httpOnly)
{
this.httpOnly = httpOnly;
}
@Override
public boolean isHttpOnly()
{
return httpOnly;
}
@Override
public void setSecure(boolean secure)
{
this.secure = secure;
}
@Override
public boolean isSecure()
{
return secure;
}
@Override
public void setMaxAge(int maxAge)
{
this.maxAge = maxAge;
}
@Override
public int getMaxAge()
{
return maxAge;
}
}
|