KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > terracotta > session > util > DefaultWebAppConfig


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.util;
5
6 import com.terracotta.session.WebAppConfig;
7
8 import javax.servlet.http.HttpSessionAttributeListener JavaDoc;
9 import javax.servlet.http.HttpSessionListener JavaDoc;
10
11 public class DefaultWebAppConfig implements WebAppConfig {
12
13   private final int sessTimeoutSeconds;
14   private final HttpSessionAttributeListener JavaDoc[] attrList;
15   private final HttpSessionListener JavaDoc[] sessList;
16
17   public DefaultWebAppConfig(final int sessTimeoutSeconds, final HttpSessionAttributeListener JavaDoc[] attrList, final HttpSessionListener JavaDoc[] sessList) {
18     this.sessTimeoutSeconds = sessTimeoutSeconds;
19     this.attrList = attrList;
20     this.sessList = sessList;
21   }
22
23   public String JavaDoc __tc_session_getCookieComment() {
24     return null;
25   }
26
27   public String JavaDoc __tc_session_getCookieDomain() {
28     return null;
29   }
30
31   public int __tc_session_getCookieMaxAgeSecs() {
32     return -1;
33   }
34
35   public String JavaDoc __tc_session_getCookieName() {
36     return null;
37   }
38
39   public String JavaDoc __tc_session_getCookiePath() {
40     return null;
41   }
42
43   public boolean __tc_session_getCookieSecure() {
44     return false;
45   }
46
47   public boolean __tc_session_getCookiesEnabled() {
48     return true;
49   }
50
51   public HttpSessionAttributeListener JavaDoc[] __tc_session_getHttpSessionAttributeListeners() {
52     return attrList;
53   }
54
55   public HttpSessionListener JavaDoc[] __tc_session_getHttpSessionListener() {
56     return sessList;
57   }
58
59   public int __tc_session_getIdLength() {
60     return -1;
61   }
62
63   public String JavaDoc __tc_session_getServerId() {
64     return null;
65   }
66
67   public int __tc_session_getSessionTimeoutSecs() {
68     return sessTimeoutSeconds;
69   }
70
71   public boolean __tc_session_getTrackingEnabled() {
72     return true;
73   }
74
75   public boolean __tc_session_getURLRewritingEnabled() {
76     return true;
77   }
78
79 }
80
Popular Tags