KickJava   Java API By Example, From Geeks To Geeks.

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


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.tc.exception.ImplementMe;
7 import com.terracotta.session.util.ContextMgr;
8
9 import javax.servlet.ServletContext JavaDoc;
10 import javax.servlet.http.HttpSessionContext JavaDoc;
11
12 public class MockContextMgr implements ContextMgr {
13
14   public ServletContext JavaDoc getServletContext() {
15     throw new ImplementMe();
16   }
17
18   public HttpSessionContext JavaDoc getSessionContext() {
19     throw new ImplementMe();
20   }
21
22   public String JavaDoc getAppName() {
23     return null;
24   }
25 }
26
Popular Tags