Package com.logicaldoc.util.servlet
Class MockServletSession
java.lang.Object
com.logicaldoc.util.servlet.MockServletSession
- All Implemented Interfaces:
- jakarta.servlet.http.HttpSession
A servlet session useful for doing tests, you can easily setup the map of
 attributes
- Since:
- 8.3.3
- Author:
- Marco Meschieri - LogicalDOC
- 
Nested Class SummaryNested classes/interfaces inherited from interface jakarta.servlet.http.HttpSessionjakarta.servlet.http.HttpSession.Accessor
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetAttribute(String name) longgetId()longintjakarta.servlet.ServletContextvoidbooleanisNew()voidremoveAttribute(String arg0) voidsetAttribute(String name, Object value) voidsetAttributes(Map<String, Object> attributes) voidsetMaxInactiveInterval(int arg0) Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.http.HttpSessiongetAccessor
- 
Constructor Details- 
MockServletSessionpublic MockServletSession()
 
- 
- 
Method Details- 
getAttributes
- 
setAttributes
- 
getAttribute- Specified by:
- getAttributein interface- jakarta.servlet.http.HttpSession
 
- 
getAttributeNames- Specified by:
- getAttributeNamesin interface- jakarta.servlet.http.HttpSession
 
- 
getCreationTimepublic long getCreationTime()- Specified by:
- getCreationTimein interface- jakarta.servlet.http.HttpSession
 
- 
getId- Specified by:
- getIdin interface- jakarta.servlet.http.HttpSession
 
- 
getLastAccessedTimepublic long getLastAccessedTime()- Specified by:
- getLastAccessedTimein interface- jakarta.servlet.http.HttpSession
 
- 
getMaxInactiveIntervalpublic int getMaxInactiveInterval()- Specified by:
- getMaxInactiveIntervalin interface- jakarta.servlet.http.HttpSession
 
- 
getServletContextpublic jakarta.servlet.ServletContext getServletContext()- Specified by:
- getServletContextin interface- jakarta.servlet.http.HttpSession
 
- 
invalidatepublic void invalidate()- Specified by:
- invalidatein interface- jakarta.servlet.http.HttpSession
 
- 
isNewpublic boolean isNew()- Specified by:
- isNewin interface- jakarta.servlet.http.HttpSession
 
- 
removeAttribute- Specified by:
- removeAttributein interface- jakarta.servlet.http.HttpSession
 
- 
setAttribute- Specified by:
- setAttributein interface- jakarta.servlet.http.HttpSession
 
- 
setMaxInactiveIntervalpublic void setMaxInactiveInterval(int arg0) - Specified by:
- setMaxInactiveIntervalin interface- jakarta.servlet.http.HttpSession
 
 
-