public class HttpSessionImpl extends Object implements HttpSession
HttpSession implementation.| Constructor and Description |
|---|
HttpSessionImpl(HttpSession session,
long lastAccessTime,
Clock clock,
ServletContext context)
Initiate.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Enumeration |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
ServletContext |
getServletContext() |
HttpSessionContext |
getSessionContext() |
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 |
setMaxInactiveInterval(int interval) |
public HttpSessionImpl(HttpSession session, long lastAccessTime, Clock clock, ServletContext context)
session - HttpSession.lastAccessTime - Last access time.clock - Clock.context - ServletContext.public long getCreationTime()
getCreationTime in interface HttpSessionpublic String getId()
getId in interface HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface HttpSessionpublic ServletContext getServletContext()
getServletContext in interface HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface HttpSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface HttpSessionpublic Object getAttribute(String name)
getAttribute in interface HttpSessionpublic Enumeration getAttributeNames()
getAttributeNames in interface HttpSessionpublic void setAttribute(String name, Object value)
setAttribute in interface HttpSessionpublic void removeAttribute(String name)
removeAttribute in interface HttpSessionpublic void invalidate()
invalidate in interface HttpSessionpublic boolean isNew()
isNew in interface HttpSessionpublic HttpSessionContext getSessionContext()
getSessionContext in interface HttpSessionpublic Object getValue(String name)
getValue in interface HttpSessionpublic String[] getValueNames()
getValueNames in interface HttpSessionpublic void putValue(String name, Object value)
putValue in interface HttpSessionpublic void removeValue(String name)
removeValue in interface HttpSessionCopyright © 2005–2015. All rights reserved.