Class IdUViewAuthenticatedServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.io7m.idstore.server.internal.common.IdCommonInstrumentedServlet
com.io7m.idstore.server.internal.user_view.IdUViewAuthenticatedServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
- Direct Known Subclasses:
IdUViewEmailAdd,IdUViewEmailAddRun,IdUViewEmailRemoveRun,IdUViewMain,IdUViewMessage,IdUViewPasswordUpdate,IdUViewPasswordUpdateRun,IdUViewRealnameUpdate,IdUViewRealnameUpdateRun
A servlet that checks that a user is authenticated before delegating
execution to a subclass.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIdUViewAuthenticatedServlet(IdServiceDirectoryType inServices) A servlet that checks that a user is authenticated before delegating execution to a subclass. -
Method Summary
Modifier and TypeMethodDescriptionprotected final IdServerClockclock()protected final IdDatabaseTypedatabase()protected abstract org.slf4j.Loggerlogger()protected final voidservice(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse servletResponse) protected abstract voidserviceAuthenticated(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse servletResponse, jakarta.servlet.http.HttpSession session) protected final IdServiceDirectoryTypeservices()protected final IdServerStringsstrings()protected final IdUseruser()protected final IdUserSessionprotected final UUIDuserId()Methods inherited from class com.io7m.idstore.server.internal.common.IdCommonInstrumentedServlet
serviceMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModifiedMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Constructor Details
-
IdUViewAuthenticatedServlet
A servlet that checks that a user is authenticated before delegating execution to a subclass.- Parameters:
inServices- The service directory
-
-
Method Details
-
userController
-
user
-
userId
-
clock
-
strings
-
logger
protected abstract org.slf4j.Logger logger() -
serviceAuthenticated
protected abstract void serviceAuthenticated(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse servletResponse, jakarta.servlet.http.HttpSession session) throws Exception - Throws:
Exception
-
service
protected final void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse servletResponse) throws jakarta.servlet.ServletException, IOException - Overrides:
servicein classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
database
-
services
-