Class SilverpeasAuthenticatedHttpServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
-
- org.silverpeas.core.web.mvc.webcomponent.SilverpeasAuthenticatedHttpServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
AjaxServlet
,AjaxServletLookV5
,ChatUserRegistrationServlet
,ComponentRequestRouter
,DragAndDrop
,FormLayerServlet
,ImportDragAndDrop
,IncludePlugin
,LaunchWebdavEdition
,PersonalSpaceJSONServlet
,PortletDeployerServlet
,PreparedDownloadServlet
,ProxyServlet
,SilverpeasServerSentEventServlet
,SPDesktopServlet
,TempFileServer
,UploadServlet
public class SilverpeasAuthenticatedHttpServlet extends SilverpeasHttpServlet
Servlet that verifies especially the user is authenticated.- Author:
- Yohann Chastagnier Date: 20/09/13
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
SilverpeasHttpServlet.HttpError, SilverpeasHttpServlet.UserSessionStatus
-
-
Constructor Summary
Constructors Constructor Description SilverpeasAuthenticatedHttpServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MainSessionController
getMainSessionController(javax.servlet.http.HttpServletRequest request)
Retrieves the Main session controller.protected SessionInfo
getSessionInfo(javax.servlet.http.HttpServletRequest request)
Retrieves the SessionInfo linked to the current request.protected SynchronizerTokenService
getSynchronizerTokenService()
protected void
renewSessionSecurityToken(javax.servlet.http.HttpServletRequest request)
Renews the session security token.protected void
service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
throwUserSessionExpiration()
Expires the current user session (even if no user session exists) and stop all treatments.-
Methods inherited from class org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet
existOpenedUserSession, forbidden, notFound, preconditionFailed, redirectOrForwardService, sendError, sendError, throwHttpForbiddenError, throwHttpForbiddenError, throwHttpNotFoundError, throwHttpNotFoundError, throwHttpPreconditionFailedError, throwHttpPreconditionFailedError
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
service
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
service
in classSilverpeasHttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
renewSessionSecurityToken
protected void renewSessionSecurityToken(javax.servlet.http.HttpServletRequest request)
Renews the session security token.- Parameters:
request
- the incoming HTTP request
-
throwUserSessionExpiration
protected void throwUserSessionExpiration()
Expires the current user session (even if no user session exists) and stop all treatments. Sends an RuntimeException.
-
getMainSessionController
protected MainSessionController getMainSessionController(javax.servlet.http.HttpServletRequest request)
Retrieves the Main session controller.- Parameters:
request
- the incoming HTTP request- Returns:
- the
MainSessionController
instance related by the request.
-
getSynchronizerTokenService
protected SynchronizerTokenService getSynchronizerTokenService()
-
getSessionInfo
protected SessionInfo getSessionInfo(javax.servlet.http.HttpServletRequest request)
Retrieves the SessionInfo linked to the current request.- Parameters:
request
- the incoming HTTP request- Returns:
- the
SessionInfo
instance related by the request
-
-