KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletcontainer > impl > portletAPIImp > pool > EmptySession


1 /*
2  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  *
5  * Created on 1 d�c. 2003
6  */

7 package org.exoplatform.services.portletcontainer.impl.portletAPIImp.pool;
8
9 import java.util.Enumeration JavaDoc;
10
11 import javax.servlet.ServletContext JavaDoc;
12 import javax.servlet.http.HttpSession JavaDoc;
13 import javax.servlet.http.HttpSessionContext JavaDoc;
14
15 /**
16  * @author Mestrallet Benjamin
17  * benjmestrallet@users.sourceforge.net
18  */

19 public class EmptySession implements HttpSession JavaDoc{
20
21   public long getCreationTime() {
22     return 0;
23   }
24
25   public String JavaDoc getId() {
26     return null;
27   }
28
29   public long getLastAccessedTime() {
30     return 0;
31   }
32
33   public ServletContext JavaDoc getServletContext() {
34     return null;
35   }
36
37   public void setMaxInactiveInterval(int arg0) {
38   }
39
40   public int getMaxInactiveInterval() {
41     return 0;
42   }
43
44   public HttpSessionContext JavaDoc getSessionContext() {
45     return null;
46   }
47
48   public Object JavaDoc getAttribute(String JavaDoc arg0) {
49     return null;
50   }
51
52   public Object JavaDoc getValue(String JavaDoc arg0) {
53     return null;
54   }
55
56   public Enumeration JavaDoc getAttributeNames() {
57     return null;
58   }
59
60   public String JavaDoc[] getValueNames() {
61     return null;
62   }
63
64   public void setAttribute(String JavaDoc arg0, Object JavaDoc arg1) {
65   }
66
67   public void putValue(String JavaDoc arg0, Object JavaDoc arg1) {
68   }
69
70   public void removeAttribute(String JavaDoc arg0) {
71   }
72
73   public void removeValue(String JavaDoc arg0) {
74   }
75
76   public void invalidate() {
77   }
78
79   public boolean isNew() {
80     return false;
81   }
82
83 }
84
Popular Tags