|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.grizzly.http.servlet.HttpSessionImpl
public class HttpSessionImpl
Basic HttpSession based on GrizzlySession support.
| Constructor Summary | |
|---|---|
HttpSessionImpl(ServletContextImpl contextImpl)
Create an HttpSession. |
|
| Method Summary | |
|---|---|
protected void |
access()
Reset the timestamp. |
Object |
getAttribute(String key)
|
Enumeration |
getAttributeNames()
|
long |
getCreationTime()
|
String |
getId()
|
long |
getLastAccessedTime()
|
int |
getMaxInactiveInterval()
|
ServletContext |
getServletContext()
|
HttpSessionContext |
getSessionContext()
|
Object |
getValue(String value)
|
String[] |
getValueNames()
|
void |
invalidate()
|
boolean |
isNew()
|
protected void |
notifyNew()
Invoke to notify all registered HttpSessionListener of the
session has just been created. |
void |
putValue(String key,
Object value)
|
void |
removeAttribute(String key)
|
void |
removeValue(String key)
|
void |
setAttribute(String key,
Object value)
|
void |
setMaxInactiveInterval(int sessionTimeout)
|
protected void |
setSession(GrizzlySession session)
Set the GrizzlySession |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpSessionImpl(ServletContextImpl contextImpl)
contextImpl - | Method Detail |
|---|
public long getCreationTime()
getCreationTime in interface HttpSessionpublic String getId()
getId in interface HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface HttpSessionprotected void access()
public ServletContext getServletContext()
getServletContext in interface HttpSessionpublic void setMaxInactiveInterval(int sessionTimeout)
setMaxInactiveInterval in interface HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface HttpSessionpublic HttpSessionContext getSessionContext()
getSessionContext in interface HttpSessionpublic Object getAttribute(String key)
getAttribute in interface HttpSessionpublic Object getValue(String value)
getValue in interface HttpSessionpublic Enumeration getAttributeNames()
getAttributeNames in interface HttpSessionpublic String[] getValueNames()
getValueNames in interface HttpSession
public void setAttribute(String key,
Object value)
setAttribute in interface HttpSession
public void putValue(String key,
Object value)
putValue in interface HttpSessionpublic void removeAttribute(String key)
removeAttribute in interface HttpSessionpublic void removeValue(String key)
removeValue in interface HttpSessionpublic void invalidate()
invalidate in interface HttpSessionpublic boolean isNew()
isNew in interface HttpSessionprotected void setSession(GrizzlySession session)
GrizzlySession
protected void notifyNew()
HttpSessionListener of the
session has just been created.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||