KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > terracotta > session > MockWebAppConfig


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.terracotta.session;
5
6 import javax.servlet.http.HttpSessionAttributeListener JavaDoc;
7 import javax.servlet.http.HttpSessionListener JavaDoc;
8
9 public class MockWebAppConfig implements WebAppConfig {
10
11   private String JavaDoc cookieComment;
12   private String JavaDoc cookieDomain;
13   private String JavaDoc cookieName;
14   private String JavaDoc cookiePath;
15   private String JavaDoc serverId;
16   private int cookieMaxAge;
17   private int idLength;
18   private int timeoutSeconds;
19   private boolean cookieSecure;
20   private boolean cookieEnabled;
21   private boolean urlEnabled;
22   private boolean trackingEnabled;
23   private HttpSessionAttributeListener JavaDoc[] attrListeners;
24   private HttpSessionListener JavaDoc[] sessListeners;
25
26   public String JavaDoc __tc_session_getCookieComment() {
27     return cookieComment;
28   }
29
30   public String JavaDoc __tc_session_getCookieDomain() {
31     return cookieDomain;
32   }
33
34   public int __tc_session_getCookieMaxAgeSecs() {
35     return cookieMaxAge;
36   }
37
38   public String JavaDoc __tc_session_getCookieName() {
39     return cookieName;
40   }
41
42   public String JavaDoc __tc_session_getCookiePath() {
43     return cookiePath;
44   }
45
46   public boolean __tc_session_getCookieSecure() {
47     return cookieSecure;
48   }
49
50   public boolean __tc_session_getCookiesEnabled() {
51     return cookieEnabled;
52   }
53
54   public HttpSessionAttributeListener JavaDoc[] __tc_session_getHttpSessionAttributeListeners() {
55     return attrListeners;
56   }
57
58   public HttpSessionListener JavaDoc[] __tc_session_getHttpSessionListener() {
59     return sessListeners;
60   }
61
62   public int __tc_session_getIdLength() {
63     return idLength;
64   }
65
66   public String JavaDoc __tc_session_getServerId() {
67     return serverId;
68   }
69
70   public int __tc_session_getSessionTimeoutSecs() {
71     return timeoutSeconds;
72   }
73
74   public boolean __tc_session_getTrackingEnabled() {
75     return trackingEnabled;
76   }
77
78   public boolean __tc_session_getURLRewritingEnabled() {
79     return urlEnabled;
80   }
81
82   public void setAttrListeners(HttpSessionAttributeListener JavaDoc[] attrListeners) {
83     this.attrListeners = attrListeners;
84   }
85
86   public void setCookieComment(String JavaDoc cookieComment) {
87     this.cookieComment = cookieComment;
88   }
89
90   public void setCookieDomain(String JavaDoc cookieDomain) {
91     this.cookieDomain = cookieDomain;
92   }
93
94   public void setCookieEnabled(boolean cookieEnabled) {
95     this.cookieEnabled = cookieEnabled;
96   }
97
98   public void setCookieMaxAge(int cookieMaxAge) {
99     this.cookieMaxAge = cookieMaxAge;
100   }
101
102   public void setCookieName(String JavaDoc cookieName) {
103     this.cookieName = cookieName;
104   }
105
106   public void setCookiePath(String JavaDoc cookiePath) {
107     this.cookiePath = cookiePath;
108   }
109
110   public void setCookieSecure(boolean cookieSecure) {
111     this.cookieSecure = cookieSecure;
112   }
113
114   public void setIdLength(int idLength) {
115     this.idLength = idLength;
116   }
117
118   public void setServerId(String JavaDoc serverId) {
119     this.serverId = serverId;
120   }
121
122   public void setSessListeners(HttpSessionListener JavaDoc[] sessListeners) {
123     this.sessListeners = sessListeners;
124   }
125
126   public void setTimeoutSeconds(int timeoutSeconds) {
127     this.timeoutSeconds = timeoutSeconds;
128   }
129
130   public void setTrackingEnabled(boolean trackingEnabled) {
131     this.trackingEnabled = trackingEnabled;
132   }
133
134   public void setUrlEnabled(boolean urlEnabled) {
135     this.urlEnabled = urlEnabled;
136   }
137
138 }
139
Popular Tags