java.lang.Object
cloud.piranha.core.impl.DefaultHttpSession
- All Implemented Interfaces:
jakarta.servlet.http.HttpSession
The default HttpSession.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
ConstructorDescriptionDefaultHttpSession
(jakarta.servlet.ServletContext servletContext) Constructor.DefaultHttpSession
(jakarta.servlet.ServletContext servletContext, String id, boolean newFlag) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) long
getId()
long
int
jakarta.servlet.ServletContext
void
boolean
isNew()
void
removeAttribute
(String name) void
setAttribute
(String name, Object value) void
Set the id.void
setLastAccessedTime
(long lastAccessedTime) Set the last accessed time.void
setMaxInactiveInterval
(int maxInactiveInterval) void
setNew
(boolean newFlag) Set the new flag.void
setSessionManager
(HttpSessionManager sessionManager) Set the HTTP session manager.
-
Constructor Details
-
DefaultHttpSession
public DefaultHttpSession(jakarta.servlet.ServletContext servletContext) Constructor.- Parameters:
servletContext
- the servlet context.
-
DefaultHttpSession
public DefaultHttpSession(jakarta.servlet.ServletContext servletContext, String id, boolean newFlag) Constructor.- Parameters:
servletContext
- the servlet context.id
- the id.newFlag
- the new flag.
-
-
Method Details
-
getAttribute
- Specified by:
getAttribute
in interfacejakarta.servlet.http.HttpSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejakarta.servlet.http.HttpSession
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTime
in interfacejakarta.servlet.http.HttpSession
-
getId
- Specified by:
getId
in interfacejakarta.servlet.http.HttpSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTime
in interfacejakarta.servlet.http.HttpSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveInterval
in interfacejakarta.servlet.http.HttpSession
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContext
in interfacejakarta.servlet.http.HttpSession
-
invalidate
public void invalidate()- Specified by:
invalidate
in interfacejakarta.servlet.http.HttpSession
-
isNew
public boolean isNew()- Specified by:
isNew
in interfacejakarta.servlet.http.HttpSession
-
removeAttribute
- Specified by:
removeAttribute
in interfacejakarta.servlet.http.HttpSession
-
setAttribute
- Specified by:
setAttribute
in interfacejakarta.servlet.http.HttpSession
-
setId
Set the id.- Parameters:
id
- the id.
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int maxInactiveInterval) - Specified by:
setMaxInactiveInterval
in interfacejakarta.servlet.http.HttpSession
-
setNew
public void setNew(boolean newFlag) Set the new flag.- Parameters:
newFlag
- the new flag.
-
setSessionManager
Set the HTTP session manager.- Parameters:
sessionManager
- the HTTP session manager.
-
setLastAccessedTime
public void setLastAccessedTime(long lastAccessedTime) Set the last accessed time.- Parameters:
lastAccessedTime
- the last accessed time.
-