1 package com.macvu.mock.servlet;
2
3 import javax.servlet.http.HttpSession;
4 import javax.servlet.http.HttpSessionContext;
5 import javax.servlet.ServletContext;
6 import java.util.Enumeration;
7
8 /***
9 * Created by IntelliJ IDEA.
10 * User: Mac Vu
11 * Date: Apr 9, 2004
12 * Time: 8:25:54 PM
13 * To change this template use File | Settings | File Templates.
14 */
15 public class MockHttpSession implements HttpSession {
16 public long getCreationTime() {
17 return 0;
18 }
19
20 public String getId() {
21 return null;
22 }
23
24 public long getLastAccessedTime() {
25 return 0;
26 }
27
28 public ServletContext getServletContext() {
29 return null;
30 }
31
32 public void setMaxInactiveInterval(int i) {
33
34 }
35
36 public int getMaxInactiveInterval() {
37 return 0;
38 }
39
40 public HttpSessionContext getSessionContext() {
41 return null;
42 }
43
44 public Object getAttribute(String s) {
45 return null;
46 }
47
48 public Object getValue(String s) {
49 return null;
50 }
51
52 public Enumeration getAttributeNames() {
53 return null;
54 }
55
56 public String[] getValueNames() {
57 return new String[0];
58 }
59
60 public void setAttribute(String s, Object o) {
61
62 }
63
64 public void putValue(String s, Object o) {
65
66 }
67
68 public void removeAttribute(String s) {
69
70 }
71
72 public void removeValue(String s) {
73
74 }
75
76 public void invalidate() {
77
78 }
79
80 public boolean isNew() {
81 return false;
82 }
83 }