Serializable
, HttpSession
public class HazelcastHttpSession extends Object implements HttpSession, Serializable
Constructor | Description |
---|---|
HazelcastHttpSession() |
Constructor.
|
HazelcastHttpSession(ServletContext servletContext) |
Constructor.
|
HazelcastHttpSession(ServletContext servletContext,
String id,
boolean newFlag) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Object |
getAttribute(String name) |
Get the attribute value.
|
Enumeration<String> |
getAttributeNames() |
Get the attribute names.
|
long |
getCreationTime() |
Get the creation time.
|
String |
getId() |
Get the id.
|
long |
getLastAccessedTime() |
Get the last accessed time.
|
int |
getMaxInactiveInterval() |
Get the maximum inactive interval.
|
ServletContext |
getServletContext() |
Get the servlet context.
|
HttpSessionContext |
getSessionContext() |
Get the session context.
|
Object |
getValue(String name) |
Get the value.
|
String[] |
getValueNames() |
Get the attribute names.
|
void |
invalidate() |
Invalidate the session.
|
boolean |
isNew() |
Is the session new.
|
void |
putValue(String name,
Object value) |
Set the value.
|
void |
removeAttribute(String name) |
Remove the attribute.
|
void |
removeValue(String name) |
Remove the value.
|
void |
setAttribute(String name,
Object value) |
Set the attribute.
|
void |
setId(String id) |
Set the id.
|
void |
setMaxInactiveInterval(int maxInactiveInterval) |
Set the maximum inactive interval.
|
void |
setNew(boolean newFlag) |
Set the new flag.
|
void |
setServletContext(ServletContext servletContext) |
Set the servlet context.
|
void |
setSessionManager(HttpSessionManager sessionManager) |
Set the HTTP session manager.
|
public HazelcastHttpSession()
public HazelcastHttpSession(ServletContext servletContext)
servletContext
- the servlet context.public HazelcastHttpSession(ServletContext servletContext, String id, boolean newFlag)
servletContext
- the servlet context.id
- the id.newFlag
- the new flag.public Object getAttribute(String name)
getAttribute
in interface HttpSession
name
- the attribute name.HttpSession.getAttribute(java.lang.String)
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface HttpSession
HttpSession.getAttributeNames()
public long getCreationTime()
getCreationTime
in interface HttpSession
HttpSession.getCreationTime()
public String getId()
getId
in interface HttpSession
HttpSession.getId()
public long getLastAccessedTime()
getLastAccessedTime
in interface HttpSession
HttpSession.getLastAccessedTime()
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface HttpSession
HttpSession.getMaxInactiveInterval()
public ServletContext getServletContext()
getServletContext
in interface HttpSession
HttpSession.getServletContext()
public HttpSessionContext getSessionContext()
getSessionContext
in interface HttpSession
HttpSession.getSessionContext()
public Object getValue(String name)
getValue
in interface HttpSession
name
- the attribute name.HttpSession.getValue(java.lang.String)
public String[] getValueNames()
getValueNames
in interface HttpSession
HttpSession.getValueNames()
public void invalidate()
invalidate
in interface HttpSession
HttpSession.invalidate()
public boolean isNew()
isNew
in interface HttpSession
HttpSession.isNew()
public void putValue(String name, Object value)
putValue
in interface HttpSession
name
- the attribute name.value
- the attribute value.HttpSession.putValue(java.lang.String, java.lang.Object)
public void removeAttribute(String name)
removeAttribute
in interface HttpSession
name
- the attribute name.HttpSession.removeAttribute(java.lang.String)
public void removeValue(String name)
removeValue
in interface HttpSession
name
- the attribute name.HttpSession.removeValue(java.lang.String)
public void setAttribute(String name, Object value)
setAttribute
in interface HttpSession
name
- the attribute name.value
- the attribute value.HttpSession.setAttribute(java.lang.String, java.lang.Object)
public void setId(String id)
id
- the id.public void setMaxInactiveInterval(int maxInactiveInterval)
setMaxInactiveInterval
in interface HttpSession
maxInactiveInterval
- the maximum inactive interval.HttpSession.setMaxInactiveInterval(int)
public void setNew(boolean newFlag)
newFlag
- the new flag.public void setServletContext(ServletContext servletContext)
servletContext
- the servlet context.public void setSessionManager(HttpSessionManager sessionManager)
sessionManager
- the HTTP session manager.Copyright © 2020 Piranha Cloud. All rights reserved.