01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.terracotta.session.util;
05:
06: import com.terracotta.session.SessionId;
07:
08: public class MockIdGenerator implements SessionIdGenerator {
09:
10: private SessionId id;
11:
12: public MockIdGenerator(SessionId id) {
13: this .id = id;
14: }
15:
16: public SessionId generateNewId() {
17: return id;
18: }
19:
20: public SessionId makeInstanceFromBrowserId(String requestedSessionId) {
21: return id;
22: }
23:
24: public SessionId makeInstanceFromInternalKey(String key) {
25: return id;
26: }
27:
28: }
|