public static class Serve.AcmeSession extends Hashtable implements javax.servlet.http.HttpSession
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Enumeration |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext()
Returns the ServletContext to which this session belongs.
|
javax.servlet.http.HttpSessionContext |
getSessionContext()
Deprecated.
|
Object |
getValue(String name) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isNew() |
void |
putValue(String name,
Object value) |
void |
removeAttribute(String name) |
void |
removeValue(String name) |
void |
setAttribute(String name,
Object value) |
void |
setListeners(List l) |
void |
setMaxInactiveInterval(int interval) |
void |
setServletContext(javax.servlet.ServletContext sc)
something hack, to update servlet context since session created out of scope
|
public 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 void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext in interface javax.servlet.http.HttpSessionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.http.HttpSessionpublic Object getAttribute(String name) throws IllegalStateException
getAttribute in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic Object getValue(String name) throws IllegalStateException
getValue in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic Enumeration getAttributeNames() throws IllegalStateException
getAttributeNames in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic String[] getValueNames() throws IllegalStateException
getValueNames in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic void setAttribute(String name, Object value) throws IllegalStateException
setAttribute in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic void putValue(String name, Object value) throws IllegalStateException
putValue in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic void removeAttribute(String name) throws IllegalStateException
removeAttribute in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic void removeValue(String name) throws IllegalStateException
removeValue in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic void invalidate()
throws IllegalStateException
invalidate in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic boolean isNew()
throws IllegalStateException
isNew in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic void setListeners(List l)
public void setServletContext(javax.servlet.ServletContext sc)
sc - Copyright © 2015. All Rights Reserved.