public class J2CacheSession extends Object implements javax.servlet.http.HttpSession
Constructor and Description |
---|
J2CacheSession(javax.servlet.ServletContext servletContext,
String id,
CacheFacade cache) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkValid() |
Object |
getAttribute(String name) |
Enumeration<String> |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSessionContext |
getSessionContext()
Deprecated.
|
SessionObject |
getSessionObject() |
Object |
getValue(String name)
Deprecated.
|
String[] |
getValueNames()
Deprecated.
|
void |
invalidate() |
boolean |
isNew() |
void |
putValue(String name,
Object value)
Deprecated.
|
void |
removeAttribute(String name) |
void |
removeValue(String name)
Deprecated.
|
void |
setAttribute(String name,
Object value) |
void |
setMaxInactiveInterval(int interval) |
void |
setNew(boolean isNew) |
void |
setSessionObject(SessionObject session) |
public J2CacheSession(javax.servlet.ServletContext servletContext, String id, CacheFacade cache)
public SessionObject getSessionObject()
public void setSessionObject(SessionObject session)
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 javax.servlet.ServletContext getServletContext()
getServletContext
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 Enumeration<String> getAttributeNames()
getAttributeNames
in interface javax.servlet.http.HttpSession
public Object getAttribute(String name)
getAttribute
in interface javax.servlet.http.HttpSession
public void setAttribute(String name, Object value)
setAttribute
in interface javax.servlet.http.HttpSession
public void removeAttribute(String name)
removeAttribute
in interface javax.servlet.http.HttpSession
public void invalidate()
invalidate
in interface javax.servlet.http.HttpSession
public boolean isNew()
isNew
in interface javax.servlet.http.HttpSession
public void setNew(boolean isNew)
protected void checkValid() throws IllegalStateException
IllegalStateException
@Deprecated public Object getValue(String name)
getValue
in interface javax.servlet.http.HttpSession
@Deprecated public void removeValue(String name)
removeValue
in interface javax.servlet.http.HttpSession
@Deprecated public void putValue(String name, Object value)
putValue
in interface javax.servlet.http.HttpSession
@Deprecated public String[] getValueNames()
getValueNames
in interface javax.servlet.http.HttpSession
@Deprecated public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext
in interface javax.servlet.http.HttpSession
Copyright © 2018. All rights reserved.