1 4 package com.terracotta.session.util; 5 6 import com.terracotta.session.WebAppConfig; 7 8 import javax.servlet.http.HttpSessionAttributeListener ; 9 import javax.servlet.http.HttpSessionListener ; 10 11 public class DefaultWebAppConfig implements WebAppConfig { 12 13 private final int sessTimeoutSeconds; 14 private final HttpSessionAttributeListener [] attrList; 15 private final HttpSessionListener [] sessList; 16 17 public DefaultWebAppConfig(final int sessTimeoutSeconds, final HttpSessionAttributeListener [] attrList, final HttpSessionListener [] sessList) { 18 this.sessTimeoutSeconds = sessTimeoutSeconds; 19 this.attrList = attrList; 20 this.sessList = sessList; 21 } 22 23 public String __tc_session_getCookieComment() { 24 return null; 25 } 26 27 public String __tc_session_getCookieDomain() { 28 return null; 29 } 30 31 public int __tc_session_getCookieMaxAgeSecs() { 32 return -1; 33 } 34 35 public String __tc_session_getCookieName() { 36 return null; 37 } 38 39 public String __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 [] __tc_session_getHttpSessionAttributeListeners() { 52 return attrList; 53 } 54 55 public HttpSessionListener [] __tc_session_getHttpSessionListener() { 56 return sessList; 57 } 58 59 public int __tc_session_getIdLength() { 60 return -1; 61 } 62 63 public String __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 |