Class SessionRefreshServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
ch.tocco.nice2.web.core.api.auth.SecureServlet
ch.tocco.nice2.web.core.impl.servlet.req.AbstractJsonServlet
ch.tocco.nice2.web.core.impl.servlet.req.SessionRefreshServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
Returns a JSON object containing the following information:
- success (true, if a known principal currently is logged in (not anonymous))
- timeout (how long the session is valid (in minutes))
This servlet actually doesn't refresh the session. This is done in the
AuthenticationFilter
. This servlet only returns the information.- See Also:
-
Field Summary
Fields inherited from class ch.tocco.nice2.web.core.api.auth.SecureServlet
runEnvironmentService
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
ConstructorDescriptionSessionRefreshServlet
(RunEnvironmentService runEnvironmentService, BusinessUnitManager businessUnitManager, Context context, SecureSettings settings, boolean allowAdminWithoutRoles) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
processRequest
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Methods inherited from class ch.tocco.nice2.web.core.impl.servlet.req.AbstractJsonServlet
doGet, doPost, newResponse
Methods inherited from class ch.tocco.nice2.web.core.api.auth.SecureServlet
checkSecuredConnection, service
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, init, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
SessionRefreshServlet
public SessionRefreshServlet(@Lazy RunEnvironmentService runEnvironmentService, @Lazy BusinessUnitManager businessUnitManager, @Lazy Context context, @Lazy SecureSettings settings, @Value("${nice2.web.allowAdminWithoutRoles}") boolean allowAdminWithoutRoles)
-
-
Method Details
-
processRequest
protected void processRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Specified by:
processRequest
in classAbstractJsonServlet
- Throws:
jakarta.servlet.ServletException
IOException
-