public class MockHttpSession
extends java.lang.Object
implements javax.servlet.http.HttpSession
Constructor and Description |
---|
MockHttpSession(javax.servlet.ServletContext context) |
MockHttpSession(javax.servlet.ServletContext context,
java.util.HashMap attributeMap) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name) |
java.util.Enumeration |
getAttributeNames() |
long |
getCreationTime() |
java.lang.String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext() |
java.lang.Object |
getValue(java.lang.String arg0) |
java.lang.String[] |
getValueNames() |
void |
invalidate() |
boolean |
isNew() |
void |
putValue(java.lang.String arg0,
java.lang.Object arg1) |
void |
removeAttribute(java.lang.String name) |
void |
removeValue(java.lang.String arg0) |
void |
setAttribute(java.lang.String name,
java.lang.Object o) |
void |
setMaxInactiveInterval(int arg0) |
public MockHttpSession(javax.servlet.ServletContext context)
public MockHttpSession(javax.servlet.ServletContext context, java.util.HashMap attributeMap)
public java.lang.String getId()
getId
in interface javax.servlet.http.HttpSession
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.http.HttpSession
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface javax.servlet.http.HttpSession
public void setAttribute(java.lang.String name, java.lang.Object o)
setAttribute
in interface javax.servlet.http.HttpSession
public void removeAttribute(java.lang.String name)
removeAttribute
in interface javax.servlet.http.HttpSession
public java.util.Enumeration getAttributeNames()
getAttributeNames
in interface javax.servlet.http.HttpSession
public long getCreationTime()
getCreationTime
in interface javax.servlet.http.HttpSession
public long getLastAccessedTime()
getLastAccessedTime
in interface javax.servlet.http.HttpSession
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface javax.servlet.http.HttpSession
public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext
in interface javax.servlet.http.HttpSession
public java.lang.Object getValue(java.lang.String arg0)
getValue
in interface javax.servlet.http.HttpSession
public java.lang.String[] getValueNames()
getValueNames
in interface javax.servlet.http.HttpSession
public void invalidate()
invalidate
in interface javax.servlet.http.HttpSession
public boolean isNew()
isNew
in interface javax.servlet.http.HttpSession
public void putValue(java.lang.String arg0, java.lang.Object arg1)
putValue
in interface javax.servlet.http.HttpSession
public void removeValue(java.lang.String arg0)
removeValue
in interface javax.servlet.http.HttpSession
public void setMaxInactiveInterval(int arg0)
setMaxInactiveInterval
in interface javax.servlet.http.HttpSession
Copyright © 2001-2010 Jalios SA. All Rights Reserved.