Package com.io7m.idstore.server.admin_v1
Class IdA1AuthenticatedServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.io7m.idstore.server.http.IdCommonInstrumentedServlet
com.io7m.idstore.server.admin_v1.IdA1AuthenticatedServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
- Direct Known Subclasses:
IdA1CommandServlet
A servlet that checks that an admin is authenticated before delegating
execution to a subclass.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedA servlet that checks that an admin is authenticated before delegating execution to a subclass. -
Method Summary
Modifier and TypeMethodDescriptionprotected final IdAdminadmin()protected final IdServerClockclock()protected final IdACB1Sendssends()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, IdSessionAdmin session) protected final IdServerStringsstrings()Methods inherited from class com.io7m.idstore.server.http.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
-
IdA1AuthenticatedServlet
A servlet that checks that an admin is authenticated before delegating execution to a subclass.- Parameters:
services- The service directory
-
-
Method Details
-
admin
- Returns:
- The authenticated user
-
sends
-
clock
-
strings
-
serviceAuthenticated
protected abstract void serviceAuthenticated(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse servletResponse, IdSessionAdmin session) throws Exception - Throws:
Exception
-
service
protected final void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse servletResponse) throws IOException - Overrides:
servicein classjakarta.servlet.http.HttpServlet- Throws:
IOException
-