public class MockHttpSession extends Object implements javax.servlet.http.HttpSession
| Constructor and Description |
|---|
MockHttpSession() |
MockHttpSession(String id) |
MockHttpSession(String id,
javax.servlet.ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
access() |
Object |
getAttribute(String name) |
Enumeration<String> |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext() |
Object |
getValue(String name) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isInvalid() |
boolean |
isNew() |
void |
putValue(String name,
Object value) |
void |
removeAttribute(String name) |
void |
removeValue(String name) |
void |
setAttribute(String name,
Object value) |
void |
setMaxInactiveInterval(int seconds) |
public MockHttpSession()
public MockHttpSession(String id)
public MockHttpSession(String id, javax.servlet.ServletContext servletContext)
public Object getAttribute(String name)
getAttribute in interface javax.servlet.http.HttpSessionpublic Enumeration<String> getAttributeNames()
getAttributeNames in interface javax.servlet.http.HttpSessionpublic long getCreationTime()
getCreationTime in interface javax.servlet.http.HttpSessionpublic String getId()
getId in interface javax.servlet.http.HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface javax.servlet.http.HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.http.HttpSessionpublic javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext in interface javax.servlet.http.HttpSessionpublic Object getValue(String name)
getValue in interface javax.servlet.http.HttpSessionpublic String[] getValueNames()
getValueNames in interface javax.servlet.http.HttpSessionpublic void invalidate()
invalidate in interface javax.servlet.http.HttpSessionpublic boolean isNew()
isNew in interface javax.servlet.http.HttpSessionpublic void putValue(String name, Object value)
putValue in interface javax.servlet.http.HttpSessionpublic void removeAttribute(String name)
removeAttribute in interface javax.servlet.http.HttpSessionpublic void removeValue(String name)
removeValue in interface javax.servlet.http.HttpSessionpublic void setAttribute(String name, Object value)
setAttribute in interface javax.servlet.http.HttpSessionpublic void setMaxInactiveInterval(int seconds)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic boolean isInvalid()
public void access()
Copyright © 2017 JBoss by Red Hat. All rights reserved.