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.HttpSession
public String getId()
getId
in interface javax.servlet.http.HttpSession
public long getLastAccessedTime()
getLastAccessedTime
in interface javax.servlet.http.HttpSession
public void setMaxInactiveInterval(int interval)
setMaxInactiveInterval
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 javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.http.HttpSession
public Object getAttribute(String name) throws IllegalStateException
getAttribute
in interface javax.servlet.http.HttpSession
IllegalStateException
public Object getValue(String name) throws IllegalStateException
getValue
in interface javax.servlet.http.HttpSession
IllegalStateException
public Enumeration getAttributeNames() throws IllegalStateException
getAttributeNames
in interface javax.servlet.http.HttpSession
IllegalStateException
public String[] getValueNames() throws IllegalStateException
getValueNames
in interface javax.servlet.http.HttpSession
IllegalStateException
public void setAttribute(String name, Object value) throws IllegalStateException
setAttribute
in interface javax.servlet.http.HttpSession
IllegalStateException
public void putValue(String name, Object value) throws IllegalStateException
putValue
in interface javax.servlet.http.HttpSession
IllegalStateException
public void removeAttribute(String name) throws IllegalStateException
removeAttribute
in interface javax.servlet.http.HttpSession
IllegalStateException
public void removeValue(String name) throws IllegalStateException
removeValue
in interface javax.servlet.http.HttpSession
IllegalStateException
public void invalidate() throws IllegalStateException
invalidate
in interface javax.servlet.http.HttpSession
IllegalStateException
public boolean isNew() throws IllegalStateException
isNew
in interface javax.servlet.http.HttpSession
IllegalStateException
public void setListeners(List l)
public void setServletContext(javax.servlet.ServletContext sc)
sc
- Copyright © 2015 JBoss by Red Hat. All rights reserved.