1 7 package org.exoplatform.services.portletcontainer.impl.portletAPIImp.pool; 8 9 import java.util.Enumeration ; 10 11 import javax.servlet.ServletContext ; 12 import javax.servlet.http.HttpSession ; 13 import javax.servlet.http.HttpSessionContext ; 14 15 19 public class EmptySession implements HttpSession { 20 21 public long getCreationTime() { 22 return 0; 23 } 24 25 public String getId() { 26 return null; 27 } 28 29 public long getLastAccessedTime() { 30 return 0; 31 } 32 33 public ServletContext 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 getSessionContext() { 45 return null; 46 } 47 48 public Object getAttribute(String arg0) { 49 return null; 50 } 51 52 public Object getValue(String arg0) { 53 return null; 54 } 55 56 public Enumeration getAttributeNames() { 57 return null; 58 } 59 60 public String [] getValueNames() { 61 return null; 62 } 63 64 public void setAttribute(String arg0, Object arg1) { 65 } 66 67 public void putValue(String arg0, Object arg1) { 68 } 69 70 public void removeAttribute(String arg0) { 71 } 72 73 public void removeValue(String arg0) { 74 } 75 76 public void invalidate() { 77 } 78 79 public boolean isNew() { 80 return false; 81 } 82 83 } 84 | Popular Tags |